Best Practices for Conversation Relay Provider Failover
Blog post from Twilio
Twilio’s guidance for Conversation Relay provider failover explains how Voice AI applications can remain available when third-party speech-to-text or text-to-speech services experience outages, latency, or request failures. It recommends assigning an action URL to every Connect verb, explicitly defining speech providers, voices, and models, tracking retry attempts and previously used providers, and branching on ErrorCode rather than SessionStatus alone. Transcription failures typically end the session and can be handled by returning new TwiML that switches to another ASR provider, while mid-call TTS failures leave the caller connected but silent, requiring the WebSocket server to detect error messages, send an end event with handoff data, and initiate a new session using a backup TTS provider. The guidance identifies key error codes, including 64114 for ASR failures, 64111 and 64112 for TTS failures, and 64103 for internal errors that warrant one retry, while cautioning against retrying configuration errors that will likely recur. It also advises preserving conversation state through a conversation ID, testing fallback voices and language support in advance, validating webhook requests, logging failures, limiting attempts to avoid loops, and ultimately routing callers to a non-Conversation Relay fallback such as a human agent if provider recovery is unsuccessful.
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.