“Agent” has become the word attached to everything. But not everything that uses a language model is an agent, and not every problem needs one. Telling the two cases apart saves a lot of cost and a lot of surprises.

Fixed workflow versus agent

In a fixed workflow, you decide the steps: extract the invoice data, validate it, store it. The model does a specific task at each step. In an agent, the model decides what to do next: which tool to use, what to look up, when it's done. That freedom is both its advantage and its risk.

When an agent is worth it

  • When the steps can't be known in advance: investigating an issue, debugging code, answering open questions that require several sources.
  • When the result can be checked: tests pass or fail, numbers reconcile or don't.
  • When the cost of a mistake is acceptable or a person reviews the result before it takes effect.

If the process is always the same, a fixed workflow is cheaper, faster and easier to debug. Many vendors' own guides recommend starting with the simplest option and adding autonomy only when needed.

The limits I'd design in from the start

  1. Least privilege. The agent should only be able to use the tools and data its task needs. Reading is not writing, and writing is not deleting.
  2. Human confirmation for anything irreversible. Sending, paying, deleting or publishing require explicit approval.
  3. Step and spending caps. An agent that can't finish may keep trying indefinitely if nothing stops it.
  4. Distrust external content. A web page or an email the agent reads may contain malicious instructions (prompt injection). What it reads is information, not orders.
  5. A log of what it does. Every tool used and every decision, so you can understand what happened when something goes wrong.

The useful question

Before “how do I build an agent?”, ask: do I need the model to decide the steps, or just to do each one well? Most business cases I've seen work well start with the latter.