| Requirement | Use |
|---|---|
| Fixed sequence of steps with dependencies | Workflow |
| Parallel execution of independent tasks | Workflow |
| Conditional routing based on content | Workflow |
| Iterative loops with end conditions | Workflow |
| Mixed components (agents, teams, functions) in one pipeline | Workflow |
| Predictable, repeatable output | Workflow |
| Open-ended research and planning | Team |
| Agents dividing responsibilities dynamically | Team |
| Multi-tool decision-making driven by the model | Team |
FAQs
When to use a Workflow vs a Team
Use a Workflow for deterministic multi-step pipelines and a Team when a model should coordinate the work.
Workflows execute steps you define in code. Teams let a model decide which member handles each task. Pick based on how much control you need over the execution path.
Workflows can include teams as steps, so the two compose: use a workflow for the overall pipeline and a team where a step needs open-ended collaboration.