← All posts

Conversational AI · 7 min read

Designing conversational AI that knows when to hand over to a human

Customers will use an AI assistant, but they want a way out. Here is how to decide when a bot should hand over to a person, what context to pass along, and why handing over late can be worse than not handing over at all.

Subhash Nunna ·

Most teams building a support bot measure one number: how many conversations it handled without a person. That number pushes in one direction — keep the customer with the bot. But the moment that decides whether people trust your assistant is usually the moment it stops trying and passes them to a human.

This post is about designing that moment: when to hand over, what to pass along, and how to tell whether your handovers are working.

Customers want the exit door

Gartner surveyed 3,566 B2B and B2C customers in February and March 2026 and published the results in August. Half said their interactions are easier when companies use generative AI. But 87% said it is essential for companies to provide an option to reach a human agent when GenAI is used. Among customers who were unwilling to use AI, the change most likely to win them over was the ability to switch to a person.

Gartner’s advice to service leaders is blunt: don’t use GenAI as a mandatory first step for every issue. Design it to collect information, understand intent, and attempt a resolution only when confidence is high — with a clear path to a human. Customers, Gartner says, “will push back when AI acts as a barrier to reaching a human.”

So a handover isn’t a failure of your assistant. It’s a feature customers expect.

Late handovers are expensive

The most useful recent evidence comes from a field experiment in Alibaba’s Taobao customer service, published on arXiv in May 2026 by researchers from Zhejiang University, Fudan, Dartmouth and Alibaba. In August 2024 they randomised 647 workers (and about 680,000 chats) so some supervised an AI agent while others handled chats themselves. Among the 11,069 supervised AI chats, escalations fell into three types:

Escalation type Share of supervised chats Ratings vs matched human-only chats
Technical (the system flagged a capability problem) 44.1% No significant difference
Human-initiated (the supervisor stepped in early) 12.3% Down 0.524 points
Emotional (the system flagged built-up negative sentiment) 8.6% Down 0.928 points; retrials up 6 points

The authors’ reading: when the AI fails for technical reasons, a human can step in and recover quality. Once frustration has built up, a human arriving late recovers much less. Emotional escalations tended to happen later in the chat, and the researchers found the humans who picked them up were less proactive and offered fewer solutions. Earlier, proactive intervention limited the damage.

The practical lesson is that “escalate when the customer gets angry” is too late. Your triggers need to fire on the signals that come before anger.

When to hand over: five kinds of trigger

Combining what the docs and guides above describe, triggers fall into five groups. You want several of them, not one.

  1. The customer asks. “Agent”, “talk to a person”, “this isn’t helping”. Cresta’s guide says to transfer these immediately. Don’t make people repeat the request or argue with a retention script first.
  2. The bot can’t understand. Microsoft’s Copilot Studio calls this an implicit trigger: the agent can’t work out the intent, or no topic matches, so it redirects to the built-in Escalate topic.
  3. The bot can’t act. The task needs a verification step, a backend action or a policy exception the AI isn’t allowed to do. Cresta lists these “system limits” alongside compliance requirements. Microsoft’s docs call this explicit triggering: you decide at design time that certain topics always end with a transfer.
  4. The stakes are high. Billing disputes, cancellations, complaints — Cresta’s examples of conversations that need judgement, empathy or trust. Decide this list up front, by intent, rather than waiting for the model to sense it.
  5. The conversation is going badly. Rising negative sentiment, the same question asked twice, the bot giving the same answer twice. Given the Alibaba results, treat these as early warning signals and act on the first one or two, not the fifth.

A simple scoring rule keeps this explainable:

def should_hand_over(turn, state) -> str | None:
    if turn.intent == "request_human":
        return "customer_requested"
    if turn.intent in ALWAYS_HUMAN:          # disputes, cancellations, complaints
        return "policy_sensitive_intent"
    if state.failed_actions or turn.needs_unavailable_tool:
        return "capability_limit"
    if state.unclear_intent_count >= 2:
        return "no_intent_after_retries"
    if state.repeated_question or turn.sentiment_drop > SENTIMENT_DELTA:
        return "conversation_degrading"      # early, before anger peaks
    return None

Return a reason, not just a boolean. You’ll route on it, show it to the human, and use it to find what to fix in the bot.

What to pass along

