Workflow or agent?
Both use language models. The difference is who decides what happens next.
Workflow: you define the steps
A workflow follows a path written in code. The model handles specific tasks along the way.
- Read message
- Classify
- Draft reply
- Human approval
Use a workflow when the steps are predictable and you want clear control over the process.
Agent: the model chooses the steps
An agent decides what to do next based on the task and what it has found. It can choose tools, inspect results, and adjust its approach.
Use an agent when you cannot define the full path in advance.
Which should you choose?
Start with a workflow. Add an agent when the task needs decisions that fixed rules cannot handle well.
You can also combine them: a workflow controls the overall process, while an agent handles one uncertain step.
In either case, define what the system can access, which actions need approval, and when it must stop.