Skip to main content
This example demonstrates how to build a document review system where each agent processes the output of the previous one - perfect for multi-stage processing workflows.

Step 1: Setup

Step 2: Define Your Sequential Pipeline

Create a 4-stage document review pipeline where each agent builds on the previous agent’s work:

Step 3: Run the Pipeline

Expected Output:
Each agent in SequentialWorkflow receives the previous agent’s output. Design your prompts so each stage builds on prior work.