Five9 AI Agent Connect
Seamlessly hand off Regal AI calls to a human agent in Five9 via Five9's AI Agent Connect integration.
Regal is an accredited Five9 AI Agent Connect partner. Regal follows Five9's recommended integration path for AI agent providers. It runs over the same shared Twilio ↔ Five9 SIP trunk used for a standard SIP integration, but replaces the manual SIP transfer/header configuration with a purpose-built handoff flow designed specifically for escalating AI calls to human agents.
Before you start
- Regal SIP domain and phone number: Email [email protected] to get a SIP domain and one phone number for your account.
- Five9 IP addresses: Ask your Five9 account manager for the IP addresses Five9 sends calls from, and provide them when asked by your Regal FDE.
- Handoff destinations: Know the Five9 skill, queue, agent, or number each handoff should go to. You'll enter these in Step 3.
- Call data: Decide what Five9 should send Regal (such as campaign or lead source) and what your agents need to see when the call comes back.
How it works
- Your Five9 IVR routes an inbound (or dialer-initiated outbound) call to Regal over your existing Five9 ↔ Twilio SIP trunk, using your dedicated Regal SIP domain and phone number.
- Five9 stays on the call while your Regal AI agent handles the conversation.
- When the call ends or needs to go to a human agent, Regal ends its leg of the call, cutting the cost of an extra call leg.
- Your Five9 IVR detects that Regal has left the call and makes a request to Regal to find out what to do next — end the call, or route it to a specific agent, skill, or queue — along with any data your human agent needs for their screen pop.
With this AI Agent Connect approach, you'll have full call-outcome data for every call back to Five9 - not just the ones that get escalated to a human.
Setting up Five9 AI Agent Connect
Step 1: Confirm your Five9 SIP trunk is configured
If you haven't already set up a standard SIP connection between Regal and Five9, do that first — see CCaaS / SIP Integration. AI Agent Connect reuses that same trunk, FQDN, and phone number; there's no separate trunk to configure.
Use one number for multiple AI agents
Regal recommends only using one phone number. Five9 sends every call to that number, and Regal picks the AI agent based on data Five9 sends with the call and routing rules configured.
Step 2: Enable AI Agent Connect for your brand
- Enable the Five9 AI Agent Connect integration on your account (Settings → Integrations).
- Under Query Credentials, click Reveal and Copy your Regal API key — this is the same Regal API key used elsewhere in your account. Share it with whoever configures your Five9 IVR's Query module, so Five9 can authenticate its calls to Regal's Call Handoff API.
- Review Hangup Behavior — this shows the fixed values Five9 will get back when a call ends without an active transfer (i.e. no Transfer Destination was used).
- (Optional) Under Additional Metadata, add static key/value pairs to include in every Call Handoff API response for this integration — on both hangups and transfers. Dynamic call data (contact attributes, task attributes, defined contact data) is already included automatically and can't be added here.
Step 3: Create a Five9 AI Agent Connect transfer destination in Regal
Before this step, get from your Five9 admin where each handoff should go (a skill, queue, agent, or external number). Create one Transfer Destination per target and enter its route type and route value.
- Go to Settings → Transfer Destinations
- Click to add a new transfer destination
- Set External Integration to Five9 AI Agent Connect
- (Optional) Add up to 10 Additional Metadata key/value pairs — static values you want included every time this destination is used (in addition to the contact and call data Regal sends automatically)
- Save
Step 4: Configure your AI agent(s) to use the destination(s)
- On your AI agent's Transfer action, select the relevant Five9 destination
- Note: AI Agent Connect handoffs are always cold transfers. If you need warm transfer for a given use case, you can set up a separate standard SIP transfer destination with SIP INVITE instead (see Receiving a SIP call from Regal in the SIP integration guide).
Step 5: Configure your Five9 IVR
Work with your Forward Deployed Engineer and Five9 Support Team to configure your Five9 IVR to:
- Route the relevant calls to Regal over the SIP trunk from Step 1
- Detect when Regal has left the call, and make the outcome/routing request back to Regal (the "Supervised Transfer" step) to learn what to do next
- Parse the routing response to decide whether to end the call or route it to the right skill, queue, or agent, and use the returned data to populate the agent's screen pop
The Call Handoff API allows up to 10 requests per second.
What data is included in the handoff
When Five9 asks Regal what to do with a call by hitting the Call Handoff API, Regal returns:
Routing instructions:
| Field | What it tells Five9 |
|---|---|
| Route type | Whether to route to a skill, an external number, a specific agent, or simply hang up |
| Route value | The destination for that route type (skill name, phone number, agent ID) |
| Route reason | A short outcome description for your Five9 reporting (e.g. caller hung up, agent ended the call, an error occurred) |
Call data, made available to Five9 for screen pops and reporting:
- Any Additional Metadata you configured on the transfer destination
- Task/call details from the interaction — including the SIP headers your Five9 IVR originally sent to Regal
- Contact data your AI agent collected or already had on file during the call (e.g. name, zip code) — whatever your agent is configured to collect
FAQ
Do I need a new SIP trunk for AI Agent Connect?
No — it uses your existing shared Twilio ↔ Five9 SIP trunk. See CCaaS / SIP Integration if you haven't set that up yet.
I need warm transfer for my Five9 use case — can I get that through AI Agent Connect?
No — AI Agent Connect only supports cold handoff. For warm transfer, configure a standard SIP transfer destination using SIP INVITE instead (see Receiving a SIP call from Regal in the SIP integration guide).
Does Regal keep recording after the handoff?
No. Regal leaves the call when it hands off, so Regal's recording and transcript end there. Five9 still receives the outcome and call data.
Can I use AI Agent Connect for calls Regal dials?
No. AI Agent Connect only works for calls Five9 sends to Regal, because Five9's IVR has to stay on the call. For calls Regal dials, transfer with SIP INVITE, SIP REFER, or PSTN (see CCaaS / SIP Integration).
Does Regal detect voicemail or iOS call screening on calls from Five9?
Not today. Regal's voicemail detection doesn't run on calls coming into Regal. Handle it in Five9 or in your AI agent's prompt.
Should I use AI Agent Connect or a standard SIP transfer?
| AI Agent Connect | Standard SIP transfer | |
|---|---|---|
| Transfer type | Cold only | Cold or warm |
| Outcome sent to Five9 | Every call, including hang-ups | Only transferred calls (in SIP headers) |
| Regal recording after handoff | Ends at handoff | Continues with SIP INVITE |
| Cost | No extra call leg | Extra leg with INVITE |
| Works for | Calls Five9 sends to Regal | Any call |
What happens if I regenerate my Regal API key?
Five9 uses the same key, so its handoff requests fail until you update the key in Five9. Update Five9 at the same time you regenerate it.
Troubleshoot Five9 AI Agent Connect
Find your symptom below. Each row lists the most likely cause, how to check it, and how to fix it.
Calls into Regal
| Symptom | Likely cause | How to check | Fix |
|---|---|---|---|
| Calls from Five9 don't show up in Regal | Five9's IP addresses aren't allowed on your Regal SIP domain (common after Five9 sets up a new trunk or changes IPs), the phone number isn't in Five9's routing, or AI Agent Connect isn't turned on in your Five9 domain | Look for the call on the Tasks page at the time it was placed. Ask Five9 for a trace of the call. | Send Five9's current IP addresses to [email protected]. Ask Five9 to confirm the number is in their routing and AI Agent Connect is on. |
| The wrong AI agent answers | The Incoming Call routing rule doesn't match the header or number Five9 sends | Open the call on the Tasks page and compare incomingSipHeaders with your routing rules | Update the rule using the header name and value exactly as they appear on the call |
Handoff back to Five9
| Symptom | Likely cause | How to check | Fix |
|---|---|---|---|
| Calls transfer by phone number instead of through AI Agent Connect | The AI agent's Transfer action still points to an older transfer destination | Open the AI agent's Transfer action | Select your Five9 AI Agent Connect transfer destination |
| Your agent's screen pop is missing a field | The AI agent didn't collect it, or it isn't set up as contact data | Look for definedContactData.* in the Call Handoff API response | Add the field to your AI agent, or add it as Additional Metadata on the transfer destination |
| Calls go to the wrong Five9 skill, queue, or agent | The route value on the transfer destination doesn't match the name in Five9 exactly | Compare the transfer destination in Regal with the names in Five9 | Correct the route value |
| Five9 doesn't route the call after Regal leaves | Your Five9 IVR isn't requesting routing instructions from Regal | Check your Five9 IVR logs for the Call Handoff API request | Ask your Five9 admin to fix the request step in the IVR |
| Call Handoff API returns 400 | provider=five9 is missing from the request | Check the request URL | Add ?provider=five9 |
| Call Handoff API returns 401 | Missing X-Brand header, or brand not found | Check the request headers | Contact [email protected] |
| Call Handoff API returns 403 | The Regal API key is wrong or out of date | Compare the key in Five9 with Settings → Integrations → Five9 AI Agent Connect | Copy the current key into Five9 |
| Call Handoff API returns 404 | Regal has no handoff data for that call ID. Usually X-CallSessionId wasn't sent on the call, or the request used a different value. | Open the call on the Tasks page and check task asstributes. | Send X-CallSessionId on every call, and use the same value in the request |
| Call Handoff API returns 429 | More than 10 requests per second | Check request volume in your Five9 logs | Slow down requests and retry |
Expected behavior
These are not errors:
- Regal's recording and transcript stop at the handoff. Regal leaves the call when it hands off to Five9.
- Your agent doesn't hear a summary from the AI. AI Agent Connect only supports cold transfers. For a warm transfer, use a standard SIP transfer with SIP INVITE.
- Voicemail and iOS call screening aren't detected. Regal's voicemail detection doesn't run on calls coming into Regal.
Updated 4 days ago

