# Prompt Chaining

> Splitting a task into steps, where each prompt feeds the next.

**Field:** Artificial Intelligence  
**Category:** Working with AI  
**Also known as:** Prompt Chain, Chained Prompts

## Think of it like

Think of it like a relay race. Each runner hands the stick to the next.

## Definition

Prompt chaining splits a big task into steps, each with its own prompt. The output of one step becomes the input of the next. Each prompt is short and does one job, so it is easier to test and fix. A program runs the steps in order and can check the result between them. It often beats one long prompt that tries to do everything at once.

## Example

Emma's tool turns a meeting recording into actions. Step 1 writes a summary. Step 2 pulls out the tasks. Step 3 turns each task into an email.

## Why it matters

Steps that each do one thing are easier to test, fix and trust than one giant prompt.

## Common mistake

Not checking the output between steps. One bad step passes its mistake down the whole chain.

## Three principles

- **One job per prompt.** Short and clear.
- **Output feeds input.** Step by step.
- **Check between steps.** Stop errors early.

## Related terms

- [Prompt (AI)](https://learn.benibix.com/term/ai/prompt)
- [Prompt Template](https://learn.benibix.com/term/ai/prompt-template)
- [Agentic Coding](https://learn.benibix.com/term/ai/agentic-coding)
- [Iterative Prompting](https://learn.benibix.com/term/ai/iterative-prompting)

## Told apart from

- [Iterative Prompting vs Prompt Chaining](https://learn.benibix.com/compare/iterative-prompting-vs-prompt-chaining): People think prompt chaining is just asking follow-ups, and it is not. In iterative prompting, you read each draft and ask for a change in the same chat. In a chain, a program passes each answer into the next prompt as a fixed step. One is you steering. The other is a pipeline you set up once.

## Taught in

- [Prompt Chains and Templates](https://learn.benibix.com/learn/ai-working-with-ai/prompt-chains-and-templates): Prompt Engineering, 8/16

![Three prompt boxes in a row: summarise the meeting, pull out the tasks, write an email per task. The output of each feeds the next, with a check between steps.](https://learn.benibix.com/diagrams/pr-prompt-chain.svg)

---

Source: https://learn.benibix.com/term/ai/prompt-chaining
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
