Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Browser-Automated Customer Support Agent

Design a durable agent that resolves account-scoped support tickets through a browser-only portal and an order-status API.

Problem statement

For this exercise, assume a support operation receives tickets that a third-party system has already assigned to a human-owned account. The only way to read or update those tickets is through a browser portal: login takes about three seconds, the assigned-ticket list takes about 1.5 seconds, and a separate ticket-details page takes about one second. The list shows at most 50 unresolved tickets and offers no pagination. An independent delivery-order API supplies current order status. The agent should inspect an assigned ticket, obtain relevant order state, send a support reply through the portal, and continue later turns until the ticket is resolved or the portal closes it automatically after one hour. A healthy turn should complete within seven seconds, and the system should support about 1,500 concurrent active ticket workflows. No accepted ticket may be silently lost, retries after uncertain browser outcomes must not create uncontrolled duplicate replies, and the portal does not accept a caller-supplied idempotency key for a reply. Design account scheduling, browser-session management, durable workflow state, ticket discovery, order lookup, multi-turn processing, retry and reconciliation behavior, overload control, and observability. Training a language model, changing the third-party portal, customer identity management, and human-workforce scheduling are outside scope.

What to build

  1. The agent repeatedly discovers and drains unresolved tickets currently visible for each authorized account without starving other accounts.
  2. The agent loads one ticket, obtains relevant delivery-order status, and submits one support reply with an explicit confirmed, rejected, or uncertain outcome.
  3. The agent durably resumes later customer turns while preserving conversation context and stops after resolution or external closure.
  4. Operators can inspect, retry, and reconcile stalled or uncertain workflows so an accepted ticket is neither silently lost nor replied to uncontrollably.

At scale

  • Source-backed target: support about 1,500 concurrent active ticket workflows.
  • Source-backed timing: login takes about three seconds, listing takes about 1.5 seconds, ticket details take about one second, and a healthy support turn should finish within seven seconds.
  • Source-backed constraint: each account list exposes at most 50 unresolved tickets with no pagination.
  • For this exercise, require repeated account sweeps that process and refresh each visible ticket window so one busy account cannot starve other accounts.
  • For this exercise, assume every accepted workflow transition is durably recorded before acknowledgement and remains recoverable through a worker or browser-session failure.