WriteMyAIPromptFree, no sign-up

Prompt chaining

Prompt chaining is connecting several prompts so that the output of one becomes the input of the next, forming a pipeline.

Chaining makes each step inspectable, which is why it is easier to debug than one enormous prompt. The main risk is error propagation: a mistake in step one is treated as fact by every step after it, so validation between steps matters.

Related terms

Prompt decomposition
Prompt decomposition is breaking one complex request into a sequence of smaller prompts, each handling a single step and feeding the next.
AI agent
An AI agent is a language model given tools and a goal, which decides for itself which actions to take and in what order until the goal is met.

More on techniques

See the full glossary, read the guides, or put it into practice in the prompt builder.