Eren Ünalsan

BlogArticle

  • AI
  • tools

What is an AI agent? How is it different from a chatbot?

2 min readEren Ünalsan

"AI agent" shows up in every announcement these days. This post answers a simple question: what separates an agent from a chatbot, and what do I gain from knowing it?

A chatbot answers, an agent does the work

You ask a chatbot a question and it returns text. An agent takes a goal and moves toward it step by step: it reads files, runs commands, searches the web, calls an API, checks the result and changes course if needed. The difference is that the model does not just talk; it can change something in the outside world through tools.

Coding agents are the best-known example: when you say "fix this bug", it walks through the project files, makes changes and runs the tests. I covered the more technical side of this in my post on agentic coding tools.

How does an agent work?

At its core, most agents are a loop:

agent-looppseudocode
# until the goal is done or someone stops it
while not goal_done:
    plan = model.think(goal, history)
    result = run_tool(plan.tool, plan.input)  # file, command, search...
    history.append(plan, result)

In every turn the model picks the next step, a tool runs, and the result goes back to the model. That is why a mistake can get expensive: if the model does something wrong in one turn, later turns build on top of that mistake.

What are we seeing in the news?

In recent weeks, secondary sources reported tests of always-on agents that keep working between conversations, and a data platform announcing an agent that asks for human approval before changing production. The details of these reports vary from source to source, so I am not naming products or dates. The common thread is clear: the industry is giving agents more autonomy while keeping human approval on critical steps.

My rules

When I use an agent I watch three things. First I keep its permissions narrow: only the folder and commands it needs. Then I leave approval on for irreversible actions (deleting, publishing, paying). Finally I read the change it made; "it worked" is not enough.

Agents really are useful, but I get the best results when I do not hand over responsibility for the work.