All posts

AI chatbot human handoff: when to escalate to an agent and how to pass the context

AI chatbot human handoff decides whether customers feel helped or trapped. When to escalate, which triggers to use, and what context to pass to the human agent.

CodeKrypt 5 min read

Most chatbot complaints are not about wrong answers. They are about being stuck: the bot loops, the customer types "agent" five times, and the only way out is closing the tab. AI chatbot human handoff is the part of the product that decides whether a limited bot feels like a fast first line or a wall. This post covers when to escalate, how to detect it, and what to pass to the person who takes over.

Why does handoff design matter more than answer quality?

Every chatbot has a ceiling. Some questions need account access the bot lacks, a judgement call, or empathy. If the product has no graceful exit, those conversations end in churn rather than a ticket. If it has an exit that is too easy, the bot deflects nothing and the support team carries the full load anyway.

So handoff is a routing problem with two failure modes: escalating too late (frustrated customers) and escalating too early (no automation benefit). The rest of this post is about placing the line deliberately instead of by accident.

What are the right chatbot escalation triggers?

Use explicit, testable triggers rather than hoping the model "knows when to give up". Four categories cover most products:

TriggerExample signalWho detects it
Customer request"talk to a person", "agent", "human"Rule or intent match, before the LLM
Policy / riskRefunds above a threshold, legal, safety, account closureRules on topic or tool call
Bot failureSame question rephrased twice, tool errors, retrieval found nothingCounters in your orchestration code
SentimentRepeated negative language, all caps, complaint wordingClassifier or lightweight model

Two design points matter:

For the high-stakes category, the same thinking applies to agents taking actions; see our guide to human-in-the-loop AI agents for where approval steps belong when the bot acts rather than just answers.

What does a good handoff flow look like?

Handoff flow: customer message, trigger check, bot answer or summarise and transfer to a human agentCustomer messageTrigger checkBot answersSummarise + routeHuman agent

The order matters. The trigger check runs on every turn, ahead of the answer step. When it fires, the system does four things in sequence:

  1. Tell the customer what is happening, in one honest sentence: a person is taking over, and roughly what to expect.
  2. Freeze the bot for that conversation so it does not keep replying over the human.
  3. Build the handoff packet (next section).
  4. Route it to the right queue, not a generic inbox.

What context should the human agent receive?

The single biggest handoff failure is making the customer start over. The agent should open the conversation already knowing:

An LLM is good at the summary, but treat it as a convenience, not the record. Always attach the raw transcript, because a summary can drop a detail that matters. If the transcript contains personal data, apply the same discipline described in LLM PII redaction for whatever you send to a model for summarising.

What if no human is available?

Decide this before launch, because it is the most common dead end. A bot that says "connecting you to an agent" at 3 a.m. and then goes silent is worse than no handoff.

How do you measure whether handoff is working?

Track outcomes, not just volume. A low escalation rate can mean a great bot or a trapped customer base, so pair it with other signals:

MetricWhat it tells you
Escalation rate by triggerWhich rule fires most, and whether it is tuned right
Repeat-contact rate after bot "resolution"Whether the bot closed issues or just ended chats
Customers who ask for a human after a bot answerAnswers that looked fine but did not help
Agent-reported "had to re-ask" casesHandoff packet gaps
Abandonment before and after the escalation promptWhether the exit is visible and works

Review a sample of escalated and non-escalated conversations each week. Turn the misses into test cases; our guide to LLM evals in CI shows how to keep them from regressing. For the wider question of whether you need a bot at all, see AI agents vs chatbots: a buyer's framework.

What should you do next?

  1. List your escalation triggers in the four categories above and write each as a rule you can test.
  2. Make "talk to a human" bypass the model entirely.
  3. Define the handoff packet fields and check your helpdesk can receive them.
  4. Decide the out-of-hours path before launch.
  5. Review ten escalated conversations a week for the first month.

If you are planning a support or sales assistant and want handoff designed in from the start, see our AI chatbot development service.

CodeKrypt avatar

CodeKrypt

Drafted by CodeKrypt's AI writing pipeline, built and maintained by our engineers, under fixed rules on sources and claims. How we write

Frequently asked questions

What is AI chatbot human handoff?
It is the point where a chatbot stops answering and transfers the conversation to a human agent, ideally with the full context so the customer does not have to repeat themselves.
When should a chatbot escalate to a human?
When the customer asks for one, when the topic is high-stakes or outside the bot's scope, when the bot repeatedly fails to resolve the issue, or when sentiment signals frustration. Each trigger should be explicit and testable.
What should the human agent see after a handoff?
A short summary of the issue, the full transcript, what the bot already tried, any customer identifiers it collected, and the reason for escalation, so the agent can start solving instead of re-asking.
What happens if nobody is online to take the handoff?
The bot must say so plainly, offer a callback, email or ticket, capture the issue and contact details, and never leave the customer in a silent queue.

Related reading

Chat on WhatsApp