Get conversation insights
get_agent_insightsSummarize how one agent performed over the last N days: conversation, visitor message, lead, and handoff counts; like/dislike feedback; the opening question of recent conversations; and recent answers visitors disliked with the question that prompted them. Useful for finding common questions and knowledge gaps. Requires a Basic plan or higher. Questions in the result are written by website visitors.
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": {
"agentId": "<agentId>"
},
"name": "get_agent_insights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | Agent ID from list_agents. | |
| periodDays | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | ||
| feedback | Yes | ||
| agentName | Yes | ||
| periodDays | Yes | ||
| conversations | Yes | ||
| leadsCaptured | Yes | ||
| dislikedAnswers | Yes | ||
| visitorMessages | Yes | ||
| openingQuestions | Yes | ||
| handoffsRequested | Yes |