Agent vs workflow vs chatbot — what's the actual difference?
- Chatbot — prompt in, text out. No tools, no state beyond the conversation.
- Workflow — LLM calls wired together on a path you defined: classify → retrieve → summarise → format. The model fills in steps; your code decides the order.
- Agent — the model decides the control flow: which tool to call next, how many times, and when it's finished. Your code defines the tools and the boundaries, not the sequence.
The distinction that matters in practice: with a workflow you can reason about every path and test it; with an agent you can't enumerate the paths, so you need guardrails, budgets and observability instead.
Most production "agents" are workflows with one or two agentic steps — and that's usually the right design.