Howwise RSS
AI & Automation8 min read

Chatbot Human Handoff: Triggers, Payload and Off-Hours Design

Short answer

A reliable chatbot human handoff combines rule-based triggers (user request, two failed turns, low retrieval score, high-stakes topics), a tool call that flips conversation status and silences the bot, and a context payload so users never repeat themselves.

Key takeaways
  • Rank triggers by reliability: an explicit user request and high-stakes topic rules always fire, while model confidence is the weakest signal.
  • Never trust an LLM's self-reported confidence; use retrieval scores, a grounded-answer check, classifier output or an explicit escalate tool.
  • Implement handoff as a state change (status, team assignment, bot muted) so the bot and the agent never reply at the same time.
  • Pass the transcript, a 2-4 line summary, intent, account and order IDs, what the bot tried, sentiment and the escalation reason, with PII redacted.
  • Check business hours and agent availability before promising a human, and always end with a ticket or callback if nobody accepts the chat.

When should a chatbot transfer to a human?

A good chatbot human handoff does not rely on one signal. It layers several triggers, ordered by how trustworthy they are, and any single one is enough to escalate. The cost of a false escalation is a few minutes of agent time. The cost of a missed one is a lost customer.

The table ranks the common triggers. Thresholds are starting points and must be calibrated on your own transcripts, because score distributions differ between embedding models, retrievers and intent classifiers.

TriggerReliabilityTypical ruleNotes
Explicit requestHighestMatch 'agent', 'human', 'representative', 'person', 'operator', 'call me' (plus other languages)Fire at any turn, no confirmation question. Keep a button as well as keywords.
High-stakes topicHighestRule or classifier on billing disputes, chargebacks, cancellations, legal threats, safety, account takeoverRoute by rule regardless of confidence. The bot may collect details first, then hand off.
Repeated fallbackHigh2 consecutive no-match or 'I don't understand' turnsCount consecutive failures, reset on a successful answer. Escalate instead of rephrasing.
Low retrieval or intent confidenceMediumTop retrieval similarity or classifier probability below about 0.5 to 0.7Tune on labelled transcripts. Combine with a repeat count to avoid over-escalating.
Negative sentimentMediumSentiment classifier below a cutoff on 2 turns, or profanity, ALL CAPS, repeated '!!'Noisy alone, so use it to lower other thresholds rather than as the sole trigger.
Ungrounded LLM answerMediumAnswer-support check fails (claims not found in retrieved passages)Better than asking the model how sure it is.
Warning: LLM self-reported confidence ('I am 90% sure') is poorly calibrated and should never gate a handoff. Use retrieval scores, a separate grounding or entailment check, a classifier, or an explicit escalate function the model can call.

How do I implement handoff as a tool call?

For LLM bots, the cleanest design is an escalation tool the model may call, backed by deterministic rules that call the same code path. The tool does not chat. It changes state, and your orchestration layer then stops the bot from replying.

Describe the tool narrowly, so the model calls it for the right reasons and fills the fields you need downstream.

{
  "name": "escalate_to_human",
  "description": "Transfer the conversation to a human agent. Call when the user asks for a person, the topic is billing dispute, cancellation, legal or safety, or you cannot resolve the issue after two attempts. Do not call for simple questions you can answer from the knowledge base.",
  "input_schema": {
    "type": "object",
    "properties": {
      "reason": {"type": "string", "enum": ["user_request", "repeated_fallback", "low_confidence", "negative_sentiment", "high_stakes_topic", "other"]},
      "intent": {"type": "string"},
      "summary": {"type": "string", "description": "2-4 lines: what the user wants, what was tried, what is unresolved."},
      "attempted": {"type": "array", "items": {"type": "string"}},
      "urgency": {"type": "string", "enum": ["low", "normal", "high"]}
    },
    "required": ["reason", "summary"]
  }
}
Tip: Add the ID fields (account, order, conversation) in your own code, not through the model. The model should never be trusted to copy identifiers or decide who the user is.

What context should the bot pass to the agent?

The goal is that the user never repeats themselves. Agents read the top of the conversation first, so put the short summary there and attach the full transcript beneath it.

A practical payload looks like this. Generate the summary with a separate LLM call over the transcript, with instructions to state the goal, what was tried and what remains open.

{
  "conversation_id": "c_84213",
  "user": {"account_id": "acct_5521", "email": "[verified email]", "language": "en", "plan": "pro"},
  "escalation": {
    "reason": "repeated_fallback",
    "intent": "refund_request",
    "urgency": "high",
    "sentiment": "negative",
    "triggered_at": "2026-12-04T14:02:11Z"
  },
  "summary": "Customer was double charged for order 10482 on Dec 2. Bot confirmed the order and shared the refund policy. Customer wants the duplicate charge reversed, not a credit.",
  "references": {"order_ids": ["10482"], "ticket_ids": []},
  "bot_attempted": ["order lookup", "refund policy article"],
  "transcript": [{"role": "user", "text": "I was charged twice", "ts": "..."}],
  "routing": {"team": "billing", "skill": "refunds", "sla_minutes": 15}
}
Warning: Redact card numbers, government IDs, passwords and other sensitive data from the transcript and summary before sending. Tell the user they are being transferred and what is shared, and follow your consent and retention rules for stored chats.

How do I escalate a chatbot to a live agent in Intercom, Zendesk and others?

