What an AI agent is
Part 1 · The basics3 minA chatbot answers from what it already knows. An agent can also go and do things: search, open pages, click. Follow one question through the loop that makes an agent.
It starts with a question
Someone asks an AI assistant: “Is the Hario V60 in stock at Bean & Brew, and what does it cost?”
The answer exists, on the shop’s own product page. The question is whether the assistant can get to it, and nobody at the shop will see it try.
This is the hard kind of question for an AI: the answer changes from day to day, and it lives on one particular website.
Why it matters. The answer is on the shop’s page. The assistant either reads it there, or answers without the shop.
A chatbot only remembers
At its centre is a language model: a program trained on a huge amount of text, which writes a reply one word at a time.
On its own, a model only has what it read in training, which stopped on a date. So the honest reply is I can’t check that; the dishonest one is a confident guess.
- Training cutoff
- The date the model’s reading stopped. Anything after it, the model has never seen.
Why it matters. Without a way to read a site, an AI can only repeat what it once read about it, if it read anything at all.
An agent has tools
Now give the same model tools: search the web, open a page, click and type in a page.
The model does not run the tools itself. It writes a request, such as “search for this”, and the program around it does the search and hands back what came out. A model with tools, in that program, is an agent.
- Tool
- Something the program can do for the model: search, fetch a page, click a button.
Why it matters. Every tool call that opens a page is a real request to a real website. That request is where a site comes in.
Think: what do I need?
The agent starts by working out a plan in words: “I need the shop’s own page. Search for it first.”
Writing the plan down is not decoration. The model reads its own plan on the next round, and it keeps it on track.
This is the first of three moves it will repeat: think, act, observe.
The plan can change. If the search turns up nothing useful, the next round’s thinking says so and tries something else.
Why it matters. An agent works through its plan one step at a time. A step it cannot finish on one site sends it to another.
Act: call a tool
It asks for the search tool, with the words to search for. The program runs the search, the same way you would type into a search box.
The request is not a click. It is a short piece of structured text: the tool’s name and what to give it.
The model waits. Nothing on the web has been read yet.
Every assistant has its own list of tools, each with a name and a short description. The model picks from that list, like a menu.
Why it matters. So far everything happened inside the assistant. A site only sees the agent when it opens a page.
Observe: read the results
The search results come back as text and are added to everything the model has read so far. The first result is the shop’s page for the V60.
The model rereads all of it before every move. That growing pile of text is all it knows about this task.
- Context window
- Everything the model has in front of it for this task. It has a size limit, so very long pages get cut.
Why it matters. Everything the agent knows about a site is in that pile of text. What is not in it, it cannot use.
Again: open the page
Round two. It thinks “open that result”, calls the tool, and gets the page back as text: “Hario V60 Dripper · €24.00 · In stock”.
Opening a page is a visit to someone’s website. What the agent reads is whatever that site sends it.
Most agents do not see the page the way you do: they get the text the server sends, often without running its scripts, and a slow page can be dropped.
Why it matters. What the server sends is what the agent reads. A price drawn later by a script, many agents never see.
Stop when it can answer
With the price and stock in front of it, the model decides it has enough and writes the answer: “Yes, it’s in stock at Bean & Brew for €24.00, per the shop’s product page.”
The loop ends there. Two tool calls, a few seconds.
Had the page not answered, it would have gone round again: another result, another page, until it could answer or gave up.
Why it matters. The visit takes seconds and nobody watches it. A page has one chance to carry the answer.
That loop is the agent
Think, act, observe, and again, until it can answer. Every AI agent works this way, whether it is answering a question, booking a table or buying something.
Some agents only read: they search and open pages. Others drive a real browser and click buttons and fill in forms.
Why it matters. Every “open a page” lands on somebody’s website, and what that site sends back decides what the agent can do.