Rank open comments by importance
triage_open_commentsRanks ALL open social media comments of a brand in replient.ai by importance and returns the most important ones first, with a score and the reasons for it. It answers "what should I handle first?" and "all open comments by importance". Scoring is fixed and transparent: negative sentiment and questions first, then tags that signal intent or risk (complaint, against the brand, buying interest, pricing, shipping, return, question), unread and unanswered, waiting time (capped at 14 days so old noise does not dominate), mentions and comments on ads; spam and emoji-only tags count down. "focus" re-weights the ranking; "assignee" ranks only my ("me"), unassigned or a team member's open comments. Each reason is a code with its points. "summary" counts the whole open set. Items have the same shape as list_comments. Reading never marks comments as read. get_account lists the brands and the usage guide.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"brand": "<brand>"
},
"name": "triage_open_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brand | Yes | ||
| focus | No | "questions": questions and question-like tags count double. "negative": negative sentiment and complaints count double. "sales": buying interest, pricing and ad comments count more, complaints less. "oldest": waiting time weighs up to 60 points over 60 days. | |
| limit | No | How many of the highest-ranked comments to return (1-50). | |
| assignee | No | "me": rank only the open comments assigned to the calling user ("what should I handle first?"). "unassigned": only those assigned to nobody. Or a team member's user id or name. | |
| includeSuggestions | No | Adds the AI reply suggestions of the returned comments. |