# Prompt chaining

Canonical page: https://www.theglitch.ai/ai-glossary/prompt-chaining

Splitting a job into steps where each prompt’s output feeds the next one.

[Prompt chaining, common card \#174 in The Glitch AI glossary: Splitting a job into steps where each prompt’s output feeds the next one.](https://www.theglitch.ai/images/cards/glossary/prompt-chaining.png?v=f1757a33ef982c5c)

GLS 174 · common

For: Builders

## Why it matters

Chains are easier to debug and usually more reliable than one giant prompt.

## In practice

Step 1 extracts facts from a transcript, step 2 drafts a summary, step 3 checks it against the facts.

## Watch for

Errors early in the chain carry through; check the middle outputs.

## Related terms

[Workflow](https://www.theglitch.ai/ai-glossary/workflow) · [Prompt template](https://www.theglitch.ai/ai-glossary/prompt-template) · [Agent](https://www.theglitch.ai/ai-glossary/agent)

## Guides that use it

[Prompting that actually works.](https://www.theglitch.ai/learn/prompting)

## Sources

- [Anthropic docs: Chain complex prompts](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/chain-prompts)

Definition updated 2026-10-29.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
