# Best Practices for Conversation Relay Provider Failover

DevFeed: [Best Practices for Conversation Relay Provider Failover](<https://devfeed.tech/articles/best-practices-for-conversation-relay-provider-failover-118916.md>)

Original publisher: [Read original article](<https://www.twilio.com/en-us/blog/developers/best-practices/conversation-relay-failover>)

Author: Daniel Jansson

Published: 2026-11-04T00:00:00Z

Content type: tutorial

Language: en

Sources: [Twilio](<https://devfeed.tech/sources/twilio-blog.md>), [Twilio Blog](<https://devfeed.tech/sources/twilio-blog-2.md>)

Topics: [WTF Is Cloud Native](<https://devfeed.tech/topics/wtf-is-cloud-native.md>), [Deployment & Scaling](<https://devfeed.tech/topics/deployment-scaling.md>), [AI chatbot continuity](<https://devfeed.tech/topics/ai-chatbot-continuity.md>), [livekit](<https://devfeed.tech/topics/livekit.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents-in-production](<https://devfeed.tech/tags/agents-in-production.md>), [ai](<https://devfeed.tech/tags/ai.md>), [availability](<https://devfeed.tech/tags/availability.md>), [backup](<https://devfeed.tech/tags/backup.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [black-friday](<https://devfeed.tech/tags/black-friday.md>), [conversation-relay](<https://devfeed.tech/tags/conversation-relay.md>), [deepgram](<https://devfeed.tech/tags/deepgram.md>), [developer-insights](<https://devfeed.tech/tags/developer-insights.md>), [downtime](<https://devfeed.tech/tags/downtime.md>), [failover](<https://devfeed.tech/tags/failover.md>), [high-availability](<https://devfeed.tech/tags/high-availability.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [implement](<https://devfeed.tech/tags/implement.md>), [strategies](<https://devfeed.tech/tags/strategies.md>), [twilio](<https://devfeed.tech/tags/twilio.md>), [voice](<https://devfeed.tech/tags/voice.md>), [voice-ai](<https://devfeed.tech/tags/voice-ai.md>)

## AI overview

Conversation Relay failover requires an `<Connect>` `action` URL that branches on `ErrorCode` and returns new TwiML. Set providers, voice, and speech model explicitly, track attempts and prior providers to prevent loops, and ensure backup voices and models support each language. For transcription failures such as 64114, switch providers through the action handler and restore server-side conversation state using `CallSid` or a conversation ID. Mid-call TTS failures do not end the session: the WebSocket server must detect 64111 or 64112 and send `end` with stringified `handoffData`, allowing the action handler to start a session with another TTS provider and optionally replay unsaid text. Limit retries, avoid repeated configuration failures (64101 or 64106), retry 64103 at most once, and provide a final fallback outside Conversation Relay, such as Twilio `<Say>` or a human handoff.

## Source excerpt

Learn how to implement application-level failover strategies for Twilio Conversation Relay to ensure high availability and prevent Voice AI agent downtime.