Prompt chaining
Split a task into fixed steps; each call works on the output of the one before.
Also called Sequential orchestration, Pipeline, Linear delegation, Sequential pattern
Anthropic, Vercel, Microsoft, Amazon Web Services, Google Cloud
The problem
The task splits cleanly into fixed steps, and each step is easier for a model alone.
This workflow is ideal for situations where the task can be easily and cleanly decomposed into fixed subtasks. The main goal is to trade off latency for higher accuracy, by making each LLM call an easier task.
The sequential orchestration pattern solves problems that require step-by-step processing, where each stage builds on the previous stage.
Therefore
Prompt chaining decomposes a task into a sequence of steps, where each LLM call processes the output of the previous one.
The sequential orchestration pattern chains AI agents in a predefined, linear order. Each agent processes the output from the previous agent in the sequence, which creates a pipeline of specialized transformations.
Prompt chaining decomposes complex tasks into a sequence of steps, where each step is a discrete LLM invocation that processes or builds upon the output of the previous one.
In use
Vercel v0
While the base model streams output, v0 is constantly checking the output stream for errors, inconsistencies, and best practice violations. Our custom AutoFix model handles many of these issues mid-stream to further improve output quality.
Where it breaks
An early mistake carries into every later step, and the fixed order cannot adapt.
Early stages might fail or produce low-quality output, and there's no reasonable way to prevent later steps from processing by using accumulated error output.
The rigid, predefined structure of the pipeline makes it difficult to adapt to dynamic conditions or to skip unnecessary steps
Sources
- Building effective AI agentsAnthropic, Dec 19, 2024
- Introducing the v0 composite model familyAryaman Khandelwal, Gaspar Garcia, Ido Pesok, Max Leiter, Vercel, Jun 1, 2025
- AI agent orchestration patternsMicrosoft
The sequential orchestration pattern is also known as a pipeline, prompt chaining, or linear delegation.
- Workflow for prompt chainingAmazon Web Services
- Choose a design pattern for your agentic AI systemGoogle Cloud
The multi-agent sequential pattern executes a series of specialized agents in a predefined, linear order where the output from one agent serves as the direct input for the next agent.
Added Nov 14, 2026