Skip to main content
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.
RequirementUse
Fixed sequence of steps with dependenciesWorkflow
Parallel execution of independent tasksWorkflow
Conditional routing based on contentWorkflow
Iterative loops with end conditionsWorkflow
Mixed components (agents, teams, functions) in one pipelineWorkflow
Predictable, repeatable outputWorkflow
Open-ended research and planningTeam
Agents dividing responsibilities dynamicallyTeam
Multi-tool decision-making driven by the modelTeam
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.

Next Steps