Design Human Handoff From an AI Support Agent to Helpdesk Queues

Last updated: November 29, 2026

Quick Overview

Design the system that decides when an AI support agent should escalate a live conversation to a human, routes it to the right queue in the customer's helpdesk (such as Zendesk or Salesforce), and keeps the user's experience continuous while they wait.

Decagon
System Design
Software Engineer
Decagon
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the system that decides when an AI support agent should escalate a live conversation to a human, routes it to the right queue in the customer's helpdesk (such as Zendesk or Salesforce), and keeps the user's experience continuous while they wait.

Escalation is where an AI agent most visibly succeeds or fails for a Decagon customer: escalate too often and deflection drops, too late and CSAT suffers. The interviewer checks that you combine policy and model signals, integrate reliably with third-party helpdesks you do not control, and preserve context so the human does not start from zero.

What the Interviewer Expects
  • Separates the escalation decision from routing and from the helpdesk integration
  • Uses deterministic rules for mandatory escalations plus model signals for the rest
  • Makes ticket creation idempotent and resilient to vendor outages
  • Passes a structured summary and transcript to the human
  • Handles business hours, queue capacity and user wait messaging
Key Topics to Cover
escalation policy
routing
idempotency
third-party integrations
outbox pattern
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you measure whether escalations are happening at the right time?
  • The helpdesk API is down for 20 minutes. What does the user see?
  • How do you route when the customer has 40 queues with overlapping skills?
  • How would you let the human hand the conversation back to the AI?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: decide to escalate (user asks for a human, policy triggers such as legal threats or fraud, low confidence or repeated failure, negative sentiment), choose a queue and priority, create or u...

High-Level Design

Conversation service -> escalation evaluator (runs each turn) -> routing service -> handoff orchestrator -> helpdesk connector (Zendesk, Salesforce, Intercom adapters). An event bus carries `handoff_r...


Submit Your Answer
Markdown supported

Related Questions