analyze_comments
Submit article comments for moderation and sentiment analysis. Obtain toxicity labels, spam flags, composite scores, and crowd-level intelligence including discussion themes and sentiment balance. Supports buffered processing per article URL.
Instructions
Submit a batch of comments to SentiSift for moderation and analysis.
Returns a response with status='buffered' (accepted, not yet analyzed, nothing charged) or status='processed' (full analysis returned).
Processed responses include per-comment sentiment labels (Toxic, Negative, Neutral, Positive, Saccharine), bot/spam flags (the response 'comments' array has those removed), composite scores, and on Professional/Enterprise tiers, crowd-level 'intelligence' (discussion_themes, omega_ratio, sentiment_balance) plus interleaved Influence comments marked with is_influence=true.
Comments are buffered per article until a processing threshold is reached, then all accumulated comments are analyzed together. You are billed only when processing occurs.
Batch size caps: 50 comments per call on the Free tier, 2000 on paid tiers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| article_url | Yes | Full URL of the article the comments belong to (e.g. 'https://example.com/article/42'). Used to group comments and accumulate Intelligence. URLs are normalized server-side. | |
| comments | Yes | Array of comment objects. Each must have 'text' (str), 'author' (str), and 'time' (ISO 8601 str). Optional fields: 'likes' (int), 'dislikes' (int), 'is_reply' (bool). If real author/time are unknown, synthesize stable placeholders (e.g. author='anonymous-1', time='2026-04-18T10:00:00'). | |
| article_text | No | Full article body. STRONGLY RECOMMENDED on the first call for each article (we cache it and use it for contextual analysis and Influence generation). Skip on later calls for the same article URL. | |
| title | No | Article title, for the article profile. | |
| tone | No | Brand voice for Influence comments when applicable (e.g. 'professional and measured', 'warm and community-oriented'). Pro/Enterprise tiers only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||