rokan

Why does my voice agent say it’s transferring, but no transfer happens?

Saying “I’m transferring you” and transferring the call are two separate things. The sentence is text the model writes; the transfer is a tool call that has to run and succeed. When callers hear the sentence and stay with the bot, either the model wrote the words without calling the transfer tool, or it called the tool and the transfer failed. The call log tells you which.

Updated · General advice for any voice platform · 5 min read

How to tell which one happened

Open a few affected calls and line up the agent’s turns with its tool calls.

Match what you see to the likely cause
What you see in the call logLikely cause
The agent says it is transferring, and no transfer tool call appears anywhere after that turnThe model wrote the words without calling the tool.
A transfer tool call is there, and its result is an errorThe transfer itself failed, and the agent had already told the caller it worked. Read the error the tool returned.
The caller asked for a person, and the agent kept answering insteadThe agent never decided to transfer: a missed handoff.
The agent transferred a request it was meant to handle itselfThe prompt’s rule for when to transfer is too broad.

The first two are the same mistake underneath: the agent announced an action before the action succeeded.

Find every affected call in an export

  1. List your transfer phrases, the exact sentences your agent uses when it hands over a call.
  2. Search only the agent’s turns for those phrases.
  3. For each hit, look back for a transfer tool call with a successful result at or before that turn. Keep the calls where there is none.

A short script does it. Rename the fields to match your export; this one expects a JSON list of calls, each with an id and turns, where a turn is either agent text or a tool call with a name and an ok flag.

import json, re, sys

PHRASES = ["transferring you", "transfer you now"]   # your agent's exact words
TRANSFER_TOOLS = {"transfer_call"}                   # your transfer tool name(s)

said = re.compile("|".join(map(re.escape, PHRASES)), re.I)
calls = json.load(open(sys.argv[1]))
bad = []
for call in calls:
    transferred = False
    for turn in call["turns"]:
        if turn.get("name") in TRANSFER_TOOLS and turn.get("ok"):
            transferred = True
        if turn.get("role") == "agent" and said.search(turn.get("text", "")) and not transferred:
            bad.append(call["id"])
            break
print(len(bad), "of", len(calls), "calls announced a transfer that had not happened")
print("\n".join(bad))

Fix it: the sentence comes after the tool succeeds

  • Make the transfer the next action. When the caller asks for a person, the agent’s next step is the transfer tool call, not another answer or another question.
  • Allow the transfer sentence only after the tool returns success. If your platform can speak a fixed message as part of the transfer itself, use that instead of a sentence the model writes.
  • Plan for a failed transfer. If the tool returns an error, the agent says the transfer did not go through and offers another way to reach a person.
  • Write down when not to transfer. Requests the agent can handle, including ones it should decline, stay with the agent.

This is the rule Rokan wrote for the example below, word for word:

If the user asks for a supervisor, a manager or a human agent, or disputes
information you have given and asks to be escalated, your next action is a
transfer_to_human_agents tool call, and only after it succeeds do you send
'YOU ARE BEING TRANSFERRED TO A HUMAN AGENT. PLEASE HOLD ON.' Do not repeat
the earlier answer or ask further questions first.

A real example

Six calls from a public airline voice-agent benchmark (tau2-bench), not customer calls, checked by Rokan on Nov 23. Three of the five problems it found were about transfers:

  • Call 5, missed handoff. The caller disputed their membership level and asked for a supervisor. The agent repeated its answer, and the call ended without a transfer_to_human_agents call.
  • Calls 1 and 3, transfers that should not have happened. Both callers asked for compensation the policy does not allow. The policy says to decline; the agent sent both to a human instead.
Call 5: FAIL  missed handoff
Caller  I believe I'm a Gold member, not Silver. Could you please
        double-check that for me?
Agent   My apologies, [name]. My records indicate your membership
        level is Silver. ...
        (the call ends with no transfer_to_human_agents call)

Rokan’s best set of rules, including the one above, fixed 3 of the 5 failing calls it aimed at and did not break the one call that worked. Two calls it aimed at still failed, so Rokan held the fix for a person instead of shipping it.

Short answers

Why does my agent say it’s transferring but the call stays with the bot?

The spoken sentence and the transfer are separate. Either the model wrote the sentence without calling the transfer tool, or the tool ran and failed. The call log shows which: look for a transfer tool call, and its result, at or before the turn where the agent announced it.

How do I stop the agent announcing a transfer that hasn’t happened?

Make the transfer the agent’s next action, and allow the transfer sentence only after the tool returns success. If the transfer fails, the agent should say so and offer another way to reach a person.

How do I find every call with a transfer that never happened?

Search the agent’s turns in an export for your transfer phrases, then keep the calls where no successful transfer tool call appears at or before that turn.

How Rokan handles it

Rokan reads your calls and flags every one where the agent’s words and its tool calls disagree, quoting the exact line. It writes a rule like the one above, replays your past calls with it, and holds the fix if any call it aimed at is still broken.