Start Conversation Relay
Changed onStart a Conversation Relay session on an active call. Conversation Relay connects the call audio to your WebSocket so your application can exchange realtime messages with the caller while Telnyx handles speech recognition and text-to-speech. Only one AI Assistant or Conversation Relay session can be active on a call at a time.
Expected Webhooks:
- call.conversation.ended - Sent when the Conversation Relay session ends. If the customer WebSocket disconnects, the webhook payload reason is customer_disconnect.
Request
- Base URL: https://api.telnyx.com/v2
- URL: https://api.telnyx.com/v2/calls/{call_control_id}/actions/conversation_relay_start
- Auth: HTTP bearer
Path parameters
Unique identifier and token for controlling the call
Request body
Example request
{
"url": "wss://example.com/conversation-relay",
"dtmf_detection": true,
"interruptible": "speech",
"interruptible_greeting": "dtmf",
"greeting": "Hi! Ask me anything!",
"voice": "Telnyx.KokoroTTS.af",
"tts_provider": "telnyx",
"voice_settings": {
"type": "telnyx"
},
"language": "en-US",
"languages": [
{
"language": "en-US",
"tts_provider": "telnyx",
"voice": "Telnyx.KokoroTTS.af",
"transcription_engine": "Deepgram",
"transcription_engine_config": {
"transcription_model": "deepgram/nova-3"
}
}
],
"custom_parameters": {
"customer_id": "12345"
}
}Response
Successful response upon starting Conversation Relay.
Example response
{
"data": {
"result": "ok",
"conversation_relay_id": "d7e9c1d4-8b2a-4b8f-b3a7-9a671c9e9b0a"
}
}Changes
- breaking
added
subschema #1to the request bodyallOflist - breaking
removed
subschema #1subschema #2subschema #3from the request bodyanyOflist - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
/// - info
added the new optional request property
/// - info
added the new optional request property
/// - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/
- breaking
- info
added
sonioxdiscriminator mapping keys to the///request property - info
added
sonioxdiscriminator mapping keys to the//request property - info
added
sonioxdiscriminator mapping keys to therequest property - info
added to the
///request propertyoneOflist - info
added to the
//request propertyoneOflist - info
added to the
request propertyoneOflist
- info