Articles
What is an AI agent, and when does it make sense?
An AI agent picks its own steps and works in your systems. How it differs from a fixed workflow, when it makes sense in a business, and what can go wrong.
An AI agent is a language model that has been given tools and decides for itself which steps to take to get a task done. It makes sense when the task cannot be written down as a fixed sequence, and when mistakes can be caught and corrected before they cost anything. If you can draw the task as a flowchart, a fixed workflow is nearly always the better choice: cheaper, faster and more predictable.
The rest of this article explains the difference, what an agent needs from you, and where it does not belong.
How is an agent different from a fixed workflow?
"Agent" is used for very different things, so a sharp definition helps. I use the one Anthropic gives in Building effective agents, which separates two kinds of system:
- Workflows: the language model and the tools are wired together in an order decided in advance, in code. Read the email, find the customer, write a draft. The model fills in each step but does not choose the route.
- Agents: the model directs the process and its own use of tools. It gets a goal, looks at the result of each step and decides what to do next.
The same article describes agents in sober terms, as language models using tools in a loop, guided by feedback from their environment. I find that a useful correction. An agent is not a digital employee with judgement. It is a program that tries something, reads the result and tries the next thing.
Anthropic also notes that some people say "agent" about systems that are really predefined workflows. If you are offered "an agent", ask which of the two it is. A workflow is not the lesser answer. Often it is the right one.
How does an agent work in practice?
Example: An agent is asked to find out why an order is late and draft a reply to the customer. It looks up the order, sees that one item is missing, checks the stock system, finds the supplier's expected delivery date and then writes the draft. Had the item been in stock, it would have looked at the shipment instead. Nobody wrote down in advance which way it should go.
Three things have to be in place for that to work:
- Tools. An agent can only do what it has access to: look something up, read a document, send a message. Each of those is something a person built and gave permission for.
- Feedback. It has to be able to see whether a step worked. Anthropic's article stresses that the agent needs facts from its environment at every step, such as the result of a lookup.
- Stops. The article mentions that agents can pause for a person at checkpoints, and that it is common to cap how many steps they may take.
When does an agent make sense?
Anthropic's advice is to find the simplest solution that works and add complexity only when it demonstrably improves the outcome. According to the article, that can mean not building an agentic system at all. Agents are the better fit for open-ended problems, where you cannot predict the number of steps or lay down a fixed path.
For a smaller business I boil that down to four questions:
- Does the route change from case to case? If half the cases need something different from the other half, and you cannot write the rules down, that points to an agent. If you can write them down, do, and build a workflow.
- Is the information it needs in systems it can be given access to? An agent that cannot look anything up is just a chatbot.
- Can the result be checked? Either by a person who approves it, or because the system itself can tell whether the task is done.
- Is there enough of the task? An agent costs more to build and run than a fixed workflow. There has to be enough volume to carry that.
Four yeses make an agent worth trying. If the first one is a no, a workflow will serve you better. I have written more generally about which tasks suit AI automation.
When should you leave it alone?
Anthropic's article is direct about the price of that freedom: the autonomy of agents means higher costs and the potential for compounding errors. A wrong lookup in step two becomes a wrong conclusion in step five. Agentic systems, the article says, often trade latency and cost for better task performance, and you should consider when that trade is worth it.
I would leave it alone when:
- the task follows the same steps every time,
- a quick answer matters more than a thorough one,
- the agent would be able to do something that cannot be undone without a person seeing it first: move money, delete data, write to customers,
- nobody in the business has time to watch what it does during the first weeks.
That last one is easy to miss. An agent is not finished when it is built. Anthropic recommends extensive testing in sandboxed environments along with appropriate guardrails, and that applies in a small company too: let it work on copies or drafts before it is allowed to touch anything real.
What can go wrong, and how do you limit it?
The main risk has a name. OWASP, which publishes widely used lists of software security risks, calls it Excessive Agency: an AI system is able to carry out damaging actions because it was given too many functions, too broad permissions or too much autonomy.
OWASP's own example is easy to picture. An assistant gets access to a mailbox in order to summarise incoming mail. The tool it uses can also send mail. An incoming email with hidden instructions gets the assistant to search for sensitive information and forward it. Nothing was hacked in the classic sense. The assistant was simply allowed to do more than the job required.
The countermeasures OWASP recommends are ones you can ask for from whoever builds your solution:
- Only the tools the task needs. If the agent is there to read, it should not be able to write.
- Permissions as narrow as possible in the systems it reaches, enforced in those systems and not by asking the model to behave.
- Human approval before high-impact actions.
- Logging, so you can see afterwards what it did. OWASP lists logging and limiting how many actions it can take as ways to reduce the damage.
If the agent handles personal data, the ordinary rules for that apply here as well. This is not legal advice; check your own situation.
Where do you start?
Start with the task, not the word. Describe what needs solving and which systems it touches, and let the form follow from that. In many cases the answer turns out to be a fixed workflow with one or two steps where a language model reads or writes, and that is perfectly fine.
If it is going to be an agent, begin with one that may only read and draft, and let a person press send. Give it more permissions once you have watched it work.
If you are unsure which form your task calls for, that is what I sort out in an AI check for €350. And if you want to see it work on your own data, I build a working prototype in two weeks in an AI Sprint for €3,350. There is more on prices in What does it cost to have an AI solution built?