Skip to main content

Connect Fin Voice to Five9 with SIP

Connect Five9 to Fin Voice with SIP, import the IVR script, and route callers after Fin Voice finishes the call.

Written by Dawn P

Use this article to connect Five9 to Fin Voice with SIP (Session Initiation Protocol), import the Fin Voice IVR (interactive voice response) script into Five9, and route callers after Fin Voice finishes. It's for Five9 admins who can edit IVR scripts and campaigns, and the teammates who add lines in Fin Voice.


How does Fin Voice connect to Five9 with SIP?

Connecting Five9 to Fin Voice with SIP means your Five9 IVR sends calls straight to Fin Voice. When Fin Voice finishes, control returns to your IVR on the same call, and you can route the caller to the right skill using Fin Voice's result.

Note: SIP with Five9 is currently available for Five9 accounts in the US. If your Five9 account is in another region, contact Intercom before you start.

If you want to get started faster, set up call forwarding with Five9 first, then move to SIP. See Integrating Fin Voice with Five9 using call forwarding. For how SIP works with Fin Voice in general, see Connect Fin Voice to your phone system with SIP.


What do I need before connecting Five9 to Fin Voice with SIP?

Before you connect Five9 to Fin Voice with SIP, make sure you have:

  • A Five9 account with admin access to IVR scripts and campaigns.

  • SIP connectivity for a third-party AI agent, enabled on your Five9 account. Contact your Five9 account team to set this up. Five9 charges for this connection, which can include a one-off setup fee, a monthly fee, and per-minute charges. Ask your Five9 account team what it costs for your account.

  • Five9's SIP IP (Internet Protocol) address ranges for your account.

  • A pseudo number that your IVR dials to reach Fin Voice.

  • An access token from your app in the Intercom Developer Hub, with the read_conversations scope.


How to connect Five9 to Fin Voice with SIP

Step 1: Add a Five9 SIP line in Fin Voice

To add a Five9 SIP line in Fin Voice and download the setup file for Five9:

  1. Go to Fin AI Agent > Deploy > Voice and click New line.

    Add line panel in Fin AI Agent > Deploy > Voice. Under Already have a phone system, the option Send calls straight to Fin (SIP) is highlighted and marked A few weeks.
  2. Under Already have a phone system, choose Send calls straight to Fin (SIP).

  3. Give the line a name and choose Five9 as the provider.

    Line details panel with Five9 selected as the SIP provider, and the IP addresses tab open showing the Allowed IP addresses field and the Phone number, SIP extension, or identifier field.
  4. On the IP addresses tab, under Allowed IP addresses, enter each IP address or range Five9 sends calls from using Add an IP address or range.

    Line details panel with Five9 selected as the SIP provider and the Credentials tab open, showing the SIP username and SIP password fields and the Phone number, SIP extension, or identifier field.

    The Credentials tab has SIP username and SIP password fields. Optionally, enter a phone number, SIP extension, or identifier under Phone number, SIP extension, or identifier. If you leave it blank, Fin Voice generates one for you.

  5. Click Continue.

  6. Click the pencil icon on the line's card to open Line details, then click Export configuration and choose Download setup file.

    Line details panel for a Five9 line, open over the line's settings page. It shows the line name, allowed IP addresses, SIP domain, and the Phone number, SIP extension, or identifier.
  7. Enter your pseudo number. This downloads a Five9 IVR script (.five9ivr file) set up for this line.

Step 2: Import the Fin Voice IVR script in Five9

To import the Fin Voice IVR script and attach it to a campaign in Five9:

  1. In Five9, import the .five9ivr file as a new IVR script.

  2. Open the Set Headers module and check the variables the Fin Voice script uses. Fin.fqdn is your SIP domain from Line details. bearer_token is your Intercom access token, which isn't included in the file, so add it here. Fin.iva_transfer_number is your pseudo number.

  3. Attach the script to the inbound campaign that should send calls to Fin Voice.

The Fin Voice script sends the Five9 call ID, the caller's number, and the line's routing identifier to Fin Voice as SIP headers: X-CallID, X-CallANI, and X-FinVoice-Config-Id.

Step 3: Route Five9 calls after Fin Voice

To route Five9 calls after Fin Voice finishes, set the line to hand calls back by ending its side of the call:

  1. In Fin Voice, go to Fin AI Agent > Deploy > Voice and open the line.

  2. Go to If Fin can't resolve the conversation.

  3. Set What should Fin do if it can't resolve the conversation? to End the call on both the Inside office hours and Outside office hours tabs.

When Fin Voice finishes its part of the call, it ends its side and your Five9 IVR script continues. The script requests Fin Voice's call data using the Five9 call ID. You can then route the caller to a skill based on Fin Voice's result, for example ending the call if Fin Voice resolved it, or queuing it for a teammate if not. See Get Fin Voice's call data into your phone system in Connect Fin Voice to your phone system with SIP.

Step 4: Test and go live with Five9 and Fin Voice

To test the Five9 connection and go live:

  1. In Five9, open the campaign debugger (Campaigns > your campaign > DNIS > Set Params & Start) and call the campaign number. The debugger shows which step of the script ran and why any step failed.

  2. Confirm the call reaches Fin Voice, Fin Voice answers on the right line, and the call returns to your IVR when Fin Voice finishes.

  3. When you're ready for customers to reach Fin Voice, route customer calls to the line and increase the rollout gradually, starting outside office hours or at 5–10% of calls.

For more on rollout percentages, see Test and go live in Connect Fin Voice to your phone system with SIP. To try Fin Voice in the preview first, see Test Fin Voice before going live.

Note: Calls that reach Fin Voice, including test calls on a real line, are billed as Fin Voice outcomes at $1.99 per outcome. Your first 14 days of Fin Voice outcomes are free, and calls in the preview aren't billed. Your provider's call charges are separate. For details, see Fin AI Agent outcomes.


How to troubleshoot Five9 SIP calls with Fin Voice

If your Five9 SIP line doesn't behave as these steps describe, check the following:

  • The call never reaches Fin Voice: check the IP ranges on the line, and check that Fin.fqdn matches your SIP domain exactly.

  • Fin Voice answers, then the call drops: check that the routing identifier in X-FinVoice-Config-Id matches the line.

  • No call data comes back after the call: check that bearer_token is set and that the token has the read_conversations scope.


Related articles about Fin Voice and SIP


💡Tip

Need more help? Get support from our Community Forum
Find answers and get help from Intercom Support and Community Experts


Did this answer your question?