conversation_insights
Analyze conversations by period to see outcomes, topics, languages, channels, and per-agent resolution mix, so you can identify what happened and where chats escalated or were abandoned.
Instructions
How conversations ended, what they were about and which language
customers used — the Overview's "What happened in conversations" section
(admin.screens.insights.build_insights), same payload: outcomes
(resolved / escalated / abandoned / unknown with count, pct and the
change in points vs the previous period), topics (top labels, merged
across agents), languages, channels (chat/voice), agents (per-agent
outcome mix, resolved %, top topic). available: false = the insights
table could not be read (unknown, not zero); has_data: false = nothing
analysed in the period yet (collecting). Outcomes are an estimate: a
hand-off action in telemetry, else an AI reading of the transcript.
Partner builds only ever see their own agents. Rows come from the
background sweep in core/conversation_insights.py (~30 min after a
conversation goes quiet; the last 30 days are backfilled in batches).
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": "conversation_insights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Overview period: last 24h / 7 days / 30 days, each compared with the period before it. | 7d |
| trace_env | No | Environment tag of the traces to scope telemetry to (dev|staging|prod); '' = all environments. | prod |
| agent_kind | No | Only this agent kind ('' = every agent this build serves). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |