AgentRecipes
Recipes › Voice & phone agents

How to let an AI phone agent hand a caller to a human with a spoken summary (LiveKit warm transfer)

Voice & phone agentsLiveKit Agents✓ Confirmed by source

Confirmed by source: Official vendor documentation plus a maintained example in livekit/agents (about 15k stars, pushed 2026-10-25; latest release livekit-agents 1.8.9 on 2026-10-24; warm-transfer example last changed 2026-09-25). Checked live on 2026-10-25: docs and the WarmTransferTask reference return 200, WarmTransferTask exists in livekit-agents/livekit/agents/beta/workflows/warm_transfer.py, and the example files pass a Python compile check. Not run by BranoLabs (no real calls placed). (checked 2026-10-25)

The problem

A voice agent can handle routine calls, but some callers need a person: a complaint, an escalation or something the agent may not decide. A cold transfer makes the caller repeat everything. You want the agent to put the caller on hold, phone a supervisor, brief them on the conversation so far, and only then connect the two.

Tools needed

Step-by-step recipe

  1. Set up LiveKit telephony: an inbound trunk (or a LiveKit phone number) plus a dispatch rule that sends incoming calls to your agent, and an outbound trunk so the agent can dial the supervisor.
  2. Build the caller-facing support agent with LiveKit Agents in Python and give it a tool, such as transfer_to_supervisor, that it calls when the caller asks for a person or the situation requires one.
  3. In that tool, run WarmTransferTask with the supervisor's number, the outbound trunk (stored trunk ID or inline SIP credentials) and the agent's chat context, so the conversation history goes with the transfer. Optional DTMF digits reach an extension and a ringing timeout limits the wait.
  4. The task places the caller on hold, dials the supervisor into a private consultation room, has an agent summarise the call to them, and then moves the supervisor into the caller's room before the AI leaves.
  5. Handle the result: if the supervisor does not answer or declines, go back to the caller, explain, and offer a callback or a message.
  6. Test with LiveKit's Agent Console first (only the outbound trunk is needed to dial the supervisor), then with real inbound calls, using the official warm-transfer example as a starting point.

Copyable prompt

Prompt template
You handle [TYPE OF CALLS] for [COMPANY]. Solve what you can using [TOOLS / KNOWLEDGE].
Transfer to a human by calling transfer_to_supervisor when: the caller asks for a person twice, the caller is [ANGRY / IN DISTRESS], or the request involves [DECISIONS THE AGENT MAY NOT MAKE, e.g. refunds over EUR X].
Before transferring, tell the caller you are putting them on hold to fetch a colleague and that you will brief them so they will not need to repeat themselves.
Briefing for the supervisor (keep under 30 seconds): who is calling, what they want, what you already tried, and what they need from the supervisor.
If the transfer fails, apologise, offer a callback within [TIME], and confirm the best number to reach them.

Original template written by our AI agent for AgentRecipes, not copied from the source. Replace the [BRACKETS] and {{variables}} with your own values and test before relying on it.

What the builder reported

Official LiveKit documentation for agent-assisted warm transfer, with the prebuilt WarmTransferTask, a manual workflow for full control, and a maintained Python example (warm_transfer.py) in the livekit/agents repository that implements supervisor escalation: hold, dial the supervisor, brief them with a summary, connect them to the customer.

These are the source author's own claims. AgentRecipes has not run this recipe itself.

Watch out for

Source

Original write-up: LiveKit docs ↗

Found via LiveKit Agents on GitHub: “Warm transfer example (supervisor escalation)”. This recipe summarises the source in words written by our AI agent; read the original for the full details. Link last checked 2026-10-25.

More voice & phone agents recipes

Set up an AI phone receptionist that books, reschedules and cancels appointments (Vapi)A small business such as a barbershop or clinic misses calls while staff are busy, and most of those calls are simple: book a slot, move…Vapi✓ Confirmed by sourceAnswer calls after hours with an ElevenLabs voice agent and get a summary of every call (Twilio)Calls that come in at night or at weekends go to a voicemail box nobody checks until the next morning, and the caller often never calls…ElevenLabs Agents✓ Confirmed by sourcePlace outbound reminder and callback calls with Twilio and OpenAI GPT-LiveAppointment reminders, delivery updates and promised callbacks are phone calls staff keep forgetting to make. You want a script that…Twilio✓ Confirmed by source

New agent recipes in your inbox

A short email with the newest automation recipes, each linked to its real-world source. No spam. Every email has a one-click unsubscribe link.