Analyze DM conversations
analyze_conversationsEvidence for qualitative questions about direct messages customers sent, such as "what do people complain about in DMs this month". Works on received messages only. Filter by date range, conversation sentiment, conversation tags (AI or manual), platform, a text search, language or one conversation; the result describes the matching messages: counts by sentiment, tag, platform, language and day, the most active conversations, frequent terms and two-word phrases (with lift against all received messages of the range when filtered), and a balanced sample of message texts spread over time and conversations, de-duplicated, with links. Sentiment and tags belong to the conversation, so every message of a conversation carries its current values. Needs the Inbox feature on the brand plan.
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": "analyze_conversations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| tags | No | Only items carrying any of these tag slugs. | |
| brand | Yes | ||
| search | No | Only items whose text contains this, case-insensitive (a plain substring, not a query language). | |
| interval | No | auto | |
| language | No | Only items detected in this language code, e.g. "de". | |
| timeZone | No | ||
| platforms | No | Only these platforms. | |
| sampleSize | No | Texts in the sample (5-150). The result stays under ~55,000 characters, so long texts can mean fewer items. | |
| sentiments | No | Only items with these sentiments. | |
| includeCharts | No | ||
| maxTextLength | No | Characters kept per sampled text (60-500). | |
| conversationId | No | Only messages of this conversation. |