Customer-support agent

In a Java service one request is one call. An agent turns one conversation into a loop of model calls, each carrying the growing history, so cost and latency are multiplied by the number of steps — and the tool calls have side effects a retry can repeat.

45 min round 5 computed numbers 4-part eval plan 8-point rubric
⚠️ Planning numbers, not measurements. Hardware and model facts are dated on the numbers sheet; traffic, prices and efficiency are labelled assumptions. Replace them with your own measurements (the vLLM load-test exercise) before quoting them.

The prompt

Design an agent that resolves customer-support chats using tools (order lookup, refunds, knowledge base).

Attempt it first: the 45-minute round

Set the timer, answer out loud or on paper, then score yourself against the rubric before you read the model answer below.

  1. Framing (5 min) — Ask questions, fix the scale and the latency/quality/cost targets, state assumptions with numbers.
  2. Architecture (10 min) — Draw the boxes end to end: data in, the model call, storage, serving, feedback.
  3. Deep dive (15 min) — Pick the hardest part and do the arithmetic: tokens/s, KV memory, QPS → replicas, cost per 1,000 requests.
  4. Trade-offs (10 min) — Name what you would trade (batch vs latency, quality vs cost, build vs buy) and what breaks.
  5. Wrap-up (5 min) — Evaluation plan, monitoring, failure modes, and what you would do next.
45:00
Not started

Self-grade

Tick what you did. 0 of 8.

The model answer, step by step

Five steps, one tap each. The readout gives the step's answer and lists the numbers it uses; the same numbers are highlighted in the table underneath.

Customer-support agent, one tap per step

👉 Predict first, then tap. Every number below is computed from the assumptions in the table.

1. Framing

5 min

2. Architecture

10 min

3. Deep dive

15 min

4. Trade-offs

10 min

5. Wrap-up

5 min

Tap a step above.
QuantityHow it is computedValue
Conversations per dayassumption40,000
Share in the peak hourassumption12%
Model calls per conversation (tool loop)assumption4
Average input tokens per callassumption3,000
Average output tokens per callassumption250
Assumed price, $ per million input tokensassumption$3.00
Assumed price, $ per million output tokensassumption$15.00
Conversation length in secondsassumption360
Share resolved without a humanassumption60%
Model cost per 1,000 conversationscalls × (in × pIn + out × pOut) ÷ 1e6 × 1000$51.00
Model cost per 1,000 RESOLVED conversationscost per 1,000 ÷ containment$85.00
Peak conversation arrivals per secondconv × peak ÷ 36001.33
Concurrent live conversations at peak (Little's law)arrival rate × duration480
Input tokens per dayconv × calls × in480,000,000
Takeaway. The headline figure — concurrent live conversations at peak (little's law) — is 480 (arrival rate × duration). Say the assumption, show the formula, then give the number.

The evaluation plan

Go deeper on this site

Check yourself