Modules
Bot Analytics
The AI agent is evaluated as rigorously as a person. If it does not hand over, it shows.
Who it is for
Anyone who already put a bot at the front and needs to know whether it follows the form or leaves the customer at a dead end. Bot Analytics is part of the Pro and Enterprise plans; on Free, its routes answer MODULE_NOT_IN_PLAN.
Bot profiles
Each bot you evaluate has a profile in your company, with its bot_id, name and channel. The profile is what ties a conversation to the bot that handled it. List them with GET /bot-profiles or qi bots list.
printf 'X-API-KEY: %s\n' "$QI_API_KEY" | curl -H @- https://api-service.emotionalscoring.io/v1/integrations/bot-profiles \
-H "X-TENANT-ID: $QI_TENANT"{
"data": [{ "_id": "...", "bot_id": "asistente-web", "name": "Asistente", "channel": "..." }]
}How a bot conversation comes in
From the panel, Bot Analytics has its own upload. From outside, a bot conversation is a text upload marked as a bot's: agentType=bot and the botId of one of your profiles.
printf 'X-API-KEY: %s\n' "$QI_API_KEY" | curl -H @- https://api-service.emotionalscoring.io/v1/integrations/uploads/text \
-H "X-TENANT-ID: $QI_TENANT" \
-F "files=@./chat-bot.json" \
-F "agentType=bot" \
-F "botId=asistente-web"With the CLI, qi upload bot does the same and takes the profile's id or name:
qi bots list
qi upload bot ./chats --bot "Asistente" --form BOTQA
qi interactions list --agent-type bot --type textProcessing status
The conversation goes through bot_analysis, the bot's own evaluation. When listing, ask for agent_type=bot: without that filter the API returns human agents only.
printf 'X-API-KEY: %s\n' "$QI_API_KEY" | curl -H @- -G https://api-service.emotionalscoring.io/v1/integrations/interactions \
-H "X-TENANT-ID: $QI_TENANT" \
--data-urlencode "source_type=text" \
--data-urlencode "agent_type=bot"What you get
Where the bot resolves, where it falls short and where it should have passed the conversation to a person. In the panel, Bot Analytics gathers the ranking, the library and the uploads, apart from Speech and Text. In the API, the detail carries bot_answered_form, bot_id and bot_profile_id.
Cost in QI tokens
The same as a text conversation: 1 QI token with 3,000 words included and 1 token more per extra 3,000 words or part of them.
Full rates in QI tokens and plans.