Skip to main content
Every AI Assistant voice call gets a quality record when it ends. The record summarizes how the call went in one place: how fast the assistant answered, how the call ended, whether a speech or language provider failed, and whether the assistant got stuck repeating itself. Records are computed after the call ends, so they never add latency to the conversation. Calls that ended before quality tracking was available have no record.
Quality records cover AI Assistant voice calls only. Web chat and SMS conversations don’t have one, and neither do Conversation Relay calls or calls from assistants with data retention turned off.

Reading the record

Get the record for one conversation:
List records, newest call first, filtered by assistant, assistant version and the time the call ended:
A record looks like this:
In the Mission Control Portal, open an assistant, go to Analysis > Conversation History, select a conversation and open the Quality tab.

How each signal is defined

Time to first speech

time_to_first_speech_ms is the time from Telnyx receiving the request to start the assistant until the first assistant audio is sent to the call. It includes the greeting’s speech synthesis. It is null when it wasn’t measured: the assistant never spoke, or the call is a Realtime WebSocket session, where first audio isn’t measured.

Response latency

For each assistant reply that answers something the caller said, the response latency is the time from the end of the caller’s speech to the start of the assistant’s speech. Replies that don’t follow a caller turn, like the greeting or a follow-up after the assistant’s own reply, are not counted. response_latency_p50_ms is the median and response_latency_p95_ms the 95th percentile of those latencies, using the nearest-rank method. Both are null when there’s no such reply.

Turns and duration

  • user_turn_count: caller utterances that were transcribed to non-empty text.
  • assistant_turn_count: spoken assistant replies. Tool calls are not counted.
  • duration_ms: from the start of the assistant to the end of the call.

End reason

end_reason is the first of these that applies:

Errors and provider failures

  • error_count: errors reported during the call, including ones the call recovered from (a skipped reply) and the one that ended it.
  • stt_failure: speech-to-text (transcription) failed at least once.
  • llm_failure: the language model failed at least once, including a speech-to-speech model session failing.
  • tts_failure: text-to-speech failed at least once, including a greeting that produced no audio.
Errors that aren’t a provider’s, like a failing webhook tool, count in error_count but raise no provider flag.

Loop detection

loop_detected is true when the assistant gave 3 or more near-identical replies in a row. max_repeated_replies is the longest such run in the call. Two replies are near-identical when at least 80% of their distinct words are shared, after lowercasing and removing punctuation. Normal confirmation-style repetition isn’t a loop:
  • Replies under 5 words, like β€œGot it.” or β€œOkay, one moment.”, never count toward a loop, however often they repeat.
  • Confirmations that echo different details, like β€œGreat, I’ve noted your phone number.” and β€œGreat, I’ve noted your email address.”, aren’t near-identical.
  • A question repeated with other replies in between, like β€œIs there anything else I can help you with today?”, isn’t a run.
A short acknowledgement between two repeats breaks the run.

Silence timeouts

silence_timeout_count counts the times the caller’s silence hit a timeout: each time the assistant re-prompted after the user idle reply time, plus 1 when the user idle timeout ended the call. Reaching the maximum call duration is not a silence timeout.

Task success

task_success comes from AI Insights. Create a structured insight whose JSON schema has a boolean task_success property, and add it to the insight group your assistant runs. For example:
Insights run after the call, so task_success is null until the insight has finished. It’s also null when no insight reports a boolean task_success. When several insights report one, the most recently completed one is used.