Module 5 · Case studies II · Chapter 20 · Free
Case study: a sales outreach agent with human approval
- The agent researches each account and drafts a short sequence. It never sends anything.
- A named rep approves or edits every message, recorded, before any send.
- Every personalised claim cites its source, or it is deleted. No citation, no claim.
The picture: a junior researcher who drafts, then waits for your signature.
Company: Fernhill Software, an invented B2B software company, made up for this case.
Product: an outreach agent that researches accounts, drafts messages, and queues them for a rep.
Users: a small sales team, about 400 target accounts (illustrative), reviewing drafts daily.
Hard constraints: no send without a named, recorded approval. Every claim cites a source or is deleted. Suppression enforced in code before drafting.
An earlier pilot let a drafting tool send a first batch on its own. One message told a prospect their company had "just opened a Berlin office": the source was a different firm with a similar name. The prospect replied, copying their legal team, asking where Fernhill got its facts.
The account went quiet for a quarter; the team spent about two weeks (illustrative) reviewing every other message. The rebuild began from one rule: agent drafts, human decides, every claim shows its source.
- Requirements first, via the Chapter 4 design method.
- Walk one account through the architecture.
- Map each pattern to its place; name the tradeoffs.
- Read three failures and the fix each forced.
- Cost arithmetic, then a redesign exercise.
Next: requirements first.
Step 1: Context and requirements first
The Chapter 4 design method: requirements, constraints, patterns, tradeoffs, eval plan, on one page.
- Job to do: reps spend most research time reading pages, filings and posts, then drafting. The agent takes that first pass.
- Source of truth: the CRM. Touches, replies and objections live there; the agent keeps no private copy.
- Hard constraints: the three from the case file, enforced in code, not in a prompt. A prompt is a request; code is a guarantee.
- Quality bar: every claim checks out against its citation; the rep would send with light edits.
The CRM is the filing cabinet, the agent a temp worker: the temp prepares files, but files nothing and sends nothing alone.
Where the picture breaks down:
- A temp can use judgment. The agent cannot: "too thin" needs a rule or a route to a human.
- A temp notices a wrong file. The agent trusts the CRM: stale data becomes stale drafts.
Next: the architecture.
Step 2: The architecture, one account end to end
Follow one account from research to an approved, sent first message. Press Next.
- The record holds contacts, touches, replies, objections. Nothing starts outside it.
- Code checks the live suppression lists. A suppressed contact stops here; no draft follows.
- Thin public material? The router sends the account to a human first.
- The planner lists what to look for: filings, pages, posts, hiring signals.
- The executor gathers facts, each with a source: a page, a filing, a post. No source, no fact.
- The drafter writes CRM fields: subject, body, a citation per personalised line.
- The rep edits or rejects. Approval records who, which version, when.
- Only the approved version sends. Send and reply are logged back to the CRM.
Notice what the picture lacks: a send button near the model. Code and a person control what leaves the building.
Next: the patterns.
Step 3: Patterns used and why
Every block is a pattern from Modules 2 and 3.
| Pattern | Where it appears | Why here |
|---|---|---|
| Planner-executor split (Chapter 8, Agent patterns) | Research plan, then research and drafting | A written plan can be checked and logged, and stops web wandering. |
| Retrieval (Chapter 5, Retrieval patterns) | Gathering pages, filings, posts | Drafts rest on found material, not model memory. |
| Structured output (Chapter 6, Structured output and tool use) | Drafts in CRM fields, citations as fields | Code validates fields: an empty citation deletes the claim. |
| Router (Chapter 7, Router and model cascade) | Thin-research accounts to a human | Routing beats a confident, empty draft. |
| Memory (Chapter 9, Memory patterns) | Per account, in the CRM | Message three must know what message one said, and the objections. |
| Guardrails plus human in the loop (Chapter 10) | Suppression in code; approve-before-act | Where an error hurts a real person: contacting the opted-out, sending unchecked words. |
| Eval loop (Chapter 11, The eval loop) | Sampling drafts; scoring replies | Sampling measures what approvers miss. |
Note the placement: it samples the agent's drafts, not the rep's edits, so the agent gets graded. See the evals chapter.
Next: the tradeoffs.
Step 4: Tradeoffs taken
- Approval on every send caps volume. The queue, not the model, sets the pace. One wrong send costs more trust than a week of extra volume earns.
- Citation-or-delete slows drafting. Some drafts come back thin: good lines had no source and were cut. That is the rule working. A shorter true email beats a rich invented one.
- Suppression before drafting fixes the pipeline order. No tokens are spent on the never-contact list, but every new feature must respect the order.
- CRM as the only memory adds friction. Everything the agent knows must fit CRM fields. In exchange, one shared history.
Predict first:
The model is the cheap part. Human review is fixed, so the queue is where growth shows up first. The redesign exercise takes on this pressure.
Next: what broke.
Step 5: What broke
1. A claim about the wrong company. A draft said a prospect had "just raised a new funding round". The source was real, but about a different company with a similar name. The check asked "is there a source?", not "about this account?". Fix: sources must match the account's identifiers (domain, CRM record) to be cited; eval sampling adds a same-name check.
2. Personalisation drifted over a long sequence. Message one matched the approved template. By message five, small edits had stacked up: new claims, pushier tone, a new sign-off. Fix: a tone and template check on every message, against the approved template.
3. A suppressed contact was drafted to. The check sat in the right place but read a stale nightly copy, missing a contact who unsubscribed that morning. Fix: read the live list at draft time, and again at send time.
Read the fixes together: each moved a check closer to the harm, and replaced "the prompt should handle it" with code.
Next: cost and latency.
Step 6: Cost and latency
All figures here are illustrative. Prices: $3 per million input tokens, $15 per million output.
Cost per researched account:
1. Tokens: planning 1,500 in, 200 out; drafting 4,000 in, 600 out; checks 2,000 in, 200 out. Totals: 7,500 in, 1,000 out.
2. Model cost: 7,500 / 1,000,000 x $3 = $0.0225, plus 1,000 / 1,000,000 x $15 = $0.015: about $0.04 per account.
3. Add an illustrative $0.01 for search and fetching: about $0.05 per account, so 400 accounts cost 400 x $0.05 = $20.
Rep time: hand research and drafting take an illustrative 25 minutes per account; reviewing takes about 4. Saving: 21 minutes. A rep on 12 accounts a day saves 12 x 21 = 252 minutes, about 4.2 hours.
Queue and latency: an illustrative 60 first messages a day over 5 reps is a queue of 12 each, at 4 minutes: 48 minutes of review a day. The agent takes about 70 seconds per account (40 research, 20 drafting, 10 checks), in a batch. The wait that matters is the human queue.
Next: the lab and redesign.
Step 7: Hands-on lab, check the decisions, then redesign
Why this exercise: this case is placement: which check goes where, in code or in a prompt.
Do this:
- Sketch, on paper, where each safeguard in the brief belongs.
- Do the decision log lab below and compare it with your sketch.
- Then take the redesign exercise.
The brief and the account record shape (illustrative):
Design brief (illustrative)
- 400 accounts in the CRM, 5 reps. Agent drafts, never sends.
- Every claim cites a source, or is deleted.
- Suppression lists enforced before drafting.
Account record (illustrative)
{ "account_id": "A-2210", "domain": "prospect.example",
"touches": [...], "replies": [...], "objections": [...],
"draft": { "subject": "", "body": "",
"claims": [ { "text": "", "source_url": "" } ] },
"approval": { "by": null, "version": null } }
Lab: Fernhill Software's outreach agent (invented case) researches accounts and drafts messages. This lab runs in your browser and needs JavaScript enabled.
- Nothing here lives in a prompt. Prompts shape writing; code and sampling carry guarantees.
- Suppression appears twice: before drafting and before sending, because lists change in between.
Redesign exercise: a second channel, a second language
The requirement changes. Fernhill adds a second channel (short connection messages on a professional network, as a category) and a second language. Approval load roughly doubles, and some drafts arrive in a language some reps read poorly.
Your task: redesign the queue so quality survives: routing, queue design, eval sample. Decide before opening the model answer.
Model answer
Route by language and channel. Queues go only to fluent reps: a draft a rep cannot read cannot be approved by them.
Make approval cheaper, not weaker. Drafts sit beside their sources, claims highlighted, batched by account: both channels reviewed in one sitting.
Protect the cap honestly. Two channels double queue minutes: 60 drafts a day becomes about 120 items. Add reviewers, or volume drops. Never quietly auto-approve.
Grow the eval loop. Sample per language and channel, so a weak language cannot hide in a strong average, plus native-speaker tone checks.
When not to do this: if fluent reviewers cannot be staffed, launch the channel first and delay the language. An unreadable queue is approval in name only.
Outreach is where approve-before-act earns its keep: a bad send lands on a named prospect, so teams commonly keep a human on sends even when drafting is automated. Treat vendor claims about autonomous outreach with care. Common practice, hedged, not a statistic.
Mix-ups to avoid
- Approval as a rubber stamp. If citations take minutes to open, reps stop checking. Fix: claims and sources side by side.
- Suppression checked after drafting. A draft to an opted-out contact is already a failure, and drafts leak into sends. Fix: check before drafting, and again before sending.
- A citation proves a claim. It does not: the source may be about another company, or stale. Fix: match sources to account identifiers; sample for accuracy.
- Memory is the chat history. For outreach it is per account and long-lived: touches, replies, objections. Fix: keep it in the CRM.
- More accounts means just more tokens. Tokens are the small cost; the limit is reviewer minutes. Fix: size the queue to the team.
Chapter quiz
Five questions. Score 70% or more to mark this chapter complete.
Review this chapter in 5 minutes
Watch the whole chapter recapped: a sales agent that drafts but never sends: cited claims, named approval, suppression in code.
- The agent drafts. A named rep approves every message, recorded, before any send.
- The CRM is source of truth and memory: touches, replies, objections, drafts.
- Citation-or-delete: every claim cites a source, or code cuts it.
- Suppression: checked in code before drafting, live list, and again before sending.
- Patterns: planner-executor (Ch. 8), structured output (Ch. 6), router (Ch. 7), guardrails and approval (Ch. 10), eval loop (Ch. 11).
- Cost (illustrative): about $0.05 per account, $20 for 400; about 21 rep minutes saved per account. The queue is the real limit.
- Three breaks: wrong-company source, sequence drift, stale suppression copy. Each fix moved a check into code.
Decision rule: if it reaches a real person, a named human approves it and every claim shows its source, or it does not go out.
Review
Glossary
- Approve-before-act
- A human approves the agent's prepared action before it runs. Example: a rep approving a draft.
- Citation-or-delete
- A claim carries a source or is removed. Example: a funding claim with no filing link is cut.
- Suppression list
- People who must not be contacted, including unsubscribes.
- CRM
- The system holding account records. The source of truth here.
- Approval queue
- Drafts awaiting a named reviewer.
- Planner-executor split
- Planning is separate from doing. Example: a research plan before any page is fetched.
- Sequence drift
- Slow change across a sequence, away from what was approved. Example: message five pushier than one.
- Thin research
- Too little public material to draft honestly. Example: a one-page website, no filings.
- Eval sample
- Outputs checked in detail to measure quality. Example: 20 drafts a week, claim by claim.
Next: "Case study: a data analysis copilot over a warehouse".