Skip to contentSkip to navigationSkip to topbar
Page toolsOn this page
Looking for more inspiration?Visit the

Details: Conversation Relay Insights Events


This page is a reference for all event types emitted by Conversation Relay and available via the Call Insights Events resource.

All Conversation Relay events include the following base properties:

PropertyTypeDescription
session_idstringSession ID of the Conversation Relay session.
sequence_numberintegerSequence number of the event.

Events with additional payload properties are documented below. Events not listed in the payload sections are timeline markers only and carry no additional properties beyond the base fields.


Speech events

speech-events page anchor
EventDescription
start_of_customer_speechCustomer audio detected — beginning of an utterance.
end_of_customer_speechCustomer stopped speaking; transcription will be sent to your application.
start_of_agent_speechVirtual agent began playing audio to the customer.
end_of_agent_speechVirtual agent finished its current response.

EventDescription
first_token_receivedFirst token received from the application via WebSocket. Marks the end of application latency.
final_token_receivedFull text response received from the application.

final_token_received properties

final_token_received-properties page anchor
PropertyTypeDescription
total_tokensintegerTotal number of tokens received.
total_wordsintegerTotal number of words received.

EventDescription
stt_latencyTime from end of customer utterance to full transcription ready.
tts_latencyTime from receiving a text sentence to start of audio synthesis.

Both latency events share the same payload:

PropertyTypeDescription
latency_msintegerLatency in milliseconds.

EventDescription
prompt_sentTranscription sent to your WebSocket server.
interruptOne party began speaking while the other was active.
preemptedNew agent response tokens arrived, interrupting current agent speech playback.
dtmfCustomer pressed a key on their phone's keypad.
digitApplication sent digits to navigate an IVR.
PropertyTypeDescription
typestringType of interruption. One of DTMF or SPEECH.

EventDescription
configurationsSession configuration active at the start of the session.
language_changedActive language configuration changed during the session.
call_wrap_upSession has ended and the summary is being finalized.

configurations properties

configurations-properties page anchor
PropertyTypeDescription
configurationsobjectKey-value pairs of active configuration settings.
languagesobjectKey-value pairs of language configurations, each containing tts_provider, voice, transcription_provider, and speech_model.

language_changed properties

language_changed-properties page anchor
PropertyTypeDescription
tts_language_codestringLanguage code for text-to-speech.
transcription_language_codestringLanguage code for speech-to-text.
PropertyTypeDescription
duration_in_secondsintegerSession duration in seconds.
end_statusstringFinal state of the session. One of unknown, failure, ended, or hung_up.

EventDescription
play_mediaApplication requested an audio file to be played instead of synthesized speech.

EventDescription
error_eventTechnical failure encountered during the session.
PropertyTypeDescription
error_codeintegerError code.
messagestringError message.