What is an AI agent?

In brief

An AI agent is software where an AI model uses tools in a loop it runs itself. It acts, checks the result, and picks the next step until the job is done. Take away the tools and you have a chatbot. Take away the model's control of the loop and you have plain automation.

People call almost anything an "agent" — from a simple scripted chatbot to a system that rewrites code on its own. Here is a definition tight enough to actually help.

Fig. 01 — the loop: act, observe, decide again

The textbook definition is older than today's AI wave: an agent is anything that senses its surroundings and acts on them to reach a goal [1]. What changed with large language models (the AI models that read and write text) is who makes the decisions. In the modern sense, an AI agent is a system where the model steers its own work — it picks the next step, chooses which tools to use, and decides when the job is done, instead of following a path a developer set up in advance [2].

Every serious description names the same three parts: a model that thinks, tools that let it read and change things (search, running code, other software, files), and a loop — act, check the result, decide again — with instructions and safety rules around it [3] [4]. Take away the tools and you have a chatbot: it can only talk. Take away the model's control of the loop and you have automation: useful, but it breaks the moment things stray from the script.

An agent is a model using tools in a loop it runs itself.

Why does the difference matter?

Because freedom has a price. A system that picks its own steps is flexible, but it is slower and less predictable. It can also fail in ways a fixed workflow cannot — using the wrong tool, looping without end, or stopping too early while sounding sure. The advice from the AI labs themselves: start with a plain prompt or a fixed workflow, and only hand the loop to the model when the task is truly open-ended [2]. The other guides — the types of agents, the ways to test them, the order to build them in — exist because of that trade-off.

Airliner cockpit at dusk, instrument panels lit, autopilot flying
Plate 01 — an autopilot in the loop: sense, decide, act, repeat Photo — Andrés Dallimonti, Unsplash

Sources

  1. Russell & Norvig — Artificial Intelligence: A Modern Approach (the classic agent definition)
  2. Anthropic — Building effective agents, 19 Dec 2024
  3. OpenAI — A practical guide to building agents (PDF), 2025
  4. Google — Agents whitepaper (Wiesinger, Marlow & Vuskovic), Sep 2024

Frequently asked questions

What is an AI agent in simple terms?

An AI agent is software where an AI model does more than answer questions. It takes actions using tools — searching, running code, using other software — then checks the results and picks its own next step. It repeats this until the job is done or it needs help.

What is the difference between an AI agent and a chatbot?

A chatbot only talks: you type, it replies, and a person acts on every answer. An agent acts on things itself through tools, and it runs its own loop. The same model can power both — the difference is tools plus freedom to act, not intelligence.

Is an AI agent the same as automation?

No. Automation follows a path a developer fixed in advance, and it breaks when things stray from the script. An agent picks its own steps, so it can handle surprises — but it is slower, costlier, and less predictable. Fixed, well-understood tasks still belong in automation.