What Is an AI Agent? Definition, Examples, and Key Differences
What an AI agent is, explained from scratch: definition, what it's for, real examples, and how it differs from a chatbot and from a model like GPT.
An AI agent is a program that uses a language model to decide what to do and can then actually do it: it queries data, executes actions on external tools, and repeats that cycle until it completes the goal you gave it. A chat replies to you. An agent acts.
To follow the rest of this you only need to know what a language model, or LLM, is: the system that generates text by predicting which word comes next, and that on its own can’t touch anything outside the conversation. If that sounds like gibberish, start with what an LLM is, explained without the jargon and come back here. I’ll define everything else as it comes up.
What an Agent Does That a Chat Doesn’t
Imagine asking a friend for something. Version one: “tell me what Italian places are nearby.” You get a list back, and the work is still yours. Version two: “book me a table for tonight.” Now your friend calls the restaurant, finds out nine o’clock is full, tries ten instead, and comes back with either a confirmed reservation or the reason it didn’t work out.
The second version is an agent.
Two things change compared to a chat. The first is tools: functions the model can call, like searching the web, reading a file on your computer, or calling your company’s API. The second is that it works in a loop. The agent executes an action, looks at the result, and uses that information to decide the next one. If something fails, it tries a different approach instead of handing you a polished, wrong answer.
I cover how that loop works internally, step by step, in how an AI agent works: the cycle explained step by step. And if what you want is the term itself, with a minimal example, that’s in what an agentic loop is.
AI Agent vs Chatbot: Where the Line Is
A chatbot converses and an AI agent executes. That’s the real dividing line, and it has nothing to do with how smart either one seems.
| Chatbot | AI Agent | |
|---|---|---|
| What it gives you | Text | Text plus real changes: a modified file, a created ticket, a checked order |
| How many times it thinks | Once per message | As many times as it takes, in a loop |
| If it gets it wrong | It gives you a bad answer and you catch it | It can correct itself after seeing a tool’s error, or it can mess up your systems |
| Who does the work | You, with its help | It does, with your oversight |
Pay attention to that last row, because it’s what separates a demo from a real project. An agent with permission to write to production is an agent that can break things in production.
The Difference Between an AI Agent and an AI Model (GPT, Claude)
The model is the part that decides; the agent is the whole system built around that decision. GPT, Claude, and Gemini are models: they take in text and return text. Nothing more. They have no memory between calls, no hands, and no idea what time it is unless you tell them.
To turn that model into an agent, someone has to add the tools it can use and the loop that lets it try again. And a stopping condition, because otherwise the agent just keeps going in circles until you run out of budget. Someone — a developer, or a ready-made product — has to build that wrapper.
That’s why the question “which agent should I use, GPT or Claude?” is framed wrong. You choose the model that decides, and separately, you decide what you let it touch.
What an AI Agent Is Good For: Real Examples
It’s good for multi-step tasks where the result can be checked. Four that exist today and you can go look at yourself:
- Coding. Claude Code reads your repository, edits files, runs the tests, and opens the pull request. You review the plan and approve the changes.
- Browsing for you. ChatGPT’s agent mode works on top of a virtual browser: it sees the screen, clicks, fills in forms, and narrates what it’s doing. It’s available on paid plans.
- Researching. A research agent goes through dozens of sources, cross-checks them, and gives you back a report with the links, instead of a made-up paragraph.
- Internal support. The typical case at a company: a return email comes in, the agent looks up the order in the system, checks whether it fits the refund policy, and processes it. If it doesn’t qualify, it escalates to a person instead of improvising. What matters here is that the refund gets processed without anyone opening the order system by hand.
Notice the pattern: in all four cases there’s an action with consequences and a way to verify whether it went well.
When an Agent Isn’t the Answer
If the task has a single step and fixed rules, a plain script beats an agent on cost, speed, and predictability. An agent burns tokens on every turn of the loop, takes longer, and the model inside it can hallucinate — that is, confidently state something that isn’t true.
Before building one, ask two questions: does the task have several steps that depend on each other? Can you automatically check whether the result is correct? If either answer is no, a script will solve it for a lot less money. And then there’s the question almost nobody asks: the day it gets something wrong, who reviews it?
If you want to go from understanding what an agent is to seeing how they’re built, with the patterns used by teams that put them into production, that’s what I cover in the course AI Agent Design Patterns.
When someone tries to sell you an AI agent, the useful question isn’t which model is inside it. It’s what tools it can touch and what happens when it gets something wrong.
When an agent hands part of the work to others, the word subagent shows up: agent vs subagent in Claude Code, what sets them apart.
Frequently Asked Questions
Is an AI agent the same thing as a chatbot?
No. A chatbot returns text within the conversation, and that’s where its job ends. An AI agent uses tools to execute actions that have effects outside the conversation (reading a database, modifying a file, creating a ticket) and repeats that cycle until the task is done. An agent can have a chat interface, but what defines it is what it does, not how you talk to it.
Is ChatGPT an agent?
It depends on how you use it: as a regular chat, no; with agent mode turned on, yes. There, it opens a virtual browser, clicks, fills in forms, and decides the next step based on what it sees on screen.
What’s the difference between an AI agent and an AI model like GPT or Claude?
The model decides, the agent executes. GPT and Claude are models: text goes in, text comes out, and they can’t touch anything on their own. An agent is that model wrapped in the tools it can call and a loop that lets it retry by seeing the result of each action, with a stopping condition that tells it when to finish. Switching models means swapping the brain; the rest of the system is still yours to build.
What is an AI agent useful for in a company?
For repetitive, multi-step tasks whose result someone can verify: processing returns by checking the order system, or putting together a report by cross-referencing several internal sources. The practical rule is simple: if nobody can check whether the result is correct, don’t automate it with an agent yet.