Every help desk follows the same pattern: put the context somewhere the agent sees it, change status or assignment, then silence the bot. Field names differ, so map the payload above onto each platform's objects.

Intercom: add the summary as an internal note on the conversation, assign it to a team or inbox, and set it to open so the bot stops handling it. Zendesk: create a ticket (or update the messaging conversation's ticket) with the summary as a private comment, a group assignment and tags such as bot_escalation. Freshdesk and Front work similarly: create or update a conversation or ticket, attach the transcript, set the team and priority. For Slack, post the summary and a link to a channel or thread as a notification, but keep the actual conversation in the help desk so it has an owner and SLA.

Framework mechanisms: Dialogflow CX can trigger a webhook fulfillment on a fallback or intent route and then use a live agent handoff response with metadata for the integration. Botpress supports a handoff node or an HTTP call to your help desk, then ends the bot flow. Rasa typically uses a custom action that calls the help desk API and sets a slot such as handoff_active, with a rule that stops the bot while it is true.

  1. Detect a trigger (rule, threshold or tool call) and lock the conversation to prevent double escalation.
  2. Check business hours and agent availability (next section).
  3. Generate the summary and redact PII, then build the payload.
  4. Create or update the ticket or conversation with a private note, team and priority.
  5. Set the conversation status (for example bot to pending or open) and mark the bot muted.
  6. Tell the user a human is joining, with the honest expected wait.

What should a chatbot do outside business hours?

Only promise a live agent after checking two things: the schedule (hours and holidays, in the customer's or team's time zone) and real availability (agents online with capacity). Being inside hours does not mean anyone is free.

If either check fails, do not simulate a handoff and go quiet. Offer an alternative that still gets the problem solved.

HoursAgents freeBot should
OpenYesHand off, state estimated wait, mute bot.
OpenNo (queue full)Give the real wait, offer a ticket or callback, keep helping meanwhile.
Closedn/aSay when the team is back, collect email and issue details, create a ticket, keep answering what it can.
Open, no one accepts in N minutesTimeoutConvert to a ticket, email the transcript, tell the user a reply is coming by email.
Tip: A fixed timeout (commonly 2 to 5 minutes for chat, tune to your SLA) prevents the worst failure: a user told 'an agent will be with you shortly' who then waits forever.

How do I stop bot loops and trapped users?

Most handoff complaints come from loops: the bot repeats the same fallback, asks again for details already given, or hides the human option to protect containment. Loop prevention is a short checklist and it should be enforced in code, not in the prompt.

After handoff, state handling matters just as much. While a human is assigned, the bot must stay silent, otherwise both reply at once. Resume the bot only on an explicit resolution or hand-back event, and ignore repeat escalation triggers while the handoff flag is set.

  1. Allow handoff at any turn, including mid-flow and mid-form.
  2. Always show a visible 'talk to a human' option, not only a keyword.
  3. Cap retries: after 2 consecutive failures, escalate rather than rephrase.
  4. Never re-ask for data already in the session or the CRM.
  5. Use an idempotency key (conversation ID plus state) so one conversation creates one handoff.
  6. Handle the no-acceptance timeout with a ticket or email fallback.
  7. Let agents hand back to the bot and notify them (push, Slack or email) when a chat enters their queue so it is not missed.

How do I measure and test a chatbot handoff?

Track handoff rate, containment rate, time to first human reply, and post-handoff CSAT. A rising containment rate with falling CSAT usually means users are being trapped, not helped. Review a sample of transcripts around each escalation, plus conversations that ended without one, and use them to retune thresholds.

On the agent side, verify skill and language queue routing, SLA timers, the summary showing at the top of the conversation, and the hand-back control. Test these scenarios before launch:

  1. Low confidence: ask an off-topic or ambiguous question and confirm escalation after the threshold or retry cap.
  2. Angry user: send repeated frustrated messages and confirm sentiment lowers the bar for handoff.
  3. Explicit request: type 'agent' mid-flow and in other supported languages.
  4. High-stakes topic: raise a cancellation or chargeback and confirm rule routing even when confidence is high.
  5. Off-hours: simulate a closed schedule and confirm the ticket or callback path collects email and details.
  6. No agent available: leave the chat unaccepted and confirm the timeout creates a ticket and emails the user.
  7. Double trigger: fire two triggers in one turn and confirm only one handoff is created and the bot stays silent.

Common questions

Should the bot ask 'are you sure?' before transferring?

No, not when the user explicitly asks for a human. A confirmation step adds friction and feels like a gate. For automatic triggers such as low confidence, a single sentence stating that you are connecting them is enough.

How many failed answers before escalating?

Two consecutive no-match or failed-answer turns is a common starting rule. Count only consecutive failures and reset on a success, then adjust from transcript review.

Can the bot keep helping while the user waits?

Yes, when no human has taken the conversation. The bot can answer simple questions or collect details for the agent, but it must stop the moment an agent is assigned.

What if the user wants to go back to the bot?

Give the agent a hand-back action that clears the handoff flag and returns the conversation to the bot state. Without it, resolved chats stay stuck in a human-only status.

Do I need to tell users they are speaking to a bot?

Yes. Clear disclosure, a statement when a transfer happens, and a note about what data is passed to the agent build trust and are required in some jurisdictions.

Related topics:chatbotlive chatcustomer supportautomationllm