This sounds like an architecture question, but it’s really a product decision.
A common mistake is to make an LLM “agentic” simply because the technology allows it.
If the process is predictable, a workflow is often better:
Input → validation → retrieval → business logic → action → approval
You get clearer failure modes, easier testing, predictable costs, and better control.
An AI agent becomes more useful when the path cannot be completely predefined, for example, when the system needs to decide which tools to use, what information to retrieve, or what sequence of actions will solve the task.
Anthropic makes a similar distinction between workflows, where the application controls the process, and agents, where the model dynamically directs its own tool use.
How do you decide?
Ask these questions before adding agentic complexity:
How predictable is the task?
If 90% of requests follow the same path, start with a workflow.When does the system need to make decisions?
If it genuinely needs to choose between tools, data sources, or approaches, an agent may make sense.Which actions can the model execute?
Don't give an agent broad access just because an API exists.
OWASP's 2025 LLM guidance specifically highlights Excessive Agency: unexpected or manipulated model outputs can cause damaging actions when systems give LLMs too much authority.
- How will you evaluate it? “Looks good in testing” isn't enough.
Track things like:
- task success rate
- tool-call accuracy
- retrieval quality
- hallucination/error rate
- latency
- cost per task
- human escalation rate
- What happens when it fails? A production AI system needs an explicit failure path — retry, fallback model, human approval, or safe termination.
NIST's Generative AI Profile also treats risk management as something that should span the AI lifecycle rather than being added after deployment.
The practical rule
Use a workflow when you know the path.
Use an agent when the system genuinely needs to determine the path.
More autonomy doesn't automatically mean a better AI product.
Sometimes the most technically mature decision is not to use an agent.
That distinction matters when moving from an AI demo to something people can actually depend on.
Useful references:
Anthropic — Building Effective AI Agents
OWASP — LLM & GenAI Security Risks
NIST — Generative AI Risk Management Profile
Top comments (0)