Lesson 12.1: Case study: a support triage agent with sub-agents
Follow one design from problem to launch: a support triage agent for a lender, with a router, sub-agents, a gateway, a verifier and the economics.
By the end of this lesson you will have seen a complete agent design built step by step from a business problem, with each decision traced back to a lesson in this track: whether to build an agent at all, how to split it, what each part may do, how it is checked, how it is released and whether it pays. You will work out that a desk handling 8,000 tickets a day at ₹85 each costs ₹6.8 lakh a day, that an agent automating 45 per cent of tickets at a 92 per cent success rate brings that to about ₹4.27 lakh, and that a build cost of ₹1.5 crore pays back in about 2.6 months once running costs are counted. You should have read Modules 5 to 10, especially Lessons 5.3, 6.3, 6.4, 7.1, 8.4 and 10.2. No code is needed. The mathematics is weighted sums and division.
The company in this case is invented, and so are its numbers. They are chosen to be plausible and to show how the reasoning goes. Where a real project would measure a figure, the case says so. Treat it as a worked example to compare with your own design, not as a result to quote.
The situation
A mid-sized lender, which we will call Kestrel Finance, gives personal loans and a credit line to retail customers across India. Its support desk receives about 8,000 tickets a day by chat and email. A ticket is a customer's request or complaint. About 600 people, in two shifts and three cities, handle them. The desk's fully loaded cost is about ₹85 a ticket, which is ₹6.8 lakh a day, or about ₹1.77 crore in a 26-day month.
The head of support has three problems. Waiting times at the month's peak, when instalments fall due, are long. Quality is uneven, since different agents give different answers to the same question. And the cost is rising with volume. She asks whether an AI agent can help. This is where a good project begins: with a question about a business problem, not with a wish to use agents.
Step one: understand the work
Before designing anything, the team spent two weeks reading real tickets and sitting with support staff. They sampled 1,000 tickets and sorted them.
Kind of ticket · Share · What the work involvesBalance and statement queries · 28% · Look up the account, read out figures, send a statement
Payment problems · 22% · Find a failed or duplicate payment, explain, sometimes raise a refund
Instalment date or extension requests · 14% · Check eligibility under policy, set or refuse a new date
Documents and KYC · 12% · Check what is missing, explain how to upload
Charges and interest disputes · 10% · Check the charge, explain, sometimes waive within limits
Complaints and legal or regulatory matters · 6% · Careful handling, often by senior staff
Other · 8% · Varied
Three findings shaped everything that followed.
The work is mostly lookup and policy. Most tickets need a customer's data from two or three systems and a rule from a policy document. This is a good fit for an agent with tools.
Some tickets are risky. A wrong answer on a waiver, or a mishandled complaint, can cost money or bring a regulator's attention. These should not be automated at first.
Variety is long-tailed. The first five kinds cover 86 per cent of tickets. The rest are varied. This is the shape discussed in Lesson 6.4, where a workflow handles the common cases and something else must handle the tail.
Step two: decide whether, and how much, to automate
The team applied the questions of Lesson 6.4.
Can the steps be written down? For the first four kinds, yes. They follow checklists.
How varied are cases? Within each kind, moderately. A balance query is simple. A payment problem has several causes.
How bad is a mistake? Low for balance queries, moderate for payments and extensions, high for waivers and complaints.
How much do cost and delay matter? A great deal, at this volume.
How will it be tested? There are years of past tickets with agents' replies and outcomes, which makes testing possible.
The conclusion was a hybrid: a workflow for the common, well-understood kinds, an agent step for the payment problems whose causes vary, and people for the risky and the unusual. They did not design a free-roaming agent that could do anything. The first target was to handle the first four kinds, which is 76 per cent of tickets, with an eventual ceiling of automating about 45 per cent of all tickets end to end and helping with more.
Step three: design the architecture
Why sub-agents here
The team considered one agent with all the tools and all the policies. They rejected it, for reasons from Lesson 5.1.
Context. Policies for payments, extensions and KYC are long. An agent carrying all of them would be slow and would mix them up.
Roles and permissions. The payment specialist needs to read payment records and raise refunds up to a limit. The KYC specialist needs to read documents but never payments. Separate agents allow separate permissions.
Independent check. Replies to customers should be reviewed by something other than the agent that wrote them.
They also kept the number of agents small, aware of the costs of hand-offs and failure points.
The design
Ticket in
│
▼
Router (small model + rules) ──► unsure or risky ──► human queue
│
├──► Account agent (balances, statements) read-only
├──► Payments agent (failed/duplicate payments, refunds ≤ ₹2,000)
├──► Schedule agent (instalment dates, extensions within policy)
└──► Documents agent (KYC and upload guidance)
│
▼
Draft reply ──► Verifier (different prompt and model) ──► send / revise / human
Each part has a role.
The router uses rules for the obvious cases, such as a ticket from the "statement" button, and a small, fast model for the rest. It outputs a category and a confidence. Anything marked a complaint, a legal matter, a regulator mention or a vulnerable customer goes straight to a person. Anything with low confidence goes to a person. This follows the confidence fallback of Lesson 5.3.
The specialists are four agents, each with its own instructions, its own short list of tools and its own permissions. They receive a hand-off record, as in Lesson 5.3, with the ticket, the customer ID, the category and what has already been established. They return a structured result: proposed action, facts used with sources and a draft reply.
The verifier is a separate call with a different prompt, and a different model from the one the specialist uses. It receives the ticket, the policy extract, the facts and the draft, but not the specialist's reasoning. Its job, as in Lesson 10.3, is to find faults: unsupported statements, promises outside policy, the wrong customer's data, a missing required item or an insensitive tone.
The gateway and permissions
Every tool call goes through a gateway, as in Lesson 10.2. The policy rules include:
Account agent: read-only access to balances and statements for the customer in the ticket only, enforced by the customer ID in the call, not by the model.
Payments agent: may read payment records, may propose a refund up to ₹2,000 per ticket and ₹20,000 per day in total. Above the per-ticket limit, a refund needs a supervisor's approval. Duplicate-refund checks use an idempotency key based on the payment ID.
Schedule agent: may change a due date within the extension rules, once per month per customer, and never for an account in a defined arrears state.
Documents agent: no access to payment or loan data, only to the document list for the customer.
All agents: no outbound email except through the reply tool, which sends only to the customer's registered address.
A rate limit and a blast-radius limit: at most 40 changes to customer records per hour per agent.
Credentials are held by the gateway. The model never sees them.
Context and memory
Each specialist receives a short context: instructions, its policy extract of 1,200 to 2,000 tokens, the customer's relevant records and the ticket. A context map points to deeper policy files, which are fetched only if needed. There is no long-term memory of customers across tickets, in the first release, because of privacy and because the benefit was small. Conversation history within a ticket is kept in the ledger.
Step four: put humans in the right places
Following Lesson 6.3, the team sorted actions into tiers.
Tier 1, free: reading data, drafting replies for review, classifying.
Tier 2, reviewed after: sending replies to balance and statement queries, setting a standard extension within policy. A sample of 10 per cent is reviewed the next day, and anything the customer disputes goes to a person.
Tier 3, approved before: refunds above ₹2,000, any waiver, any change to an account in arrears and any reply the verifier flags.
During the first release, every reply was reviewed before sending, so that the agent started at the "suggest" stage of the autonomy ladder in Lesson 8.4. The team measured how often reviewers edited drafts. A reviewer sees the six-part approval request: the proposed action, the reason, the evidence with links, the risk, the alternatives and the choice to approve, edit or reject.
Step five: evaluate before launch
The team built the evaluation suite described in Lesson 7.1.
A task set of 1,200 real tickets, stratified by kind, taken from the last six months, with the agent's reply and the outcome. Of these, 200 were held back and not used for tuning. It included 120 trap cases: a customer asking for something outside policy, an ambiguous request, a ticket with a missing record, a ticket with an instruction hidden in the customer's message.
Outcome checks. For actions, the state of the system: was the right refund proposed, was the right date set. For replies, a rubric of six yes-or-no questions, graded by a model that had been checked against two senior agents on 150 replies and agreed 91 per cent of the time.
Trajectory checks. The right lookups happened, no forbidden tool was called, steps stayed under 12 and cost under ₹10.
Repeat runs. Each ticket ran three times, to measure consistency.
The first results were sobering. On the held-out set, the end-to-end success rate, meaning the right action and a reply passing the rubric, was 81 per cent for the four target kinds. Looking at failures, the team found the biggest cause was the payments agent misreading statements with several similar transactions. They improved the tool's result format, so that it returned a matched pair of debit and credit with dates, and added two examples to the instructions. Success rose to 90 per cent. A separate fix, adding the verifier, caught a share of the remaining errors, and the final figure, after the verifier and rework, was 92 per cent, with 4 per cent of drafts flagged by the verifier and sent to a person. The team measured, as Lesson 9.4 advised, with paired comparisons on the same tickets, since 200 held-out tickets cannot show small differences.
Step six: release in stages
The rollout followed the autonomy ladder.
Weeks 1 to 3: shadow. The agent drafted replies for real tickets and the drafts were compared with what staff sent. Nothing went to customers.
Weeks 4 to 8: suggest. Staff saw the agent's draft and either sent it, edited it or wrote their own. The team tracked edit rates by category.
Weeks 9 to 12: act with approval for payments and schedule changes, act and review for balance, statement and documents queries. A 5 per cent canary of balance and statement tickets went first, then 25 per cent, then all.
After month 3: autonomous within limits for the balance, statement and documents kinds, with a 10 per cent daily sample and alerts. Payments and schedule changes stayed at approval for amounts above the limits, and below them were acted on and reviewed after.
The team kept a flag for each specialist, so that any of them could be switched off in seconds, and tested the switch.
The economics
Now to the question the head of support asked: does it pay? Here is the arithmetic the team used. These figures are assumptions, with the measured ones marked.
Tickets a day: 8,000. Human cost per ticket: ₹85.
Share of tickets the agent handles end to end: 45 per cent, 3,600 tickets.
Agent cost per ticket handled, covering model calls, tools, the verifier and platform costs: ₹6.
End-to-end success rate: 92 per cent (measured on the held-out set).
Tickets the agent fails on go to a person, at the human cost plus ₹25 of extra handling for the context and the apology.
The cost per day:
Today: 8,000 × ₹85 = ₹6,80,000.
With the agent:
Automated tickets: 3,600 × (₹6 + 0.08 × (₹85 + ₹25)) = 3,600 × (₹6 + ₹8.80) = 3,600 × ₹14.80 = ₹53,280.
Tickets left to people: 4,400 × ₹85 = ₹3,74,000.
Total: ₹4,27,280.
Saving: ₹6,80,000 − ₹4,27,280 = ₹2,52,720 a day, about 37 per cent.
Predict first: a desk handles 8,000 tickets a day at ₹85 each. An agent automates 45 per cent of them at ₹6 per ticket with a 92 per cent success rate, and failures cost ₹110 to handle by a person. Roughly what is the daily saving? Estimate before reading on.
The saving is about ₹2.5 lakh a day, a little over a third of the cost.
The ticket flow behind these figures is worth seeing. Of 3,600 automated tickets, 92 per cent, 3,312, are resolved correctly. 288 fail and are caught, and go to a person. The 4,400 tickets not automated go to people directly. So people still handle 4,688 tickets a day, 59 per cent of the total, against 100 per cent before. Their work changes: it is now richer in complaints, disputes and unusual cases, and the team expects the same staff to handle more of what needs judgment. How the organisation uses the capacity it frees, whether through shorter queues, better service or fewer hires over time, is a business decision the numbers do not make.
Payback
The saving must be set against what it cost to build and to run. Suppose the build took a team of six for six months, with infrastructure, evaluation and security review, a total of ₹1.5 crore. Running costs beyond the per-ticket figure, which include the platform, reviewers for the sampled checks, a part-time owner and the continual upkeep of the harness, are ₹8 lakh a month. The monthly saving is ₹2,52,720 × 26 = ₹65.7 lakh. Net of running costs, ₹57.7 lakh. Payback is ₹150 lakh ÷ ₹57.7 lakh = 2.6 months.
That is a fast payback, and it is sensitive to every assumption. If the success rate were 85 per cent, the saving per automated ticket would fall, and a share of automated tickets would need more care. If the automated share stayed at 25 per cent in the first year, the saving would be about 55 per cent lower. The team treated the figures as a range and checked each against the measured data every month.
What went wrong, and what was learned
No case is complete without the problems.
A router mistake. In the second week of the canary, the router sent a customer's message about a deceased relative's account to the documents agent, which replied with a standard upload list. The router's rules for sensitive situations missed the wording. The team added a list of sensitive-situation patterns and a rule that sends any ticket containing them to a person, and reviewed 400 past tickets for similar wording.
Drift in long conversations. For tickets with 15 or more messages, the payments agent began to forget constraints stated early. The team added a restated goal and the ticket's constraints at every five messages, as Lesson 7.4 suggested.
A cost spike. After a prompt change, the cost per ticket rose from ₹6 to ₹9. The traces showed a policy extract that had been doubled in size by a careless edit. The team added a size limit to the extracts and an alert on cost per ticket.
A verifier blind spot. The verifier, on the same model family as one specialist, missed the same kind of date error. The team switched its model and added a code check that compared any date in a reply with the date in the record.
A model update. The provider released a new version of the model the router used, and router accuracy dropped two points. The team had pinned the version, so nothing changed until they tested the new one. They tested, adjusted two rules and moved over three weeks later.
Lessons from the case
1. Start with the work, not the technology. Two weeks of reading tickets shaped every later choice.
2. A hybrid beat a free agent. Rules, a router, narrow specialists and people each did what they were good at.
3. Split for reasons. Sub-agents were chosen for context, permissions and independent checking, and kept few.
4. Controls in code. Limits, permissions and approvals lived in the gateway, not the prompts.
5. Measure before and during. The held-out set and paired comparisons showed what helped.
6. Release in stages. Shadow, suggest, approve, review and autonomy, with flags and tests of the off switch.
7. Count failures in the economics. A 92 per cent success rate, not 100, was the figure that mattered.
8. Keep looking after launch. Every problem above was found through traces, sampling and alerts.
Common mistakes
Starting from "use an agent". Start from the work and the problem.
One agent with every tool. Split by context, permission and independent check.
Automating the risky tickets first. Begin with the safe, common kinds.
Assuming the first evaluation is the truth. Hold some tickets back, repeat runs and look at categories.
Counting only the agent's cost. Include failures, handling and running costs.
Going straight to full autonomy. Earn it in stages.
Not testing the off switch. Try it before you need it.
Forgetting to re-measure. Models, policies and customers change.
Key takeaways
A good agent project begins with a business problem and a study of the real work. Reading 1,000 tickets showed that most were lookup and policy, some were risky and the tail was long.
The design was a hybrid: rules and a small-model router, four narrow specialist agents, an independent verifier, a gateway with limits and humans for the risky and the unsure.
Controls were placed in the harness: permissions per agent, refund limits, idempotency keys, rate and blast-radius limits and approvals.
Evaluation used 1,200 real tickets with held-out and trap cases, repeat runs, and outcome and trajectory checks. The end-to-end success rate rose from 81 to 92 per cent through better tool results, examples and a verifier.
Release followed the autonomy ladder, with canaries and flags.
In the example, automating 45 per cent of 8,000 daily tickets at a 92 per cent success rate cut the daily cost from ₹6.8 lakh to ₹4.27 lakh, and the build paid back in about 2.6 months. The figures are invented and sensitive to assumptions.
Problems appeared after launch, and traces, sampling and alerts found them.
Check yourself
1. Why was a hybrid design chosen over a single free agent?
Most work was lookup and policy that fit workflows and narrow agents, some tickets were risky, and the long tail needed people. A hybrid gave reliability, lower cost and clear control.
2. Name two reasons for using separate specialist agents here.
Any two of: keeping policy contexts small, giving each agent different permissions, and allowing an independent check on replies.
3. A desk has 5,000 tickets a day at ₹60. An agent handles 40 per cent at ₹5 each with a 90 per cent success rate, and failures cost the human ₹60 plus ₹20 extra. What is the daily cost with the agent?
Automated: 2,000 × (5 + 0.1 × 80) = 2,000 × 13 = ₹26,000. Others: 3,000 × 60 = ₹1,80,000. Total ₹2,06,000.
4. Why does the success rate matter so much in the economics?
Each failure costs a person's time plus extra handling, so a lower success rate turns part of the saving into rework.
5. Why did the team keep a flag for each specialist?
A flag lets any specialist be switched off in seconds if it misbehaves, without a release.
6. Name two problems found only after launch.
Any two of: a router mistake on a sensitive message, drift in long conversations, a cost spike from a bloated extract, a verifier blind spot and a model update changing accuracy.
Try this
Set aside ninety minutes.
1. Choose a support or operations desk you know. Write the kinds of work, with rough shares, in a table like the one in the case.
2. For each kind, say how bad a mistake is and whether it can be written as a checklist. Mark which you would automate first, which later and which never.
3. Sketch the architecture: router, specialists, verifier, gateway and human queue. For each specialist, list tools and permissions.
4. Write the tier list for human involvement, and the autonomy stage you would start at.
5. Use the first simulator with your numbers. Change the success rate and the automated share. Where does the saving vanish?
6. Use the payback simulator with a rough build cost. How long would it take?
7. List five things that could go wrong after launch and the signal that would show each.
A good result is a one-page design for a support or operations agent, with the problem, the hybrid architecture, the controls, the release plan and the economics. Lesson 12.2 turns to a different kind of work: a team of agents doing research.
Tags: Agentic AI Case study Customer support Multi-agent systems Agent economics