Handoffs configure SIP call transfers for voice agents. They define how and where a call should be transferred, or whether it should be ended.
Enterprise featureHandoffs require an enterprise Agent Studio account.
Location
Handoffs are defined in:handoffs key.
What a handoff contains
Each handoff includes the following fields:SIP config types
A handoff uses one of three SIP methods:Notes
phone_numbershould use E.164 formatoutbound_encryptioncan beTLS/SRTPorUDP/RTP
Validation
nameis required and at most 100 characters.descriptionis at most 300 characters.sip_config.methodmust be one ofinvite,refer, orbye.- For
invite,outbound_encryptionmust beTLS/SRTPorUDP/RTP. phone_number(forinviteandrefer) andoutbound_endpoint(forinvite) are at most 100 characters each.- Each
sip_headersentry needs a textkeyandvalue. - A SIP header
keyis at most 100 letters, digits or!#$%&'*+-.^_~. - A SIP header
valueis at most 1,000 printable ASCII characters. - Across all handoffs in
config/handoffs.yaml, exactly one must haveis_default: true— zero or more than one default handoff fails validation. - Each handoff
namemust be unique.
Example
How handoffs are used
In code
Call a handoff directly with
conv.call_handoff(...).In rules
Refer to a handoff using
{{ho:handoff_name}}.In topics and flows
Instruct the model to call a function that performs the handoff.
In code
You can trigger a handoff directly in code:In rules
A handoff can be referenced inrules.txt using:
In topics and flows
Topics and flows should generally not perform raw transfer logic directly in prompt text. Instead, they should guide the model toward calling a function that performs the handoff. For example:Best practices
- use clear, descriptive handoff names
- use E.164 format for phone numbers
- create one handoff definition per transfer purpose
- keep
sip_headersminimal - only add custom SIP headers when the receiving system actually requires them
Related pages
Functions
See how handoffs are typically triggered from deterministic logic.
Agent settings
Learn how handoffs are referenced in rules.
Conversation object reference (platform)
Full reference for
conv.call_handoff — destination, reason, utterance, and SIP header overrides.