Nothing undoes a good bot experience faster than “Can you tell me your account number and describe the problem?” from the human who picks up. Cresta’s guide lists the context that should travel with the conversation:

  • the full transcript, plus a short summary of why the customer got in touch, what the AI tried and what’s still open;
  • live customer data from the CRM, shown before the agent connects;
  • intent, sentiment, the escalation reason and a suggested next step;
  • actions the AI already attempted, so the human doesn’t repeat them;
  • authentication already completed, so the customer doesn’t verify twice.

Platforms build this in to different degrees. Copilot Studio passes the conversation history and variables to the engagement hub, including va_LastTopic, va_Phrases and any user-defined topic variables, and its Transfer conversation node lets you add a private message to the live agent (stored in va_AgentMessage). Conversations that reach that node are marked as escalated in its analytics.

In code-first frameworks, you can model escalation the same way you model agent-to-agent routing. The OpenAI Agents SDK’s handoff() takes an input_type — a small schema the model fills in, such as a reason — and an on_handoff callback that runs when the handoff happens. One way to use that for human escalation is to make the callback create the ticket or queue item:

from pydantic import BaseModel
from agents import Agent, handoff, RunContextWrapper

class Escalation(BaseModel):
    reason: str          # e.g. "capability_limit"
    summary: str         # what the customer wants, what was tried
    next_step: str

async def open_human_ticket(ctx: RunContextWrapper, data: Escalation):
    await queue.enqueue(customer=ctx.context.customer_id,
                        reason=data.reason, summary=data.summary,
                        next_step=data.next_step)

human_desk = Agent(name="Human desk",
                   instructions="Tell the customer a person is joining and how long it may take.")

support = Agent(name="Support",
                handoffs=[handoff(human_desk, input_type=Escalation,
                                  on_handoff=open_human_ticket)])

Keep model-written fields like summary short and check them against the transcript; the human should be able to verify the summary in a glance, not trust it blindly.

The handover itself

How you switch matters as much as when.

  • Say what’s happening. Tell the customer a person is joining, and roughly how long it will take. Microsoft’s docs suggest a message node just before the transfer for exactly this.
  • Check someone is there. Dynamics 365 offers representative availability APIs so an agent can check queue availability before escalating; Microsoft says this reduces queue abandonment. If nobody is available, offer a callback or ticket rather than a dead queue.
  • Warm or cold. In a cold transfer the human just picks up; in a warm transfer they’re briefed first. On voice, Cresta suggests a private “whisper” summary to the receiving agent before the customer connects, and keeping transcription running so context isn’t lost.
  • Close the loop. Feed escalated outcomes back so the bot learns which intents it should stop attempting.

Measuring it

Escalation rate on its own is misleading: a falling rate can mean a better bot or a bot that’s harder to escape. Cresta suggests reading it alongside what happens after the handover:

Metric What it tells you
Escalation rate, by reason Where the bot is failing, and why
Post-handover CSAT vs non-escalated Whether handovers recover the experience
Post-handover first-contact resolution Whether the context you pass is good enough
Customer effort score Friction and abandonment during transfer
Time-to-handover Whether you’re escalating early or late

The last one is our suggestion, prompted by the Alibaba finding: track how many turns pass between the first warning signal and the handover.

Trade-offs

  • Cost vs trust. Every handover costs agent time. Making escape hard saves money until customers stop using the bot. Gartner’s survey suggests the second effect is real.
  • Early vs noisy. Sensitive triggers catch trouble early but send conversations the bot could have finished. Tune thresholds per intent, not globally.
  • Rich vs readable context. A full transcript is complete but slow to read. A summary first, with the transcript a click away, is what Cresta recommends.
  • Generated summaries can be wrong. A confident, wrong summary can mislead the human more than no summary at all.

Where to start

  • Add an always-available exit. “Talk to a person” should work at any point, first time.
  • List your always-human intents — disputes, cancellations, complaints, anything regulated — and route them by design.
  • Trigger on early signals: repeated questions, failed actions, unclear intent after two tries. Don’t wait for anger.
  • Pass a reason and a three-line summary with every handover, and skip re-authentication.
  • Measure what happens after the handover, not just how often it happens.

A good assistant is judged as much by how it lets go as by what it handles alone.

conversational AIhuman handoffcustomer serviceescalation