AI glossary

What Is an AI Agent?

Term2 min readUpdated June 13, 2026

In short

An AI agent is a software system that uses a large language model to pursue a goal by deciding what to do next, taking an action, observing the result, and repeating that loop until the task is done. The key difference from a normal chatbot is the loop and the tools: instead of just replying with text, an agent can call tools (search the web, run code, query an API, edit a file), read what comes back, and adjust its next step. So an AI agent is the model plus the ability to act and the autonomy to choose its own steps toward an outcome you set.

Agent vs chatbot vs assistant

A chatbot answers one message at a time and forgets to act on the world. An AI agent is given a goal and works toward it across multiple steps, choosing actions on its own. The line is autonomy plus tool use, not the underlying model.

  • Chatbot: you send a message, it replies with text. No actions, no loop.
  • Assistant: helps with a task but you drive each step.
  • AI agent: you set a goal, it plans, calls tools, checks results and iterates until done.

The agent loop

Almost every AI agent runs the same loop: the model reads the goal and current state, decides on an action, the system executes it (a tool call), the result is fed back in, and the loop repeats. This perceive, decide, act, observe cycle is what lets an agent handle work that a single prompt cannot, like fixing a failing test or shipping a small feature end to end.

A concrete example

A coding agent like Claude Code is a clear example. You ask it to "add a contact form and make the tests pass". It reads your files (a tool), writes new code (a tool), runs the test suite (a tool), sees a failure, edits the code again, and reruns the tests until they are green. You set the goal once; the agent chose and executed every step in between. That is the agentic difference in practice.

Frequently asked questions

Next step

Ready to put AI to work as a real workflow?

Start with the foundations course, keep your progress locally and sync everything to your free account whenever you like.