> ## Documentation Index
> Fetch the complete documentation index at: https://koreai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# How to phrase handoffs in a voice conversation

[Back to how-to guides](https://koreai.mintlify.site/agent-platform/abl/how-to/overview.md#voice-and-realtime-conversations)

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.

| You control | Setting |
| - | - |
| Whether the caller hears a transition | `EXPERIENCE_MODE` on the handoff, and `CONVERSATION.speaking.handoffs` |
| What the transition says | `MESSAGES: handoff_message_voice` |
| What fills the wait | `MESSAGES: filler_handoff` |
| What the caller hears before a transfer to a person | `MESSAGES: escalation_format`, a FLOW `RESPOND`, or `call_transfer` `message` |

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](#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.

```abl theme={null}
AGENT: Front_Desk

GOAL: "Answer general questions by phone and hand billing questions to the billing desk."

PERSONA: "You are a concise phone assistant for a utility company."

MESSAGES:
  handoff_message_voice: "One moment. I am passing you to our billing team."

HANDOFF:
  - TO: Billing_Desk
    WHEN: "The caller asks about an invoice, a charge, or a refund."
    CONTEXT:
      pass: [caller_name]
      summary: "The caller has a billing question."
    EXPECT_RETURN: false
    EXPERIENCE_MODE: visible_handoff

GATHER:
  caller_name:
    prompt: "May I have your name?"
    type: string
    required: false
```

```abl theme={null}
AGENT: Billing_Desk

GOAL: "Answer billing questions for callers passed on by the front desk."

PERSONA: "You are a concise phone assistant for the billing team."

GATHER:
  caller_name:
    prompt: "May I have your name?"
    type: string
    required: false
  invoice_number:
    prompt: "What is the invoice number?"
    type: string
    required: true

COMPLETE:
  - WHEN: invoice_number IS SET
    RESPOND: "I found invoice {{invoice_number}}. A billing specialist will follow up by email."
```

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.

| `EXPERIENCE_MODE` | Transition spoken | Target replies |
| - | - | - |
| Not set | Only if `speaking.handoffs.internal` is `brief` or `explicit`. | Spoken. |
| `shared_voice_handoff` (set on the handoff) | Spoken on a voice call. | Spoken. |
| `visible_handoff` | Spoken. | Spoken. |
| `human_escalation` | Spoken, unless `speaking.handoffs.human` is `silent`. | Spoken. |
| `silent_delegate` | Not spoken. | Hidden from the caller. |

`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`.

| Key | Value | Effect |
| - | - | - |
| `internal` | `brief` or `explicit` | Speaks the transition. Both give the same line. |
| `internal` | Anything else, or not set | Silent. |
| `human` | `silent` | Suppresses the platform's escalation line. |
| `human` | Anything else, or not set | Speaks it. |

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](https://koreai.mintlify.site/agent-platform/abl/how-to/design-low-latency-voice-flows).

### Transfer to a person

A transfer moves the call leg. Three constructs do it.

| Construct | Use when |
| - | - |
| `ESCALATE` with `routing.voice` | A trigger, a flow step, or the model decides to escalate. |
| `call_transfer` in a FLOW step | You control the exact sequence: announce, transfer, handle failure. |
| `ESCALATE` with `call_transfer_type: custom` | You only need to signal an external system. The caller stays on the line. |

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

| Setting | Realtime speech-to-speech |
| - | - |
| `handoff_message_voice` and the transition policy | The same policy applies. The transport speaks the line. |
| `filler_handoff` | Not confirmed on realtime. Test on your provider. |
| `ESCALATE` voice transfer and `call_transfer` | Supported. The transport carries the announcement. |
| `speaking.handoffs.internal` | Passed to the provider adapter. Grok reads it. Test the others. |

## 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.

```abl theme={null}
AGENT: Front_Desk

GOAL: "Answer general questions by phone and hand billing questions to the billing desk."

PERSONA: "You are a concise phone assistant for a utility company."

CONVERSATION:
  speaking:
    handoffs:
      internal: brief

MESSAGES:
  handoff_message_voice: "One moment. I am passing you to our billing team."
  filler_handoff: "One moment, please."
  escalation_format: "I am connecting you to a colleague now."

HANDOFF:
  - TO: Billing_Desk
    WHEN: "The caller asks about an invoice, a charge, or a refund."
    CONTEXT:
      pass: [caller_name]
      summary: "The caller has a billing question."
    EXPECT_RETURN: false

ESCALATE:
  triggers:
    - WHEN: "The caller asks for a person twice."
      REASON: "The caller asked for a person."
      PRIORITY: medium
  routing:
    voice:
      call_transfer_type: sip
      transfer_method: refer

GATHER:
  caller_name:
    prompt: "May I have your name?"
    type: string
    required: false
```

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.

```abl theme={null}
AGENT: Card_Activation_Transfer

GOAL: "Tell the caller about a transfer, move the call to a specialist, and handle a failed transfer."

PERSONA: "You are a concise phone assistant for a card issuer."

TOOLS:
  call_transfer(callTransferType: string, sipTransferId: string) -> object
    description: "Transfer the current voice call to a specialist."
    confirm: never
    params:
      callTransferType:
        description: "The transfer transport. Use sip."
      sipTransferId:
        description: "The trusted SIP destination, set from agent configuration."
        default: "sip:cards@sbc.example.com"
        default_source: config

FLOW:
  entry_point: announce_transfer
  steps:
    - announce_transfer
    - perform_transfer
    - transfer_failed

  announce_transfer:
    REASONING: false
    BARGE_IN: disallow
    RESPOND: "I could not verify your card. I will connect you to a specialist. Please stay on the line."
    THEN: perform_transfer

  perform_transfer:
    REASONING: false
    CALL: call_transfer(callTransferType: "sip")
    ON_SUCCESS:
      THEN: COMPLETE
    ON_FAIL:
      THEN: transfer_failed

  transfer_failed:
    REASONING: false
    RESPOND: "I could not connect your call. Please call back in a few minutes."
    THEN: COMPLETE
```

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.

```abl theme={null}
AGENT: Dispute_Intake

GOAL: "Collect a dispute amount and pass large disputes to a person."

PERSONA: "You are a concise phone assistant for a bank."

CONVERSATION:
  speaking:
    handoffs:
      human: silent

ESCALATE:
  context_for_human:
    - dispute_amount
  routing:
    voice:
      call_transfer_type: sip

FLOW:
  entry_point: ask_amount
  steps:
    - ask_amount
    - decide
    - log_dispute
    - hand_to_person

  ask_amount:
    REASONING: false
    GATHER:
      - dispute_amount: required
        type: number
        prompt: "What is the amount of the disputed charge, in dollars?"
    THEN: decide

  decide:
    REASONING: false
    ON_RESULT:
      - IF: dispute_amount > 500
        THEN: hand_to_person
      - ELSE:
        THEN: log_dispute

  hand_to_person:
    REASONING: false
    RESPOND: "A specialist needs to review this dispute. I am transferring your call now. Please stay on the line."
    THEN: ESCALATE WITH REASON: "The dispute is above the agent limit." PRIORITY: high

  log_dispute:
    REASONING: false
    RESPOND: "I logged your dispute for {{dispute_amount}} dollars."
    THEN: COMPLETE
```

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](https://koreai.mintlify.site/agent-platform/abl/how-to/escalate-to-human) and [Package context for human escalation](https://koreai.mintlify.site/agent-platform/abl/how-to/package-human-escalation-context).

## 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](https://koreai.mintlify.site/agent-platform/abl/how-to/define-voice-fallbacks).
* 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

| Mistake | Why it happens | How to avoid it |
| - | - | - |
| Expecting a spoken line from a plain `HANDOFF` | The platform tells callers about a transfer in chat. | On voice, the default is silent. Set `EXPERIENCE_MODE` or `internal: brief`. |
| Setting `internal: silent` and an explicit `EXPERIENCE_MODE: visible_handoff` | The two settings look equal. | An explicit `visible_handoff` always speaks. Remove it or change the mode. |
| Typing `internal: brif` | The value is free text. | The platform stays silent with no diagnostic. Use `brief` or `explicit`. |
| Setting `EXPERIENCE_MODE: silent_delegate` on a `HANDOFF` | The name suggests a quiet handoff. | It hides the target's replies. Use it on `DELEGATE` only. |
| Writing `{{target}}` in a handoff line | The placeholder looks useful. | The compiler warns. Write neutral wording. |
| Adding `routing.voice` with only `transfer_method` | The block looks complete. | Add `call_transfer_type: sip` or `pstn`. Otherwise the voice escalation is refused. |
| Leaving the default escalation line | The default is a text-channel phrase. | Set `escalation_format`. |
| Writing a very long `escalation_format` | The compiler accepts it. | Keep it under 600 characters and 100 words, or the built-in line plays. |
| Speaking a line after the transfer starts | The call discards pending speech at transfer. | Speak the line before `call_transfer`, or pass it as `message`. |
| Using `human: silent` with no authored line | The platform line is gone. | Add a `RESPOND` in the flow step before the escalation. |
| Setting a project locale entry and expecting the agent text to win | Several layers set the text. | The project entry wins over the agent `escalation_format`. |

## Troubleshooting

| Symptom | Likely cause | What to check |
| - | - | - |
| Silence at the handoff | The mode is silent. | `EXPERIENCE_MODE` and `speaking.handoffs.internal`. |
| The caller hears the stock text, not mine | A project locale entry or override replaces it. | Project locale entries for `handoff_message_voice` and `escalation.voice`. |
| The caller hears "Escalated to human agent. Reason: ..." | No `escalation_format`. | `MESSAGES: escalation_format`. |
| The caller hears "Escalating to human agent. Reason: ..." after I set `escalation_format` | The text is over 600 characters or 100 words. | The rendered length. |
| "I could not connect you to an agent right now." | No `call_transfer_type`, no transfer target, or the transfer failed. | `routing.voice.call_transfer_type`, project Agent Transfer settings, trunk logs. |
| The announcement is cut off | The line played after the transfer started. | Put it in a step before `call_transfer`, or use `message`. |
| The target's replies are missing | `silent_delegate` on the handoff. | `EXPERIENCE_MODE`. |
| No escalation during card entry | Secure input blocks it. | Finish the `SECURE_INPUT` step first. |
| Nothing happens after `ESCALATE` in a flow | The agent has no `ESCALATE` block. | Add the block with `routing.voice`. |

## Related HowTos

* [When to escalate a conversation to a human](https://koreai.mintlify.site/agent-platform/abl/how-to/escalate-to-human)
* [Package context for human escalation](https://koreai.mintlify.site/agent-platform/abl/how-to/package-human-escalation-context)
* [Transfer control permanently to another agent](https://koreai.mintlify.site/agent-platform/abl/how-to/terminal-agent-handoff)
* [Transfer control to another agent and return later](https://koreai.mintlify.site/agent-platform/abl/how-to/returnable-agent-handoff)
* [Handle barge-in, pauses, and unclear audio](https://koreai.mintlify.site/agent-platform/abl/how-to/handle-voice-turn-taking)
* [Design low-latency voice flows](https://koreai.mintlify.site/agent-platform/abl/how-to/design-low-latency-voice-flows)
* [Define fallback behavior for voice failures](https://koreai.mintlify.site/agent-platform/abl/how-to/define-voice-fallbacks)
* [Configure speaking style, tone, and pace](https://koreai.mintlify.site/agent-platform/abl/how-to/configure-voice-speaking-style)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.