Skip to main content

Workflows

Workflows define how multiple agents work together to complete a task. Just like a team of people in an office, agents can collaborate in different ways depending on the task.

What is a Workflow?

Think of a workflow as a recipe that tells your agents:
  • Who does what
  • In what order
  • How they share information

The Four Main Patterns


Which Pattern Should I Use?

I want to…Use this pattern
Send requests to different specialistsRouting
Do multiple independent things at onceParallel
Process step-by-step (A → B → C)Sequential
Let an AI decide how to break down workOrchestrator

Real-World Examples

Example 1: Customer Support Bot

A customer asks: “Why is my order delayed?”
PatternHow it works
RoutingClassify the question → Send to Shipping Agent
SequentialLookup Order → Check Status → Write Response

Example 2: Research Report

You ask: “Create a report on AI trends”
PatternHow it works
ParallelResearch AI + Research ML + Research NLP (all at once)
SequentialResearch → Analyze → Write → Edit (step by step)
OrchestratorManager assigns: “You research, you analyze, you write”

Two Ways to Build Workflows

PraisonAI offers two approaches:
ApproachClassBest for
Deterministic PipelinesAgentFlowYou define exactly what happens
Dynamic DelegationAgentTeam + hierarchicalAI manager decides
Start simple: Use Sequential for your first workflow, then explore other patterns as needed.

Next Steps