Skip to main content
A workflow where the output of one LLM call becomes the input for the next. This sequential design allows for structured reasoning and step-by-step task completion.

Workflow architecture

Chain multiple LLM calls sequentially to process complex tasks.
Diagram of a sequential workflow where each LLM call's output feeds the next call's input

Sequential workflow cookbook

For a more detailed walk-through refer to the notebook here.

Setup client

Implement workflow

Example usage

Use cases

  • Generating marketing copy, then translating it into a different language.
  • Writing an outline of a document, checking that the outline meets certain criteria, then writing the document based on the outline.
  • Using an LLM to clean and standardize raw data, then passing the cleaned data to another LLM for insights, summaries, or visualizations.
  • Generating a set of detailed questions based on a topic with one LLM, then passing those questions to another LLM to produce well-researched answers.