Glossary / Agents & Automation

Prompt Chaining

The 'old' agent pattern that still works fine. Sometimes more debuggable, more reliable, and cheaper than a full agentic loop — and the right answer for most enterprise tasks.

Agents & Automation

The Technical Definition

Prompt chaining is the technique of breaking a complex task into a fixed sequence of LLM calls, where the output of one prompt feeds into the next. Step 1 summarizes a document. Step 2 takes that summary and extracts key entities. Step 3 takes the entities and drafts an email. Each step has a defined input, a defined prompt, and a defined output. The sequence is deterministic — the developer wrote the order.

This is older than the term “agent.” It predates ReAct, predates tool-calling APIs, predates the current agentic frameworks. It’s also the pattern that ships the most production AI value in enterprise environments, and the one most often dismissed as not sophisticated enough.

What This Actually Means for Your Business

When a vendor tells you their product uses “advanced agentic AI,” and a different vendor tells you theirs uses “structured prompt chains,” people assume the first is better. Often it’s the opposite.

Prompt chaining beats agentic loops on three dimensions for most enterprise tasks. Cost: a chain runs a fixed number of LLM calls, so the per-task token spend is predictable and auditable. An agentic loop runs as many calls as the model decides to run, which can be ten or a hundred. Reliability: a chain has a known failure mode — step 2 returned bad output, you go look at step 2. An agentic loop fails creatively, in places that depend on what the model decided to do. Debuggability: each step in a chain is a discrete prompt with discrete inputs and outputs. You can unit-test it, swap models on it, A/B-test prompts on it. An agentic loop is harder to instrument step by step because the steps aren’t fixed.

The trade-off: a prompt chain can’t handle tasks where the right sequence depends on intermediate findings. If your task is “research this company and decide what to do next,” and “what to do next” genuinely varies from company to company, a chain won’t fit — you need something with branching or autonomy. But for tasks where the structure is stable — extract fields from a contract, summarize an email and draft a reply, classify a support ticket and route it — prompt chaining is the right tool.

The mistake most teams make: they reach for the most sophisticated pattern available because it sounds more impressive, then spend three quarters debugging why their autonomous agent is unreliable, and eventually rebuild it as a chain. The faster path is to start with a chain, identify the parts that genuinely need autonomy, and add it surgically.

Reality Check

What the vendor says: “Prompt chaining is yesterday’s technology — we use full agentic AI.”

What that means in practice: They’ve made the system harder to debug, harder to budget for, and harder to certify in regulated environments — in exchange for autonomy your task probably doesn’t need. Ask which of your specific use cases actually require that autonomy. If they can’t name them, you don’t need it.

What Operators Actually Do

Teams that ship working AI internally tend to follow a pattern: start with a prompt chain, instrument every step, run it for a few weeks, then look for the steps where the deterministic structure is constraining quality. Those specific steps get upgraded — sometimes to a small ReAct loop, sometimes to a branching workflow, sometimes to a model with tool access. The rest of the chain stays as a chain.

The financial-services and healthcare deployments that hold up under audit are almost entirely chains. The reason isn’t conservatism — it’s that “the model decided” is a bad answer in front of a regulator, and a chain gives you “the model summarized at step 1, classified at step 2, and drafted at step 3, and here’s the prompt and output for each.” That’s an auditable trail.

The other thing chains buy you: portability across models. Each step in a chain is a discrete prompt, which means you can swap the model behind any step without re-architecting. As cheaper models catch up to expensive ones on specific tasks, chained systems migrate cleanly. Agentic systems migrate hard because the agent’s behavior is shaped by the model in subtle ways.

The Questions to Ask

  1. Does this task actually need autonomy? What part of the sequence genuinely varies based on intermediate findings? If the answer is “none” or “one step,” you don’t need an agent — you need a chain.

  2. What’s the cost ceiling per task? A chain has a fixed cost. An agent doesn’t. If you can’t tell finance the cost per task within a tight range, you’re using the wrong pattern.

  3. Can you swap the model behind step 3 without breaking steps 1, 2, 4, and 5? If the answer is no, the system is more coupled than it should be — and you’ll pay for that coupling every time a better model ships.

Get the next Brief

One operator. Every other Wednesday.

Plus the AI Glossary and the Failure Museum.
Real names. Real numbers. Honest analysis.