> ## Documentation Index
> Fetch the complete documentation index at: https://docs.volubile.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Failover

> Failover ensures service continuity for your inbound agents in case of pre-call errors.

<Tip>
  This feature is not enabled by default. Please contact <a href="https://support.volubile.ai" target="_blank">support</a> to activate it on your account.
</Tip>

<Note>
  Failover is an advanced feature available **only for inbound agents**.
</Note>

Failover allows you to define custom behavior in case of pre-call errors, instead of using the system's automatic degraded mode. This feature is particularly useful when your external infrastructure is unavailable or when a critical error would compromise the user experience.

## Use cases

**External infrastructure unavailable**
Your system no longer responds to pre-call webhooks (server maintenance, network issue). Failover allows you to transfer the call to a human or play an appropriate message.

**Critical dependency on external data**
Your agent absolutely requires certain pre-call data to function (eligibility check, contract retrieval). Without this data, you prefer to handle the call differently.

**Total control of the experience**
You want to manage all error cases yourself without using the automatic degraded mode.

## Automatic triggering

Failover is automatically activated when:

* Your pre-call workflow times out, encounters an error, returns invalid data, or explicitly triggers failover
* The dynamic configuration cannot be applied (missing voice, unavailable knowledge base, language conflicts, ...)
* The system cannot render the agent's prompt

<Frame>
  <img src="https://mintcdn.com/weengage/1STKBOQ8nOwjQf0A/images/agents/actions/volubile-actions-failover-config.png?fit=max&auto=format&n=1STKBOQ8nOwjQf0A&q=85&s=1d9c8aae373f79dd455247b15ea060e0" width="1855" height="432" data-path="images/agents/actions/volubile-actions-failover-config.png" />
</Frame>

## Available actions

You can configure three types of failover actions:

### Workflow

Allows you to build a custom and dynamic error management strategy. The workflow receives the pre-call context and can:

* Perform actions (API calls, data processing, etc.) without returning a failover action
* Perform actions then dynamically return a failover action (transfer or message)

<Card title="Configure the failover workflow" icon="arrow-pointer" href="../../../integrations/workflows/failover" horizontal>
  See how to configure the failover workflow
</Card>

<Note>
  If the workflow does not return any failover action, the call will be hung up at the end of the webhook execution. To wait for an asynchronous action to complete (for example, a call transfer via external API), use a "Delay" step in your workflow to keep the call active during processing.
</Note>

### Say a message

Configures a fixed voice message that will be played to the caller in case of error, then ends the call.

**Configuration:**

* **Sentence to say**: The text that will be spoken to the caller
* **Language**: The language of the message

<Frame>
  <img src="https://mintcdn.com/weengage/1STKBOQ8nOwjQf0A/images/agents/actions/volubile-failover-say-config.png?fit=max&auto=format&n=1STKBOQ8nOwjQf0A&q=85&s=96b89ab4093718d2d296267a14dfe33c" width="1856" height="506" data-path="images/agents/actions/volubile-failover-say-config.png" />
</Frame>

**Example usage:**

> "Our services are temporarily unavailable. Please call back later."

### Transfer call

Configures a fixed transfer to a phone number in case of error.

**Configuration:**

* **Maximum ring duration**: Maximum time (in seconds) before interrupting the transfer and resuming the call with the agent
* **SIP connection** (optional): Outbound SIP connection to use for the transfer
* If a SIP connection is selected, you can also configure:
  * **Custom headers**: Custom SIP headers to include in the transfer call
  * **User-To-User header**: Standard User-To-User SIP header to customize
  * **Destination ID**: SIP destination identifier for routing
* Otherwise:
  * **Number**: Destination phone number in international format

<Frame>
  <img src="https://mintcdn.com/weengage/1STKBOQ8nOwjQf0A/images/agents/actions/volubile-failover-transfer-config.png?fit=max&auto=format&n=1STKBOQ8nOwjQf0A&q=85&s=1d30d97801bac74219ab6ec7cbc26e8b" width="1852" height="562" data-path="images/agents/actions/volubile-failover-transfer-config.png" />
</Frame>

**Example usage:**
Systematically transfer to the phone switchboard in case of technical error.

<Info>
  For changes to take effect, you must save after changing the failover action type.
</Info>

## Choosing the action type

<CardGroup cols={3}>
  <Card title="Workflow" icon="diagram-project">
    **Recommended for:**

    * Conditional strategies based on error type
    * Integrations with external systems
    * Complex business logic
  </Card>

  <Card title="Voice message" icon="message">
    **Recommended for:**

    * Simply informing the caller
    * Planned maintenance cases
    * Redirection to other channels
  </Card>

  <Card title="Call transfer" icon="phone-arrow-up-right">
    **Recommended for:**

    * Systematically switching to humans
    * Guaranteeing an immediate response
    * Maximum simplicity
  </Card>
</CardGroup>

<Warning>
  With failover enabled, any pre-call error triggers the configured failover action. Thoroughly test your configuration before deploying it to production.
</Warning>

<Tip>
  If your failover action itself fails (for example, the transfer number is unreachable), the system will use the default configurable error message to ensure the call is handled.
</Tip>
