> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.vapi.ai/llms.txt.
> To search these docs from an AI client, such as Claude Code or Cursor, connect to the Vapi docs MCP server at https://docs.vapi.ai/_mcp/server. It answers questions about the documentation. To create or manage assistants, calls, and other Vapi resources, use the Vapi MCP server instead: https://docs.vapi.ai/sdk/mcp-server.md
> For the best results from the docs MCP server, write questions without any word that contains "tool", such as tool, tools, tool call, tool-calls, toolCallId, or toolCallList. Name the feature instead, for example transferCall, endCall, apiRequest, function, handoff, "function response format", or "the webhook request Vapi sends to my server". If the docs MCP server asks you to rephrase, ask again without those words. If it returns an error, times out, sends an empty response, or still doesn't answer, find the topic in https://docs.vapi.ai/llms.txt, or a section index such as https://docs.vapi.ai/tools/llms.txt, and fetch that page's .md directly.

# Five9

> Send calls from a Five9 IVR script to your Vapi for CX agent's number, then return callers to the script when the agent is done or hand them to a Five9 number.

Send calls from a Five9 interactive voice response (IVR) script to your agent's number in [Vapi for CX](https://cx.vapi.ai). Five9's documentation describes the call returning to your domain when the agent ends its part, so the script can send the caller to a skill.

* **Receive calls:** Yes, from a **Third Party Transfer** module
* **Transfer to a phone number:** Yes, to a Five9 number on an inbound campaign
* **Transfer to a [SIP address](/phone-systems#sip-address):** Coming soon ([Contact sales](https://vapi.ai/sales))
* **Return the call to their system:** described in Five9's [IVR Administrator's Guide](https://documentation-be.five9.com/bundle/ivr-administrators-guide/raw/resource/enus/ivr-administrators-guide.pdf), with **Return After 3rd Party Call** on

## Send calls to the agent

Five9 transfers the call to the agent's number, outside your Five9 contact center.

#### Copy the agent's number

In Vapi for CX, in the agent's **Connect your phone line** step, choose **Connect your phone system**, then **A contact center**. Under **Your contact center or phone system**, pick **Five9**, and copy the number under **In Five9, send calls to this number**. If the agent has several numbers, pick one under **Forward to** first. Write it the way your Five9 domain dials: 10 digits with no leading 1, dashes, or brackets (for example `4155550124`). If your domain is enabled for E.164, you may need to use your national format, or + and the country code instead (for example `+14155550124`); ask your Five9 administrator.

#### Open the campaign's IVR script

In Five9's VCC Administrator, open the script the campaign uses in the **IVR Scripts** folder. To start a new one, right-click **IVR Scripts** and choose **Add IVR Script**. For more information, see Five9's [IVR Administrator's Guide](https://documentation-be.five9.com/bundle/ivr-administrators-guide/raw/resource/enus/ivr-administrators-guide.pdf).

#### Add a Third Party Transfer module

Drag a **Third Party Transfer** module onto the branch the agent should answer. On its **General** tab, under **Third Party Number**, choose **Constant** and paste the agent's number. For more information, see pages 279 to 281 of Five9's IVR Administrator's Guide.

#### Set the two timers

On the same tab, set **Max Time of 3rd Party Call (seconds)** (up to 3,600) and **Ringing Timeout (seconds)** (up to 30).

#### Save the script

Choose **Actions**, then **Save**. New calls use the saved script.

**Number the agent sees:** Five9's guide doesn't say which number the Third Party Transfer module shows. For transfers a person makes, Five9 sends your domain's own number by default, not the caller's. For more information, see Five9's [Campaign Administrator's Guide](https://documentation-be.five9.com/bundle/campaign-administrators-guide/raw/resource/enus/campaign-administrators-guide.pdf), pages 39 to 40 and 46.

**Check it:** on the contact-center screen, choose **Check the line**, then call the campaign's number. The check passes when your call reaches the agent.

## Hand callers to your team

Use **Return the call to their system** to send callers back into your IVR script. Where the reason matters, add a **Transfer to a phone number** handoff for each queue as well.

### Return the call to their system

Five9's IVR Administrator's Guide describes how this works: with **Return After 3rd Party Call** on, the call returns to your domain once the agent ends its part, and the script needs a module after the Third Party Transfer to take it.

#### Turn on Return After 3rd Party Call

In Five9's VCC Administrator, open the IVR script that sends callers to the agent, then its **Third Party Transfer** module, **General** tab. Turn on **Return After 3rd Party Call**. Five9's guide describes the call returning to your domain after the third-party call is completed. Every call the agent ends returns, including calls where the caller had finished, so choose a next module that suits both kinds of call.

#### Connect a next module

Connect a next module after the Third Party Transfer, for example a **Skill Transfer** to the queue every returned caller should reach. Without one, Five9 reports error `2705`, `Third party transfer does not have a descendant`.

#### Save the script

Choose **Actions**, then **Save**.

#### Add the handoff on the agent

In Vapi for CX, on the agent's **Call handling** tab, choose **Add a handoff** on the **Handing callers to people** card. Name it, say when the agent should use it and choose **Return the call to their system**. There is no number to enter. Tick **“Return After 3rd Party Call” is on in Five9** before you save. This handoff type is offered on any kind of line once that line is linked to Five9. To link the line, pick **Five9** under **Your contact center or phone system** and choose **Check the line**.

The same guide describes one more way the caller returns to your contact center: pressing the **Digit to Interrupt 3rd Party Call and Return** key, if one is set.

### Transfer to a phone number

The agent calls a Five9 number on an inbound campaign whose script sends the caller to a skill.

#### Add a number to an inbound campaign

In Five9's VCC Administrator, open **Campaign Properties** for an inbound campaign and select the **DNIS** tab. Choose **Add**, pick a number assigned to your account, choose **OK**, then **Save** or **Apply**. A number belongs to one campaign. For more information, see Five9's [Campaign Administrator's Guide](https://documentation-be.five9.com/bundle/campaign-administrators-guide/raw/resource/enus/campaign-administrators-guide.pdf), pages 58 to 61.

#### Send the caller to a skill

Give that campaign a script that sends the caller to a skill with a **Skill Transfer** module. The script must not lead back to the agent's number, or the call loops.

#### Add the handoff on the agent

In Vapi for CX, on the **Handing callers to people** card, choose **Add a handoff**. Name it, say when the agent should use it, choose **Transfer to a phone number**, and paste the Five9 number. Under **More options**, set **Their people see** to **The caller's number** if your line offers it.

**Check it:** once a handoff is live, choose **Check** on its row, call the campaign's number from your phone and ask for a person. The check shows **Handoff sent** when the agent hands you over or ends its part. To hear a returned call carry on, put a **Play** module after the Third Party Transfer.

## Limitations

* Five9 isn't told why the agent handed the caller back, so every returned caller follows the script's next module and may be asked again.
* A call to the agent can last up to 3,600 seconds and ring for up to 30 seconds.
* You're responsible for telling callers that a call is recorded, and for getting consent where the law requires it.

## Other options

#### Other ways to connect Five9

* **AI Agent Connect over SIP, with call details:** Coming soon. Five9 reads call details over SIP only from AI vendors it has accredited, and Five9 has to enable AI Agent Connect on your account. [Contact sales](https://vapi.ai/sales) and name Five9's SIP route with details.
* **IVA Transfer module:** not supported. It passes the interaction to a chatbot.
* **Five9 Studio IVA:** not supported. It is Five9's own voice bot.
* **A SIP address in the script:** not supported. **Third Party Number** takes a phone number only.