Prompt chaining is a technique where the output of one language model call becomes the input to the next, breaking a complex task into a sequence of simpler steps. For example, to summarize a legal contract: first extract key clauses, then analyze each clause for risk, then compile a risk report. Each step uses a focused prompt, making the overall process more reliable and debuggable than a single monolithic prompt. It is a building block of agentic workflows.
Prompt Engineering
Prompt Chaining
Related terms
Learn to use these concepts in practice.
Join the 212AY Academy →