Part 1: Mental models
Workflows before agents
The cheapest, most reliable agent is often the one you did not build
In short
If you can draw the flowchart, build the workflow. Use an agent only for the boxes labeled "it depends".
Key ideas
- Walk the decision tree from the top and stop at the first yes
- The model proposes, the code disposes
- Ship the workflow first; move to the hybrid when real tickets show the need
A summary only. The reasoning, examples, checklist and what to do on Monday are in the chapter. Read it in the book
1 to 2
model calls per ticket, workflow triage (design estimate)
3 to 12
model calls per ticket, agent triage (design estimate)
Inside the chapter
- 1The core rule: if you can draw the flowchart, build the workflow
- 2The pattern catalog
- 3The decision tree: single call, workflow, agent, multi-agent
- 4The determinism budget: where to put code and where to put the model
- 5Worked example: support ticket triage, built three ways
- 6Anti-patterns
- 7Per-track notes
Try it: workflow, agent or single call?
Score: 0 / 5
Rule of thumb: if you can draw the flowchart, build the workflow.
Item 1 of 5
Nightly job: fetch metrics, compare with last week, post a summary
Show the answers
Nightly job: fetch metrics, compare with last week, post a summary
Answer: Workflow. Same steps every time: code fetches and compares, one model call writes the summary.
Detect the language of one support message
Answer: Single call. One input, one output, no steps: a single call.
Find why a customer's import failed, across runbook, schema and live pipeline state
Answer: Agent. The next step depends on what the last one returned, in ways you cannot enumerate.
Invoice intake: extract fields, check against the purchase order, route for approval
Answer: Workflow. You can draw it: fixed steps with a model at the extraction step.
Debug a failing test where each result decides the next command
Answer: Agent. Discovery-driven steps: a bounded agent with a step cap.
Go further: free on this site
Questions readers asked about this chapter, a 5-question self-check with explanations, and every source it cites.
Questions readers ask (3)
3 questions. Open one to read the answer.
Who should label the tickets, and what if two labelers disagree?
Today's triager, keeping notes on hard cases. Have a second experienced labeler cover an overlap: frequent disagreement means the category definitions need work, not more labels. Every ticket a human corrects in production joins the set (Chapter 9). Set size and mix: Ch 2, Version A.
If we ship workflows first, won't competitors with "real" agents overtake us?
Not on the evidence: most agents in production are short and supervised (Chapter 1), closer to Version C than B. The race is to production, and a workflow gets there first, while producing what an agent needs later: labeled data, a baseline cost and a list of tickets the rules handled badly. A team that ships A in weeks and C a quarter later is ahead of a team still tuning B.
How does this sketch become a production system?
Add idempotent processing keyed on ticket ID, retries and timeouts on external calls, a labeled eval set gating prompt changes in CI, traces of every call, shadow mode before real routing, a canary with rollback, and a dashboard for cost per successful triage (Chapters 7 to 10). Chapter 17 takes this exact system from idea to production.
Answered in the book, not repeated here: See Chapter 2, Version A: the workflow; See Chapter 2, Per-track notes; See Chapter 2, The comparison
Self-check (5)
Score: 0 / 5 (0 answered)
Question 1 of 5
A nightly job pulls yesterday's metrics, compares them with last week, writes a summary and posts it. Someone proposes an agent with one tool per data source. What does the chapter recommend?
Show the answer
Answer: D.
A scheduled task that does the same thing every time is a workflow; the agent adds only variance. A step cap limits the damage but keeps the variance.
Question 2 of 5
You classify each refund request three times and escalate to a human when the runs disagree. Which pattern is this?
Show the answer
Answer: B.
Voting runs the same judgment several times and uses disagreement as an uncertainty signal. Evaluator-optimizer is a generator and a critic revising in a loop, not repeated identical judgments.
Question 3 of 5
Which reason justifies splitting work across several agents, according to step 4 of the decision tree?
Show the answer
Answer: A.
Contexts, permissions and parallelism are the only grounds. Roles are the classic trap the chapter calls multi-agent theater.
Question 4 of 5
In the hybrid (Version C), why does the agent return evidence instead of a final priority?
Show the answer
Answer: C.
The model proposes and the code disposes: priority stays a rule you can read and test. Token savings are not the reason; the evidence step can cost more than a bare priority.
Question 5 of 5
Your classifier writes confidence 0.9 into its JSON output. What does that number tell you before calibration?
Show the answer
Answer: B.
A self-reported score is a hint, not a probability, and may or may not track accuracy. Ignoring it outright is also wrong: calibration may show it is useful for some categories.
Sources
Sources cited
- Anthropic, Building effective agents, December 2024. anthropic.com
- Shunyu Yao et al., ReAct: Synergizing Reasoning and Acting in Language Models, arXiv, October 2022. arxiv.org
- Arize AI (Aryan Kargwal), Why AI Agents Break: A Field Analysis of Production Failures, January 2026. arize.com
- Google Developers Blog, Why we built ADK 2.0, July 2026 (illustrative results on mock APIs, vendor claim). developers.googleblog.com
Further reading
- LangChain, Workflows and agents (LangGraph documentation). docs.langchain.com
- Walden Yan (Cognition), Don't Build Multi-Agents, June 2025. cognition.com
- Anthropic, How we built our multi-agent research system, June 2025. anthropic.com
- Dex Horthy (HumanLayer), 12-Factor Agents. github.com