The short version
- A workflow is a fixed sequence of model calls and code, designed by a person.
- Four patterns cover most needs: chain the steps, route by type, run steps in parallel, or let one model split work among others.
- Workflows are predictable and easy to test. Start here before you consider an agent.
The idea
In a workflow, the path is set in code. The model does the language work at each step, and the designer decides the order.
Prompt chaining. The output of one step is the input of the next: extract, then check, then draft. Each step is simple, and you can place a check between steps.
Routing. A first step classifies the request and sends it to a specialized path. Billing questions go to one prompt and technical questions to another.
Parallelization. Several calls run at the same time, either on different parts of a task or on the same task for a vote. Results are combined at the end.
Orchestrator and workers. One model breaks a task into parts, hands each to a worker call and assembles the result. The parts are decided at run time, and the overall shape stays fixed.
Think of an assembly line. Chaining is stations in a row. Routing is a sorter that sends each item to the right line. Parallel work is several stations working at once. An orchestrator is a supervisor who splits a job among the crew.
- Chain: step after step
- Route: sort, then handle
- Parallel: several at once
- Orchestrate: split, assign, combine
A fifth pattern, evaluator and optimizer, pairs a call that drafts with a call that critiques, and loops until the draft passes.
An example
A distributor automates responses to requests for quotation. A router separates standard catalogue requests from custom ones. For standard requests, a chain extracts the line items, looks up prices with code, and drafts the quote. Three parallel checks then review the draft for pricing errors, missing terms and tone. Custom requests go to a person, with the extraction already done.
Common mistakes
- One giant prompt that tries to do every step.
- No checks between steps, so an early error flows to the end.
- Using a model for steps that are plain code, such as price lookup.
- Jumping to an agent when the process has a known, fixed path.
What to do this week
- Draw one process as boxes and arrows. Mark which pattern each part matches.
- Identify the steps that are pure code and keep the model out of them.
- Add one check between two steps where errors are costly.
The terms, in plain language
| Term | What it means |
|---|---|
| Workflow | A fixed sequence of model calls and code |
| Prompt chaining | Feeding one step’s output into the next |
| Routing | Classifying a request and sending it down the right path |
| Orchestrator | A model call that splits work and combines results |
Further reading
Section 5.1 of the AI Engineering Guide · Last reviewed November 2026




