Get DM analytics
get_dm_analyticsThe DM (direct message) analytics dashboard of one brand in one call. sections selects the parts: overview (messages received/sent/automated, new conversations, conversations marked done, each against the previous period of equal length), response_times (time from a customer message to the reply, split into automation, replies sent from replient.ai, and replies sent natively in the platform app), sentiment (by conversation, or by every received message with sentimentBasis "messages"), tags (conversations per tag, AI or manual), channels (per platform), time_saved (estimated seconds saved per action type), top_contacts (most active conversations), top_posts (posts whose comments led to DMs, with read and click rates), hourly (received and sent messages by hour of day in timeZone). Needs the Inbox feature on the brand plan. completionRatePct is done / new conversations and exceeds 100 when the backlog shrank. dataQuality says when a 0 means nothing was recorded and when a figure rests on fewer than 20 items. includeCharts adds ready-to-draw charts. 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": "get_dm_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| brand | Yes | ||
| interval | No | auto | |
| sections | No | Which parts to compute. Defaults to overview, response_times, sentiment and tags. | |
| timeZone | No | ||
| topLimit | No | Rows in top_contacts and top_posts (1-25). | |
| tagSource | No | Count AI tags, manually set tags, or both. | all |
| includeCharts | No | ||
| sentimentBasis | No | "conversations": each conversation once, on the day of its latest customer message, unanalysed ones left out. "messages": every received message with its conversation's sentiment; totals match messages received. | conversations |