Topic 4 of 4 · 5 min read
Choosing between single call, workflow and agent
Goal: Choose the simplest design for a described task, from single call to hybrid agent, and justify it in two sentences.
Start with one model call and move up the ladder only when a test shows the simpler design failing. The ladder is: single call, workflow, agent, and sometimes a hybrid. Anthropic's guidance says the same: find the simplest solution and add complexity only when it improves outcomes.
Check yourself · 1 of 3
You need to turn a long email thread into a short summary. What is the right first design to try?
The ladder
- Single call. One prompt, perhaps with a few examples and some retrieved text. Try this first for summaries, rewrites, classification and extraction.
- Workflow. Several calls in a path you wrote, with code checks between them. Move here when one call is too inconsistent, when the task has clear stages, or when you need to check outputs.
- Agent. A loop. Move here when steps or their order cannot be known up front, or the model must react to feedback.
- Hybrid. A workflow whose one hard step is an agent, or an agent that can call a fixed workflow as a tool.
Questions to ask, in order
- Does one call with a good prompt pass your tests? Keep it.
- Are the steps known and the same each time? Use a workflow.
- Does a wrong answer need a check before the next step? Add code gates to the workflow.
- Is the number or order of steps unknown, or does feedback decide the next step? Consider an agent.
- Can a mistake cause damage you cannot undo? Keep a person in the loop or use read-only tools.
Hybrids often win
Most real systems mix. A refund flow is a workflow for the 90 percent of cases that fit the form, with an agent for the unusual ones that get read-only tools and a turn limit. Or a coding agent calls a fixed "run the test suite and summarize failures" workflow as one of its tools. You keep predictability where it exists and spend autonomy only where it is needed.
Before and after
Weak: "Our support bot must be an agent, because agents are the future." No test, no estimate.
Better two-sentence justification: "Triage has four known stages and fixed outputs, so a workflow with a category check is enough; we will add an agent only for the tickets that fail the check twice. We tested a single call first, and it mislabeled 14 of 100 saved tickets, which is why we split classification from drafting."
What goes wrong
- Skipping the ladder. Teams build an agent first and cannot tell whether a plain call would have worked.
- No test set. Without 30 or more saved real cases, you cannot tell if a more complex design is better.
- Hybrids with no boundary. If it is unclear which part is fixed and which is free, you get the risks of both.
Examples
Meeting notes
One call with the transcript and a template produces notes that pass your five saved transcripts. Stop there. A workflow or agent would add cost without improving the result.
Customer refund requests
Most requests follow a form: order id, reason, amount. A workflow handles them and a person approves large amounts. Roughly one in ten is a messy thread, such as a missing order or a dispute across two orders. Those go to an agent with read-only order tools and 8 turns, and its output is a proposed action for a person to approve. The pattern is a workflow with an agent for the exceptions.
Key points
- Start with a single call and move up only when a test shows it failing.
- Use a workflow when the steps are known and a code check can catch bad output between them.
- Use an agent when the number or order of steps is unknown or feedback decides the next step.
- Hybrids put autonomy only in the hard step and keep the rest fixed and checked.
- Justify the choice with test results on saved cases, not with how modern the design sounds.
Common mistakes
- Choosing the agent first because it sounds more capable.
- Comparing designs without a set of saved real cases to test them on.
- Mixing fixed and free parts without a clear boundary between them.
- Giving an exception-handling agent the same write permissions as the main workflow.
Check yourself · 2 of 3
When is moving from a workflow to an agent justified?
Check yourself · 3 of 3
A refund flow handles most requests with a fixed form but some arrive as long, messy threads. Which design fits best?
Practice items, not counted towards your mastery.
Start here
- Building effective agents (Anthropic) (opens in a new tab)ArticleFree
Defines workflows versus agents and says to find the simplest solution first; the source of this skill's framing.
- A practical guide to building agents (OpenAI) (opens in a new tab)DocsFree
A second vendor's view on when a use case justifies an agent and how to design the loop.
- Workflows and agents (LangGraph docs) (opens in a new tab)DocsFree
Code-level side-by-side of fixed workflows and agent loops, with runnable examples.