Get sentiment report
get_sentiment_reportCustomer sentiment over the last N days (Reports -> Sentiment), one conversation at a time. summary: conversations read (unread = could not be read, left out of rates), ending_negative_rate, net_sentiment (% closing positive minus % closing negative, -100..100), opened_negative and recovery_rate (of the conversations that opened negative, how many closed neutral or positive), worsened_rate, attention_now. matrix: opening -> closing counts. breakdown.agents credits each conversation to whoever handled it at its last burst (handler bot = the AI agent); recovery_rate is the fair measure of an agent, since it does not depend on how many negative conversations they inherited, and low_sample marks a row with too few conversations to judge. Also frustration by inbox (levels: tranquilo, molesto, frustrado, hostil in Spanish), flags (asked for a person, churn risk, abusive language, minutes until an agent replied), quality (CSAT by closing sentiment, response and resolution times by opening sentiment) and the conversations that need attention now (attention: the 10 most recently active; summary.attention_now is the total). Sentiment is recorded only while it runs in enforce mode, so all zeros usually means it is off or still in shadow. The product calls it "sentimiento" in Spanish. channel=voice keeps the AI phone calls, channel=chat the rest.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_sentiment_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many calendar days to measure, today included (7 = today and the 6 before; this month = today's day of the month). Defaults to 30. | |
| fields | No | Optional: return only these fields of each record. | |
| channel | No | Only phone calls to AI lines (voice) or only chat (chat). Omit for both. |