Glossary
Prompt chaining
Prompt chaining breaks a job into several requests where each result feeds the next, which is usually more reliable than asking for the whole thing in one go.
In plain terms
Asking in stages instead of all at once. Extract the facts, then check them, then write the summary. Each stage does one thing and hands its answer to the next. It is more reliable than one enormous request and it is also more machinery, which is the trade.
Why it matters
Because a single request carrying five instructions tends to satisfy three of them well. Splitting the work is the most reliable way to improve output without changing anything else, and it is the technique most automations already use whether or not anybody called it this.
How it works
Each stage carries one instruction, and that is where the reliability comes from. A request asked to extract, judge and rewrite at once distributes its attention across all three and does none of them fully. Asked separately, each gets the whole of it, which is why the improvement is usually larger than people expect from such a plain change.
The output of one becomes the input of the next, which introduces a joint. That joint is the fragile part: what passes along is whatever the earlier stage produced, in whatever shape it happened to produce it, and the later stage has no view of what was discarded on the way. Errors do not announce themselves at the boundary.
Errors compound rather than cancel, and this is the property worth understanding. A mistake in stage one is treated as fact by stage two, which builds on it confidently. By the final stage the output is coherent, fluent and wrong in a way that no longer resembles the original error, which makes chains harder to debug than single requests.
Cost and latency multiply with the links. Every stage is its own request, charged and waited for separately, so a five-stage chain is five times the round trips and more than five times the material if each stage carries context forward. That is why chains are usually shortened once they work rather than extended.
One request, or several
Seen in the wild
A visual automation platform where branching, loops and data transformation are first-class, so a job is naturally expressed as a sequence of steps rather than one request.
MakeA canvas where AI operations are first-class nodes and batches run over many records, which is chaining made into the interface itself.
GumloopA framework whose production heart expresses work as graphs, which is the same idea with the joints made explicit and inspectable.
LangChain / LangGraph
Common misconceptions
People assume
A capable enough system makes this unnecessary.
In fact
Capability raises the ceiling on any single stage and does not remove the attention problem. Five instructions in one request still compete with each other, and the improvement from separating them survives every generation so far. It is a structural technique rather than a workaround for weakness.
People assume
A wrong answer will surface at the end.
In fact
It surfaces as a coherent answer that is wrong, which is worse. Each later stage treats what it received as given, so an early error is elaborated rather than caught, and the final output bears no obvious resemblance to the mistake. Checking the joints matters more than checking the result.
Telling them apart
Prompt chaining vs Agent loop
Prompt chaining
The stages are laid out in advance and always run in order.
The next step is decided each time round, from what just happened.
A chain can be costed and tested; a loop cannot. That is the same trade as any fixed path against a decided one.
Questions
- When is splitting worth the extra machinery?
- When a single request is being asked to do several different things, which is most of the time in practice. The signal is a result that does some parts of the job well and others poorly and inconsistently, since that is what competing instructions look like from the outside.
- Why are chains hard to debug?
- Because an early mistake is elaborated rather than propagated visibly. Later stages treat what they receive as given and build coherently on it, so the final output is fluent and wrong in a shape that no longer resembles the original error. The useful inspection is at the joints rather than at the end.
- Does it cost more?
- Yes, and more than proportionally. Each stage is a separate request, charged and waited for, and stages that carry earlier material forward pay for it again. That is the reason working chains tend to get shorter over time rather than longer.
Key takeaways
- One instruction per stage is where the reliability comes from.
- The joints are the fragile part; nothing signals an error crossing one.
- Errors compound into coherent wrong answers rather than surfacing.
- Cost and latency multiply with the links, and more than proportionally.
Tools that use this
- Make
Branching and transformation as first-class steps in a scenario.
- Gumloop
A canvas where AI operations are nodes and batches run over records.
- LangChain / LangGraph
Work expressed as graphs, with the joints explicit and inspectable.
Last checked July 2026