Voice AI

Conversation Relay: Build a Text-In, Text-Out Voice Bot on an Indian Number (2026)

How Conversation Relay works: your bot exchanges text over a WebSocket while Edesy handles speech recognition, text-to-speech, barge-in and keypresses on an Indian phone number. Twilio ConversationRelay-compatible.

Edesy Team5 min read

Frequently asked questions

What is Conversation Relay?

A way to put a text bot on a phone call. Edesy transcribes what the caller says and sends your bot text over a WebSocket; your bot sends text back and Edesy speaks it. Edesy also handles barge-in and keypresses, so your bot never touches audio.

Is Edesy Conversation Relay compatible with Twilio ConversationRelay?

Yes. It uses Twilio's ConversationRelay protocol (setup, prompt, interrupt, dtmf, text, play, sendDigits, language, end), so a bot written for Twilio works unchanged when you point an Edesy number at it.

Can the caller interrupt the bot?

Yes, by default. interruptible is on, and min_bargein_word_count (default 1) sets how many words the caller must say before the bot stops. Your bot receives an interrupt message with roughly what the caller heard.

Can the bot switch language mid-call?

Yes. Send a language message with ttsLanguage and/or transcriptionLanguage. The default language on a new relay number is en-IN.

How do I hand the call to a human?

Send an end message with handoffData. The call ends on the relay and the handoff data is recorded as a call.relay.handoff event that your system can act on.

How do I test my bot without making a call?

Use POST /v1/relay-test with relay_url, a sample prompt and seconds. It connects from Edesy's network, runs one turn, and reports DNS, TCP, TLS, upgrade and protocol stages, including whether your reply set last: true.

Edesy Team

The Edesy engineering team, building voice AI, messaging, and automation products for Indian businesses.

Published

Share

Voice AIVoice APIWebSocketDevelopersAI Voice AgentIndia
Back to blog