Skip to main content
When your agent can’t or shouldn’t finish a conversation itself, it hands it to your team. A handoff has three parts:
  1. The agent picks a reason. It chooses from the reasons you set up, using each reason’s When to use description.
  2. Your configuration picks the destination. Each reason says where the caller goes. The agent never chooses a phone number or queue.
  3. The platform speaks and transfers. It says the reason’s wording, or your default message if the reason has none, then transfers the call.
You set this up on the Handoffs page: go to Integrations > Telephony and click Handoffs.
To hand off from function code, pass context to your live agents, or route with transfer_call, see Advanced handoffs.

Reasons

Each reason has:
  • Name: what you and your team see in Dialog Studio.
  • When to use: tells the agent when this reason applies. Write it the way you’d brief a new receptionist, for example “The caller has a question about a bill, invoice or payment.”
  • What happens: one outcome on calls and one on text channels.
Each reason is also recorded in analytics under a fixed key, shown under the name as Recorded in analytics as. The key is set when you create the reason and doesn’t change if you rename it, so your reports stay consistent. On calls, a reason can: On text channels, a reason can answer instead or be not offered. Handing off to live chat through a reason isn’t available yet; chats hand off from function code. Wording and messages can include variables from the conversation, such as the caller’s name. If a variable has no value, it’s left out rather than read aloud.

Starter reasons

New projects, and existing projects that add their first destination, get five starter reasons that transfer to the default destination. You can edit them, point them at another destination, or delete them. Add your own reasons for anything specific to your business, for example prescription refills going to a pharmacy line.

If a reason isn’t recognised

If the agent hands off on a call with a reason that isn’t set up, for example one deleted mid-conversation, the caller goes to your default destination. On text channels, the agent keeps helping instead.

Destinations

A destination is a phone number or SIP address your agent can transfer calls to. Your first destination becomes the default destination: where callers go when nothing more specific applies. To change it, open a destination’s actions menu and select Set as default. You can’t delete the default; set another destination as the default first. If you delete any other destination, the reasons and functions that transferred there send callers to the default instead.

Adding a handoff destination

  1. On the Handoffs page, click Add destination.
  2. Enter a Name, such as “Front desk”. The agent and your team see it; callers never hear it.
  3. Enter where the call should go: a phone number with + and the country code, a SIP address, or an extension, depending on your phone system.
  4. Open Advanced if you need to change how the call is transferred:
    • Method: how your phone system takes the call. Most take SIP REFER.
      • SIP REFER (default) – PolyAI specifies a transfer destination to the client (SBC), then drops from the call.
      • SIP INVITE – PolyAI creates a new call with the destination and acts as a bridge between the client SBC and the destination.
      • SIP BYE – PolyAI signals that its call leg is over, allowing the client SBC to take the call back over.
  1. Click Add destination.

Configuring SIP headers

SIP headers send extra metadata with the transfer, such as an account number for the receiving system. To add one, open Advanced on the destination and click Add header.
  • Custom headers should start with X-, for example X-Customer-ID.
  • Values can use variables prefixed with $ for data from the conversation, for example X-Caller-ID: $caller_id.

Encryption options

When using SIP INVITE, you can choose the transport encryption: Encryption only applies to SIP INVITE. SIP REFER and SIP BYE delegate transport to the carrier or SBC.

Integration-level constraints

Your telephony integration (e.g. Twilio, SIP trunk) may impose constraints on handoff configuration. When constraints are active:
  • The SIP method dropdown may be locked to a specific method (e.g. all handoffs must use SIP REFER)
  • The route/phone number field may be hidden if routing is handled by the carrier
  • The SIP headers section may be hidden if the integration does not support custom headers
If a handoff’s method does not match the integration’s required method, a warning appears on the handoff card. Update the handoff to match, or the transfer may not work as expected.

Handoffs with Twilio numbers

If you connect your own Twilio account from Integrations > Telephony, PolyAI creates the SIP trunk in your Twilio account for you. You don’t set a webhook URL in Twilio. Twilio hands calls to your human agents with a SIP REFER, so the Method on each handoff destination is locked to SIP REFER. Enter the number your Twilio setup should transfer to in Route, in E.164 format such as +14155551234. See Twilio.
US-based Twilio SMS numbers must be registered for A2P 10DLC.

Default message on transfer

The default message is what the agent says just before a transfer when the reason has no wording of its own, for example “Let me put you through to someone who can help.” It applies to calls.
  • If you’ve never set one, the agent may say a short line of its own before transferring.
  • If you clear it, calls transfer without anything said first.

Testing

Each destination has a Transfer test calls setting, under Advanced. When it’s on, test calls from Draft, a branch or any environment other than Live really transfer, so you can hear the whole handoff. When it’s off, those test calls don’t transfer. Live calls always transfer.
  • Destinations you add start with it on.
  • Projects created from a template start with no phone number on their destinations and Transfer test calls off. Add your number, then turn it on to test.

Best practices

  • Write clear When to use descriptions. The agent relies on them to pick the right reason, so describe the situation, not the team.
  • Keep a default destination you’re happy to send anyone to. It’s where unrecognised reasons and deleted destinations end up.
  • Test before publishing. Make an in-app call in Sandbox, or move your branch to Staging and call the Staging number, with Transfer test calls on.
  • Use SIP headers for context. Pass details like X-Customer-ID so the receiving system can route the call or show caller context.

Not available yet

Reasons can’t yet:
  • hand chat conversations to live agents;
  • send callers to different destinations by opening hours or by variant.
If you need either now, hand off from a function instead. See Advanced handoffs.

Advanced handoffs

Hand off from function code and pass context to your team.

Handoff actions in FAQs

Hand off from Knowledge topics.

Handoff States API

Monitor transitions between automated and live agents.

Telephony

Connect the numbers your handoffs transfer from.
Last modified on December 3, 2026