get_conversation_statistics
Retrieves conversation statistics grouped by agent, team, inbox, or channel, including counts and average first-response and resolution times, optionally filtered by date range and business hours.
Instructions
Get conversation statistics grouped by entity (via API v2). Returns metrics like conversations_count, avg_first_response_time, avg_resolution_time per entity.
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": {
"entity_type": "<entity_type>"
},
"name": "get_conversation_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Start timestamp (Unix timestamp) | |
| until | No | End timestamp (Unix timestamp) | |
| account_id | No | Chatwoot account ID to use. If omitted, uses the default account from CHATWOOT_ACCOUNT_ID env var. | |
| entity_type | Yes | Entity to group statistics by | |
| business_hours | No | Calculate metrics using business hours only |