Skip to content

Prompt Chaining: Breaking Tasks Into Steps

Splitting complex work into a sequence of focused prompts, where each step's output feeds the next.

Editorial team 1 min read

Asking a model to do everything in one prompt often produces mediocre results. Prompt chaining splits a task into focused steps.

Example: Writing a Report From Research Notes

  1. Extract: pull key findings and figures from each source.
  2. Organise: group findings into themes.
  3. Outline: propose a structure.
  4. Draft: write each section from the outline and findings.
  5. Review: check facts and consistency against the extracted findings.

Benefits

  • Each prompt is simpler and more reliable.
  • Intermediate outputs can be inspected and corrected.
  • Steps can use different models — cheap ones for extraction, capable ones for drafting.
  • Failures are easier to locate and fix.
  • Steps can be tested independently.

Designing Chains

  • Pass structured outputs (lists, JSON) between steps.
  • Keep each step's instructions focused on one job.
  • Validate outputs between steps.
  • Allow human review at key points for important work.

Chains Versus Agents

In a chain, you fix the steps in code. In an agent, the model decides the steps. Chains are more predictable and easier to test; use them when the process is known.

Watch for Error Propagation

A mistake early in the chain carries forward. Put validation after the steps most likely to go wrong.

More in Prompting

All Prompting guides →
Prompting Guide · 1 min

Anatomy of an Effective Prompt

The parts of a prompt that reliably produce good results, with a template you can adapt for almost any task.

Prompting 1 min read 1 Nov 2025

Prompting Guide · 2 min

Giving Models Context

Why most weak outputs come from missing context, and what background information to include in a prompt.

Prompting 2 min read 31 Oct 2025

Prompting Guide · 1 min

Role Prompting: When It Helps and When It Doesn't

Telling a model to act as an expert or a persona can shape tone and focus — but it isn't a substitute for clear instructions.

Prompting 1 min read 30 Oct 2025