/en/articles/twilio-now-grades-your-ai-bot-public-beta-to-catch-hallucinations-and-measure-whether-it-actually
Twilio now grades your AI bot: public beta to catch hallucinations and measure whether it actually solved the problem
Twilio Conversations opened a public beta of two operators that review each of your AI agent's conversations when it closes: Task Completion tells you whether it solved the problem and Hallucination Detection flags what contradicts your knowledge base. It works on WhatsApp, voice, and chat, but has no SLA and isn't suitable for PCI or HIPAA flows.

On November 17, Twilio opened a public beta of a feature for something almost nobody measures well: how well your AI agent actually serves real customers. Twilio Conversations adds two Conversation Intelligence operators. Task Completion tells you whether the agent solved what the customer asked for, and Hallucination Detection flags what it said that clashes with your knowledge base or with the conversation itself. Both run when each conversation closes, no matter which model or provider powers the agent, and the results are aggregated in Conversation Insights. If your WhatsApp bot already lives on Twilio, this is the first time the platform lets you audit its quality without instrumenting every response yourself. Heads up, though: it's beta, the judge is also an LLM, and the fine print matters.
What Twilio announced
According to the official changelog, the beta comes with three pieces:
- Task Completion: labels each conversation as resolved, unresolved, escalated, or declined by the agent, with a one-sentence reason. It only evaluates the first task.
- Hallucination Detection: checks the agent's claims against your Enterprise Knowledge and against the conversation itself, and returns the ones it flags. Anything it can't verify is listed as "context gaps".
- Conversation Insights: aggregates the results so you can see patterns and track quality over time. They can also be sent to a data warehouse, such as Snowflake or Databricks, with Twilio Destinations.
The same day, Twilio published another changelog entry with Conversation Insights updates: custom measures (a numeric value from your own operator, like a lead score), a Conversation Summary "cube" with one row per conversation, syncing with 18 data destinations (in private beta), and asynchronous queries for heavy analysis.
Why the approach is different
In the launch blog post, Ruma Nair, Twilio's principal product manager, explains the reasoning: many AI observability tools look inside the agent (traces, tool calls, latency), take effort to set up, and end up giving you a pile of data that doesn't tell you what the customer experienced. Twilio starts from the conversation: if your chats already go through its platform, it has the record of what the customer saw. That's why it works the same with one model, several, or an external agent platform, without changing the agent's code.
My take: this is a very Twilio move. It's not competing to build your agent, which anyone can put together today with the SDK of the moment, but to own the layer where conversations happen and, along the way, the data to grade them. For those who run bots, that has its upside (you instrument nothing) and its downside of dependency (supervision lives where your channel lives).

How it works under the hood
According to the setup guide and the operators documentation:
- You add both operators to a rule inside an Intelligence Configuration, with the "when the conversation ends" trigger (
CONVERSATION_END), and connect that configuration to your Conversation Configuration in Conversation Orchestrator. Only conversations that go through there are evaluated. - You select an Enterprise Knowledge base as the source of truth. If you don't pick one, Hallucination Detection only looks for contradictions within the conversation.
- Results show up in the console per conversation, arrive at a webhook if you set one up, and can be queried in aggregate with the Insights API about 15 minutes after the conversation ends.
- Twilio's operators work on voice, SMS, WhatsApp, RCS, and chat, according to the documentation.
There's an implementation detail that can break something in production: when you PATCH the Conversation Configuration, the intelligenceConfigurationIds field is replaced, not merged. If you already had other intelligence configurations connected and you don't include them, they get disconnected.
What each operator returns
Task Completion reads the conversation, identifies the customer's main goal in the first turns, and checks how they reacted to the agent's response. It returns one of four labels and a reason:
| Label | What it means |
|---|---|
RESOLVED |
The agent handled the task and the customer confirmed it, explicitly or implicitly |
UNRESOLVED |
It didn't handle it and the conversation ended unresolved |
ESCALATED |
It was handed off to a human |
AGENT_DECLINED |
The agent refused on purpose due to policy, compliance, or scope |
Hallucination Detection extracts the agent's verifiable claims (policies, prices, dates) and compares them with your Enterprise Knowledge, the Conversation Memory, and what was said earlier in the conversation. It classifies each finding into three types: external_context_conflict (contradicts your knowledge base or memory), conversation_context_conflict (the agent contradicts itself or something is clearly made up), and context_gap (can't be verified). According to Twilio, it never searches the web, so something your knowledge base doesn't cover isn't flagged as false. Each finding comes with the flagged sentence and what the source says.
Twilio's example sums it up well: a customer asks about the return window, the agent answers "60 days" when the policy says 30, the customer leaves happy, and Task Completion marks RESOLVED. Only Hallucination Detection catches that the answer was false. That's why Twilio insists on using both together: a friendly, "resolved" conversation can leave the customer with wrong information.
The fine print
Before connecting it to your production WhatsApp bot:
- It's a public beta. The documentation warns that it may change, that features are missing, and that it isn't covered by Twilio's support terms or SLA.
- No PCI or HIPAA. Neither operator is suitable for flows with card data or HIPAA-regulated health data.
- Only in the new Twilio Console. If your account hasn't been migrated, these products don't show up.
- The judge is another LLM. Twilio clarifies that it's separate from your agent's model, so the agent doesn't grade itself, but it also acknowledges that it can be wrong. It recommends using the results to find which conversations to review, not as a final verdict.
- Documented limitations: the Task Completion reason is free text and can't be filtered in Insights. If your agent gives a vague answer to an out-of-scope question instead of declining, it comes out as
UNRESOLVED. Thehallucination_countfield is filled in by the model and may be miscounted, so Twilio suggests counting the elements of the array. And Task Completion ignores follow-up tasks: if the customer asked for three things, only the first one is graded. - Pricing: Twilio says it follows the existing rate for its Conversation Intelligence operators. It didn't publish a new figure in the announcement.
What this means for people who run bots
My take, for anyone with an AI WhatsApp or voice bot on Twilio:
- Your knowledge base becomes the exam. Hallucination Detection is only as good as what you give it to compare against. If your policies live in an old PDF or in somebody's head, the operator will fill the report with
context_gapand tell you very little. - Design the agent to decline clearly. For the metrics to be useful, the bot has to explicitly say "I can't solve that" when something is out of its scope. Otherwise, your
AGENT_DECLINEDresults will get mixed in with real failures. - It's useful for measuring containment with data. The question every bot customer asks ("how many conversations did it resolve without a human?") finally has a native answer: count
RESOLVEDagainstESCALATEDper week. - It doesn't replace human review. It's a filter to find what needs reading, not an auditor that signs off for you.
I haven't tested it; all of this comes from Twilio's official documentation and announcement.
Sources
- Twilio changelog: Twilio Conversations now supports AI agent supervision
- Twilio blog: Twilio Expands Conversations Layer for AI Agent Supervision
- Documentation: Supervise AI agents with Conversation Intelligence
- Documentation: Use Twilio-authored language operators
- Twilio changelog: New Features for Conversation Insights (Beta)