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:
A record looks like this:
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.
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.
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:
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.