An agent picks its own next step
An AI agent is a program that uses a language model to decide its next step. It then acts through tools, such as a search, a database or your email.
It works in a loop. It reads the task, picks a step, uses a tool and reads the result.
Then it picks the next step. It stops when the job is done or it hits a limit you set.
Anthropic describes agents as models using tools in a loop, steered by each result. OpenAI's guide stresses independence, meaning the agent carries out a task for you with little help.
How it works in practice
Take an agent that handles supplier invoices. It opens a new email, reads the PDF and looks up the supplier in your accounts.
If the amounts match the order, it drafts the entry. If they don't, it writes a note for a person and moves on.
Nobody wrote a rule for each supplier's layout. The model reads each one and chooses which tool to use next.
The parts are few. There is a model, some tools, written instructions and limits on what it may do.
The limits matter most. They decide what the agent can read, change and spend.
What gets mistaken for an agent
Three things are often sold as agents.
- A chatbot. It answers questions in a window. If it can't act through tools, it doesn't do the work itself.
- A workflow with one model step. The steps are fixed in code, and a model reads or writes one part. Anthropic calls this a workflow. It behaves the same way each time, so it is often the better choice.
- A script or automation. It follows rules someone wrote, with no model at all. It is cheap and predictable. In our experience, it covers most steps in a back-office job.
The lines blur in practice. A product sold as an agent may be a fixed workflow underneath, and that is often good news.
What it means for a buyer
The freedom to choose steps makes an agent useful. It also makes the agent slower, more costly per job and harder to test.
Each extra step is another chance to go wrong. Both Anthropic and OpenAI advise starting with the simplest design that works.
So a good build uses an agent only where a step needs judgement, such as reading a messy document. Everything else should be plain code, which does the same thing each time and costs almost nothing to run.
An agent also acts with your keys. Its permissions decide how much harm a wrong step can do.
What to ask before you buy one
- Which steps use a model, and which are plain code?
- Which tools can it use, and with which permissions?
- What does it do when it isn't sure?
- Which actions wait for a person to approve?
- How was it tested, and on whose cases?
A builder who knows the system can answer each of these in a line. If the answers stay vague, ask for them in writing.
