KatInterview

Design an Agentic Customer Support Automation System

Machine LearningModel answer
HardModel answerMachine Learningagentic-aibrowser-automationllm

Last updated

Design an end-to-end AI system that scrapes tickets from a browser-only UI, enriches them with user data from an API, and generates personalized support replies.

Background

Your company runs a customer support operation at scale. Two internal systems are already in place:

  1. Ticket dashboard: A web application that displays all incoming support tickets. It has no programmatic API — the only way to read ticket data is through its browser UI.
  2. Customer data service: A REST API that accepts a customer identifier and returns profile information such as subscription plan, account status, recent activity, and preferred language.

Your task is to design an AI-powered agent that monitors the ticket dashboard, reads each ticket, pulls the relevant customer profile, and produces a personalized response — either sending it automatically or routing it to a human agent for approval.

What to cover

Walk through the full system from end to end:

  • Ticket discovery: How does the system find out when a new or updated ticket exists, given there is no webhook or feed?
  • Content extraction: How does the agent read ticket data from a browser-rendered page reliably?
  • Customer enrichment: How is the customer profile fetched, cached, and handled when the service is unavailable?
  • Response generation: What is the pipeline — classification, retrieval, drafting, verification?
  • Routing logic: When should a reply be sent automatically versus held for human review?
  • Reliability and failure handling: Retries, idempotency, state management.
  • Security and privacy: How is sensitive customer data handled throughout?
  • Observability: What do you measure and how do you catch regressions?

What is expected

This is a senior-level ML system design question. A strong answer scopes requirements, makes explicit assumptions about volume, reasons about costs and latency, and discusses trade-offs rather than just listing components. Concrete numbers and justifications for design choices matter more than a complete component inventory.

Hints

Hint 1

Start by estimating volume and deriving concurrency requirements for browser workers — that number constrains most of the architecture downstream.

Hint 2

The browser-only ticket system is the most brittle component. Think about what happens when the UI updates and your selectors break: you need a fallback extraction path and a way to detect drift.

Hint 3

Automatic reply is a dial, not a switch. Think about what properties of a ticket and its draft must all be true before you skip human review, and how you'd expand that set safely over time.