Skip to Content
Docs

POST /api/get_conversation_insights

POST
/api/get_conversation_insights

Insights from the decision model's labels: per label and option the expected count and its rate with a 95% interval widened by the label's calibration error, each label's tier, the same per time bucket, label coverage and the language mix. answer_status rates are over requests (not over greetings). 'available' is the operator switch (DECISION_ANALYTICS_ENABLED with the model available); 'enabled' is that and the agent's own analytics switch. The sweep labels only the last 'backfill_days' (from 'labelling_from'), so coverage splits unlabelled answers into 'unlabelled_recent_turns' (still to be labelled) and 'unlabelled_older_turns' (never labelled without a backfill). For an agent, 'one_pick' lists the options of its topic question (empty when it asks none) and 'overlapping' its topics that can overlap; each one's totals are under 'tag:<id>'. Topics ('topic_effective') are reported for an agent only: each agent has its own list. 'series' is in 'bucket_unit': the filter's own unit while its buckets average 10 analyzed answers, else the next coarser one (minute to hour, hour to day, day to week). A week is named by its first day in the window and carries its last as 'bucket_end'. 'previous' holds answer_status, reaction and sentiment totals over the period of the same length just before the window.

Personal access token scope: analytics:read.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
api_key_id?string

Agent id

filter_option?string

Filter option for analytics

Default"last_30_days"
Value in"last_hour""last_24_hour""last_7_days""last_15_days""last_30_days"

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/get_conversation_insights' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
Empty