Skip to main content
Back to how-to guides Use this pattern when a voice agent passes the caller to another agent or to a person, and you must control what the caller hears during the move.

Concept

On a phone call, a handoff is a gap in sound. The caller cannot see a screen change. Silence reads as a dropped call, and a stock line such as “Escalated to human agent. Reason: … Priority: …” reads as a machine. You control four things. A handoff to another agent keeps the call on the same line. A transfer to a person moves the call leg. The two use different settings. These settings apply to KoreVG pipeline voice: speech-to-text, then the agent, then text-to-speech. Realtime speech-to-speech calls use the same transition text. See Realtime voice.

Minimal working example

Front_Desk hands billing questions to Billing_Desk. The caller hears one short line before the move. Billing_Desk is a separate agent in your project. A short stand-in follows the example.
Variable sources:
  • caller_name is a GATHER field in Front_Desk. The handoff passes it to Billing_Desk, which declares the same field.
  • invoice_number is a GATHER field in Billing_Desk. The caller supplies it.

How it works

Does the caller hear a transition?

By default, no. An agent-to-agent handoff on voice is silent. Two settings change that. EXPERIENCE_MODE on the HANDOFF has the strongest effect. silent_delegate is the default for a DELEGATE. The caller hears the parent agent, not the delegate. Do not set it on a HANDOFF, because the target’s replies are hidden. CONVERSATION.speaking.handoffs sets the call-wide default for handoffs that omit EXPERIENCE_MODE. The compiler does not check these values. internal: brif is silent, with no diagnostic. An unknown EXPERIENCE_MODE is ignored the same way, and the handoff takes the default.

What the transition says

The default line is “I’m connecting you with the right specialist now.” Replace it with MESSAGES: handoff_message_voice.
  • The text can use session values such as {{caller_name}}. If the rendered text is empty, the platform default line plays.
  • {{target}} becomes “the right specialist”, or “a human agent” for human_escalation. The compiler warns because the real target name is internal. Write neutral wording instead.
  • The line resolves from the project locale entries first, then the agent MESSAGES, then the platform default.

What fills the wait

On a voice call, the platform speaks a short filler while a handoff runs. MESSAGES: filler_handoff replaces it.
  • Filler text is static. It does not support {{ }} placeholders.
  • Add a language suffix for another language, for example filler_handoff_fr-CA.
  • The transition line and the filler are separate. Keep both short, so the caller does not hear two interjections in a row.
For filler timing, see Design low-latency voice flows.

Transfer to a person

A transfer moves the call leg. Three constructs do it. On a voice call, an ESCALATE block needs routing.voice.call_transfer_type set to sip or pstn. Without it, the escalation is refused. A custom type and a call on the Genesys Audio Connector channel use their own paths. In the refused case, the caller hears “I could not connect you to an agent right now. I can keep helping you here.” A transfer_method alone does not start a transfer. The destination comes from the project’s Agent Transfer settings, unless a trusted sipTransferId is pinned on call_transfer. The project’s transfer method wins over the one you author. The line the caller hears before an escalation transfer comes from this order:
  1. A project locale entry or prompt override for escalation.voice.
  2. MESSAGES: escalation_format on the agent.
  3. The platform voice line: “Escalated to human agent. Reason: {{reason}}. Priority: {{priority}}.”
escalation_format can use {{reason}}, {{priority}}, {{agent.name}}, {{channel}}, and {{escalated_at}}. If the rendered text passes 600 characters or 100 words, the platform speaks its built-in line, “Escalating to human agent. Reason: …”, instead. The compiler does not check this. If the model writes a reason that exposes its reasoning, the platform replaces it with “your request needs a specialist”. The platform speaks the line as part of the transfer, because the call discards pending speech when the transfer starts. A separate line spoken after the transfer starts is lost. To control the line yourself, set speaking.handoffs.human: silent and speak your own line in a FLOW step. This applies to flow-step and deterministic-trigger escalations. It does not change the model’s own escalate call. The platform still speaks failure lines. A channel can also carry a default pre-transfer line. It plays only when no message was authored and nothing was said in the turn.

Realtime voice

Common variations

Add a human transfer with a spoken line

Front_Desk adds a human escalation. The agent speaks its own line before the transfer. The SIP destination comes from your project’s Agent Transfer settings. It is a project-local assumption.
Use the Billing_Desk agent from the minimal example. With internal: brief, the handoff speaks your handoff_message_voice line, although the handoff sets no EXPERIENCE_MODE. The escalation speaks your escalation_format line, because human is not silent.

Announce, transfer, and handle a failure in a FLOW

Use call_transfer when you need the exact order. The announcement plays in full before the transfer starts.
Variable sources: this agent reads no caller variables. sip:cards@sbc.example.com is a placeholder. Use your own trusted address.
  • default_source: config reads the destination from the compiled agent and hides it from the model. The address must be a static sip: or sips: URI.
  • BARGE_IN: disallow keeps the caller from cutting off the announcement.
  • The runtime waits for the announcement to finish before it transfers. It waits up to 12 to 45 seconds, sized from the text, and moves on as soon as playback completes.
  • To speak the line as part of the transfer, pass it as the tool’s message instead. The line can be up to 600 characters.
  • For a destination chosen at run time, use RESOLVE_SIP_DESTINATION with an allow-list. See the voice transfer reference.

Escalate from a flow step with your own line

Dispute_Intake speaks one authored line, then escalates. The platform adds no line of its own.
Variable source: dispute_amount is a GATHER field. The caller supplies it. The routing.voice block uses the project’s Agent Transfer destination. With human: silent, a flow step or trigger that escalates adds no platform line, so author one. Without a line, the caller hears nothing before the transfer. For escalation routing, context, and queues, see When to escalate a conversation to a human and Package context for human escalation.

Verification

  1. Run each example through project validation. Fix every error. Read every warning.
  2. Place a test call that triggers the agent-to-agent handoff. Check that you hear your handoff_message_voice line, or silence if you chose a silent mode.
  3. Place a test call that triggers the escalation. Check that you hear your line, not “Escalated to human agent.”
  4. Interrupt the announcement. Check that a BARGE_IN: disallow line plays in full.
  5. Break the transfer on purpose. Remove the project transfer target in a test project. Check that the caller hears the failure line and the agent keeps the call.
  6. Open the session trace. Find the handoff or escalation event. For a transfer, find the call_transfer tool call. An escalation shows source: escalation.
  7. Check the transcript. The announcement appears as an assistant turn.

Production readiness checklist

  • Every HANDOFF target exists in the project. The target declares the fields you pass.
  • You chose the transition mode on purpose. You did not leave it to the silent default.
  • handoff_message_voice and escalation_format use neutral wording. They do not name an internal agent.
  • routing.voice.call_transfer_type is set. The project has an Agent Transfer destination, or you pinned a trusted sipTransferId.
  • Every transfer has a failure line and a next step. See Define fallback behavior for voice failures.
  • If you set human: silent, every escalation path speaks an authored line.
  • You tested the transfer on the real SIP trunk, not only in a test call.
  • Secure input is finished before any transfer. An escalation is blocked while secure input is active.

Common mistakes

Troubleshooting