AI glossary

AI Agent

An AI agent is a software system that uses a model, usually a large language model, to autonomously pursue a goal. It perceives its environment or task context, decides which action to take next, executes that action (often by calling a tool or API), and observes the result, repeating this cycle until the goal is met or it stops.

Think of an AI agent not as a passive responder, but as an active worker. While a traditional program follows a fixed script—“if X happens, do Y”—an AI agent is given a high-level objective and the freedom to figure out the steps required to achieve it. It might need to search for information, write code, or update a database. The agent breaks down the goal, executes the necessary actions, and adjusts its approach based on what it observes, all without constant human hand-holding at every single step.

Core components of an AI agent

To function autonomously, an AI agent relies on four distinct components working in concert. Understanding these parts clarifies what is an ai agent at a structural level.

The Model

This is the reasoning engine, typically a Large language model. The model interprets the current context, including the goal, available tools, and memory, to decide what action to take next. It doesn’t just generate text; it generates structured decisions about which tool to use and with what parameters.

Tools

Tools are the functions the agent can call to interact with the world beyond its own internal knowledge. These might include a web search API, a code execution environment, file system access, or third-party services like a CRM or calendar. Tools allow the agent to act on its decisions rather than just talking about them.

Memory

Memory allows the agent to retain information during a task and sometimes across tasks. Short-term working memory holds the current state of the task, such as the results of previous tool calls. Long-term memory can store persistent data, like user preferences or learned patterns, enabling the agent to improve over time or maintain context across sessions.

Planning and Control Loop

This is the logic that orchestrates the other components. It decides the next action, checks whether the goal has been achieved, and enforces constraints. For example, it might limit the agent to a maximum number of steps or a specific budget of API calls to prevent infinite loops or excessive costs.

How an AI agents work

The operational cycle of an AI agent is iterative. Here is the typical flow:

  1. Receive Goal: The agent receives a task, often as a natural-language instruction.
  2. Reason: Using the model, the agent analyzes the current state and decides which action would best move it toward the goal.
  3. Act: The agent executes the chosen action, such as calling a search tool or running a piece of code.
  4. Observe: The agent observes the outcome of that action. If the tool returns data, the agent processes it. If an error occurs, the agent notes it.
  5. Update and Repeat: The agent updates its understanding of the task state based on the observation. It then repeats the reasoning and acting steps until the goal is met, a stopping condition is reached, or a step limit is hit.

This loop allows the agent to handle complex, multi-step tasks that require dynamic decision-making. For more on how agents learn from their actions over time, see Reinforcement learning.

AI agent vs chatbot

The distinction between an AI agent and a Chatbot is often blurred in marketing, but the functional difference is significant.

A standard chatbot is primarily reactive. It responds to a user’s message with a single generated reply. It might retrieve information from a knowledge base, but it generally does not take further actions or call external tools in a loop. If you ask a chatbot to “book a flight,” it might give you options, but it won’t actually book the ticket or check your calendar availability without you manually triggering each step.

An AI agent goes further. It can take actions, observe results, and continue working through multiple steps toward a goal without a new prompt from the user at every step. It plans, executes, and adapts. While a chatbot is a conversation interface, an agent is a problem-solving entity.

AI agent vs agentic AI

It is important to distinguish between the specific implementation and the broader paradigm.

“AI agent” describes one specific implementation: a single system built to act autonomously on a task. It is a concrete piece of software with defined components.

Agentic AI” is the broader term for the paradigm or category of systems designed this way. It encompasses the philosophy and architecture of autonomous systems, which can include one agent or several agents working together in orchestration. This glossary focuses on the single agent; for the wider ecosystem, see the Agentic AI page.

Types of AI agents

AI agents vary in complexity and scope.

Single-task agents

These are built to handle one narrow job, such as answering support questions using a defined set of tools. They are highly specialized and less prone to deviation.

Multi-step task agents

These handle a broader goal that requires planning across several actions. For example, researching a topic and compiling a report involves searching, reading, synthesizing, and formatting. These agents must manage intermediate states and dependencies between steps.

Tool-using agents

These are specifically built around calling external APIs, running code, or querying databases as part of completing a task. Their value lies in their ability to interact with external systems, not just generate text. See Model Context Protocol for standards on how these tools connect to models.

Examples

Concrete examples help illustrate the practical application of these systems.

A coding agent

This agent reads an error message from a test run, edits the source file to fix the bug, runs the tests again, and iterates until the tests pass. It autonomously navigates the codebase and debugging process.

A research agent

This agent searches the web for information on a specific topic, reads multiple sources, synthesizes the findings, and compiles a summary with citations. It manages the workflow of gathering and processing information without human intervention at each stage.

A customer-support agent

This agent looks up order information in a database, processes a return request, and updates the customer’s status. If a case falls outside its predefined rules, it escalates to a human, utilizing Human-in-the-loop principles for complex exceptions.

FAQ

What is an AI agent?

An AI agent is a software system that uses a model, usually a large language model, to autonomously pursue a goal by perceiving context, deciding on actions, executing them via tools, and observing results in a loop.

How do AI agents work?

AI agents work by receiving a goal, reasoning about the next best action, executing that action (such as calling an API), observing the outcome, and repeating this cycle until the goal is achieved or a limit is reached.

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

A chatbot responds to messages with a single reply and typically doesn’t take independent actions. An AI agent can take actions, observe results, and work through multiple steps toward a goal without needing a new prompt for each step.

What are the core components of an AI agent?

The core components are the model (reasoning engine), tools (external functions it can call), memory (short-term and long-term storage), and a planning/control loop that manages the decision-making process.