Design an AI System That Answers Customer Support Tickets (AI System Design Question)
The interviewer asksDesign an AI system that drafts or resolves customer support tickets for an online retailer handling 20,000 tickets a day.
Forward Deployed EngineerAI Platform PMAI Product Engineer (secondary)CoreSystem design roundRepresentative30 min
On this page
The 30-second version
- Requirements: ticket mix, which actions are allowed (refunds?), cost of a wrong answer, response-time goals.
- Skeleton: intake → classify and route → context (order data, policies) → draft or act → checks → send or hand off.
- Start with drafts for agents; auto-resolve only categories that pass their eval gate.
- Actions (refunds, address changes) through tools with limits; above the limit, a person approves.
- Evals per category from past resolved tickets; monitoring and a feedback loop from agents' edits.
What it's really testing
- Requirements and risk before architecture
- The whole skeleton, then depth where it matters
- Staged autonomy based on evidence
- Failure handling and cost
How to structure your answer
- Requirements.
- Skeleton end to end.
- Depth: routing, context, actions.
- Autonomy plan and evals.
- Failure, latency and cost.
The interview, played out
- InterviewerDesign an AI system that drafts or resolves customer support tickets for an online retailer handling 20,000 tickets a day.
- CandidateWhat's the ticket mix, and what is the system allowed to do: answer only, or also take actions like refunds?
- Revealed when askedAbout half are order status and returns. It may issue refunds up to $50. Wrong refunds are the main worry.
- Strong moveAsks about actions and the cost of mistakes before designing.
- CandidateThe skeleton: tickets come in; a classifier tags category and urgency; we assemble context (the customer's orders from the order system, relevant policy passages via retrieval); the model drafts a reply or proposes an action; checks run; then it's sent, queued for an agent, or escalated.
- CandidateI'd start with drafts for human agents on every category. A category moves to automatic resolution only when its eval passes the bar, say 95% correct on 500 past tickets with no policy violations. Order status will probably get there first; complaints may never.
- InterviewerHow do refunds work?
- CandidateThrough a refund tool, not free text. The tool enforces the $50 limit and checks the order is eligible; anything over the limit goes to a person with the AI's recommendation. Every action is logged.
- InterviewerWhat about failures?
- CandidateIf the order system is down, the AI says it'll follow up and queues the ticket; it never guesses an order status. Low-confidence classifications go to a person. And agents' edits to drafts are captured as signals for what to improve.
- InterviewerCost?
- CandidateHmm, I'd need to estimate.
- Missed signalCost and latency should be part of the design from the start.
- Candidate20,000 tickets, roughly 3,000 input tokens of context and 300 output each: about 60 million input and 6 million output tokens a day. At typical API prices that's tens to low hundreds of dollars a day depending on the model, small next to agent time. A smaller model for classification keeps it lower.
The strong answer, distilled
- Requirements: half order status and returns; refunds up to $50; wrong refunds are the key risk.
- Skeleton: intake → classify and route → context (order data, retrieved policies) → draft or propose action → checks → send, queue or escalate.
- Staged autonomy: drafts everywhere first; auto-resolve a category only after its eval passes (e.g. 95% correct on 500 past tickets, zero policy violations).
- Actions: refunds through a tool that enforces limits and eligibility; above the limit, human approval; everything logged.
- Failure: never guess when systems are down; low confidence → person; agents' edits feed improvement.
- Cost: ~60M input and 6M output tokens/day; small relative to agent time; small model for classification.
This is one strong answer, not the only one.
How it's scored
| Dimension | Weak (2) | Passable (3) | Strong (5) |
|---|---|---|---|
| Requirements | None | Volume | Mix, permitted actions, cost of mistakes |
| Design | A chatbot | Main flow | Full skeleton with depth on routing, context, actions |
| Autonomy | Full automation | Human review | Per-category gates based on evals |
| Failure and cost | Ignored | Some | Fallbacks, hand-off, cost estimate |
Round scorecard: FDE: AI system design round, filled in for the mock candidate
| Dimension | Weak | Passable | Strong | The mock candidate |
|---|---|---|---|---|
| Requirements | Assumes them. | Asks about scale. | Users, data, scale, latency, cost and risk, before drawing anything. | Strong. Asked about ticket types, actions allowed and the cost of mistakes. |
| Architecture | One component. | A reasonable flow. | Full skeleton, then depth on the parts this system depends on. | Strong. Full skeleton, then depth on routing, retrieval and actions. |
| Quality and evals | None. | Mentions testing. | Evals per component and end to end, and how they're built. | Strong. Per-category evals from past tickets, with gates before auto-resolving. |
| Failure and cost | Ignored. | Mentions one. | Fallbacks, guardrails, latency and cost levers, tied to requirements. | Passable. Good hand-off design; cost estimate came only when asked. |
How the answer changes by role
| Role | What to emphasise |
|---|---|
| Forward Deployed EngineerForward Deployed Engineer. An engineer embedded with customers who scopes, builds and ships AI solutions into production. Read the full explanation | Integrating the retailer's systems and the staged rollout |
| AI Platform PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation | Which pieces a platform should provide: tools, evals, routing |
| AI Product Engineer | Implementation and the feedback loop from agents' edits |
Common mistakes
- Letting the model issue refunds through free text
- Auto-resolving everything from day one
- No plan when the order system is unavailable
- Ignoring cost until the end
More follow-ups to practise
- "Customers start gaming the refund limit." Hint: account-level signals and monitoring.
- "Peak season triples volume." Hint: capacity, queueing and what to automate first.
- "How would you report the system's value to leadership?" Hint: resolution time, cost per ticket, satisfaction.
Go deeper
- Module: AI system design
- Framework: AI System Design Framework
- Framework: Opening Any Interview Answer
- Lesson: The shape of an AI system
- Lesson: Designing for failure
- Lesson: Designing for latency and cost
- Also tests: RAG and retrieval
- Also tests: Tools and agents
- Also tests: Eval plans and release gates
Sources
Representative question: written to match AI system design rounds, not a specific reported interview. Token estimates are illustrative.