Plain-language explainer
Agent or chatbot: the difference is the loop
What is the difference between an AI agent and a chatbot?
The model is the same. A chatbot takes your message and answers once. An agent decides on an action, runs a tool, reads what came back, and decides again, repeating until it judges the goal met. That loop is the whole difference, and it changes everything around it: an agent needs tools, permissions, a step limit and a place for a human to approve anything irreversible. A chatbot that can search the web once is still a chatbot. What makes it an agent is choosing the next step for itself.
Last reviewed
Do not just read it. Operate the mechanism yourself in a short interactive lesson.
See it work: The harness: the loop, made real βFree, no code, no signup.
What people get wrong
- Agents use a smarter model. They usually use the same one. The loop, the tools and the guardrails are what is new.
- Anything that calls a tool is an agent. One scripted tool call is a feature; deciding which tool to call next, repeatedly, is the loop.
- An agent is more reliable because it can check its work. Errors compound across steps, so a small per-step failure rate becomes a large end-to-end one.
Where you see it in real products
- A chat assistant answering a question in one turn.
- A coding agent that reads files, edits, runs the tests and tries again.
- A support system that looks up an order, issues a refund, and asks a human before anything above a threshold.
Common questions
- Do I need an agent, or is a chatbot enough?
- If the task is one question and one answer, a chatbot is enough and it is cheaper, faster and easier to debug. Reach for an agent when the work genuinely needs several dependent steps whose order you cannot know in advance.
- Why do agents fail in ways chatbots do not?
- Because each step feeds the next. A misread tool result, a page that loaded slowly, an action repeated in a loop: any of these can send the rest of the run somewhere useless, and the model will narrate it confidently the whole way. Step caps and approval gates exist for exactly this.
- What does an agent actually need that a chatbot does not?
- Tool definitions it can choose between, a budget of steps, somewhere to keep what it learned across turns, and a boundary around anything irreversible. Most of the engineering in an agent is that surrounding harness, not the prompt.
Related explainers
More in Agents and tools
Part of See How AI Works, a free interactive course, where you learn how modern AI works by operating it, not watching videos.