Read Agent KPIs
agent_kpis_readReads one Agent's recorded conversation/resolution/handoff and rule/source/condition KPIs.
This is the one source of resolution_rate and handoff counts. resolution_rate is percent of support cases opened in the window that billing recognizes as AI-resolved and has not reversed, with its resolved/cases counts; null when no case opened. Current, previous and daily series use the requested window. Rule/source cited_7d/handoffs_7d retain their names but count over days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Window length in days for conversation, resolution, handoff and rule/source/condition KPIs. | |
| agent_id | Yes | Agent ID from agents_list or agent_create. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | agent | |
| stats | Yes | ||
| agent_id | Yes | Agent whose recorded activity is counted. | |
| workspace_id | Yes | Dashboard Workspace (tenant) from the current grant. |