Deployed Lab

Module 5 · Case studies II · Chapter 20 · Free

Case study: a sales outreach agent with human approval

19 min1 clickable picture1 hands-on lab, 1 predict, 2 quick quizzes, 5-question final quiz5-min video review
In 30 seconds

The picture: a junior researcher who drafts, then waits for your signature.

Case file

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.

The cold open

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.

The plan for this chapter
  1. Requirements first, via the Chapter 4 design method.
  2. Walk one account through the architecture.
  3. Map each pattern to its place; name the tradeoffs.
  4. Read three failures and the fix each forced.
  5. 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.

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:

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 Fernhill outreach agent architecture An account passes suppression and routing, is researched with sources, drafted into CRM fields, approved by a named rep, then sent and logged. CRM recordsource of truth Suppressioncheck, in code Routerthin research? Research planplanner step Researchclaims plus sources Draftinto CRM fields Rep approvalnamed, recorded Send and logback to CRM
  1. The record holds contacts, touches, replies, objections. Nothing starts outside it.
  2. Code checks the live suppression lists. A suppressed contact stops here; no draft follows.
  3. Thin public material? The router sends the account to a human first.
  4. The planner lists what to look for: filings, pages, posts, hiring signals.
  5. The executor gathers facts, each with a source: a page, a filing, a post. No source, no fact.
  6. The drafter writes CRM fields: subject, body, a citation per personalised line.
  7. The rep edits or rejects. Approval records who, which version, when.
  8. 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.

PatternWhere it appearsWhy here
Planner-executor split (Chapter 8, Agent patterns)Research plan, then research and draftingA written plan can be checked and logged, and stops web wandering.
Retrieval (Chapter 5, Retrieval patterns)Gathering pages, filings, postsDrafts rest on found material, not model memory.
Structured output (Chapter 6, Structured output and tool use)Drafts in CRM fields, citations as fieldsCode validates fields: an empty citation deletes the claim.
Router (Chapter 7, Router and model cascade)Thin-research accounts to a humanRouting beats a confident, empty draft.
Memory (Chapter 9, Memory patterns)Per account, in the CRMMessage three must know what message one said, and the objections.
Guardrails plus human in the loop (Chapter 10)Suppression in code; approve-before-actWhere an error hurts a real person: contacting the opted-out, sending unchecked words.
Eval loop (Chapter 11, The eval loop)Sampling drafts; scoring repliesSampling 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

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:

  1. Sketch, on paper, where each safeguard in the brief belongs.
  2. Do the decision log lab below and compare it with your sketch.
  3. 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.

What to notice

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.

Field note, November 2026

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

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.

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".