DelegIA
Get started

What is an AI agent?

An AI agent is a program that receives a goal and chooses the steps needed to reach it. It looks up the information it needs and uses software it has access to, such as email, a CRM, or a spreadsheet. After each step, it checks the result before moving on.

Albert López·Founder of DelegIA·Updated

Also called
Artificial intelligence agent
Type
Concept
Related to
LLM, chatbot, RAG, MCP
Reading time
8 minutes

What is an intelligent agent in AI?

The term agent has been used in textbooks for decades. Stuart Russell and Peter Norvig devote a chapter of their widely used artificial intelligence textbook to intelligent agents, which they define as systems that perceive their surroundings and act on them. A thermostat that turns on the heat is an example of an intelligent agent under that definition, even though it does nothing especially clever. [1]

Language models, such as those used by ChatGPT, Claude, and Gemini, have changed what these programs can do. A program can now read an email regardless of how it's worded, understand the request, and choose what to do next. Today, when people talk about artificial intelligence agents, they usually mean a language model with permission to use tools and work toward a goal.

You may also see them called generative AI agents. These agents use generative AI, which can write text or create images, to reason and write what each step requires.

The same word, two eras

  1. 1ThermostatSenses the temperature and follows a fixed rule
  2. 2AI agentA language model with tools that works toward a goal

What an AI agent can do

Suppose a customer emails your company's shared inbox with the subject line "Order 2214: two boxes missing."

With fixed-step automation, someone defines the path during setup. It may use AI to recognize that the email reports an order issue, but it always takes the same action afterward, such as forwarding it to Operations.

An agent with the goal of resolving order issues and permission to read the company's ERP system chooses its next step based on what it finds:

  1. Look up the order

    It looks up order 2214 and opens its packing slip.

    Received emailOrder 2214

    Subject
    Two boxes missing
    Packing slip
    Opened
  2. Ten of the twelve boxes shipped

    If the packing slip shows that ten of the twelve boxes ordered were shipped, the mistake happened in the warehouse. The agent drafts a reply about shipping the two missing boxes and prepares a notification for Operations.

    Packing slipWarehouse

    Ordered
    12 boxes
    Shipped
    10 boxes
    Prepares
    Reply and notification for Operations
  3. All twelve boxes shipped

    If all twelve boxes shipped, the problem is in transit. The agent checks the carrier's tracking information and drafts a reply based on what it finds.

    Packing slipShipping

    Ordered
    12 boxes
    Shipped
    12 boxes
    Checks
    Carrier tracking
  4. The order does not exist

    If the number doesn't match an order, the agent passes the email to a person without replying. It includes a record of what it searched.

    Order not foundHuman review

    Order 2214
    Does not exist
    Reply
    None
    Passes to
    A person, with the search record

In this example, the agent can read and prepare drafts, but it can't send them. A person reviews its work, replies to the customer, and requests the replacement shipment. You can expand the agent's permissions once it has shown it can handle the task correctly. Choosing each step using the tools and permissions you've given it is one of the defining characteristics of an intelligent agent. Other examples include an intelligent agent that prepares a quote from an inquiry or checks a supplier's invoices.

How it differs from automation, a chatbot, or an assistant

These four terms often get mixed together, and many products combine several of them. The difference between an agent and automation is who chooses the path. In automation, a person defines it during setup, even if it branches or uses AI for one step. An agent's model chooses the path as it goes, using the tools available to it. Anthropic, the company behind Claude, makes this distinction: workflows follow paths defined in code, while agents decide what to do and which tool to use. [2]

Chatbot and assistant describe how you interact with the program: by having a conversation or asking for help. So a chatbot can have an agent behind it, and an assistant can have an agent mode.

TermWhat it tells you about the program
AutomationA person defines the path during setup
AgentThe model chooses the path as it goes
ChatbotYou interact with it through conversation; it can have an agent behind it
AssistantYou ask it for help; it can have an agent mode

The full comparison, with examples of each, is in the article "AI agent vs chatbot: how assistants fit in."

How an AI agent works

OpenAI's guide to building agents describes three parts of an intelligent AI agent's architecture: the model, tools, and instructions. These explain how agents work; any additional components depend on the task. [3]

The modelA large language model, or LLM, trained on vast amounts of text to read and write in human language. It handles understanding and reasoning and can come from OpenAI, Anthropic, Google, or another provider.
ToolsThe software the agent can use to look up an order in the ERP, read a packing slip, write to a spreadsheet, or draft an email. Without tools, a language model can only return text. Tools connect through an API, an interface that lets one program request data from another, or through MCP, a standard for connecting agents to software.
InstructionsYour company's rules in writing: the agent's goal, what it can and can't do, what tone to use, and when to ask for help.
  1. Choose a stepUsing the model and instructions
  2. Take the stepUsing a tool
  3. Check the resultWhat the tool returned
  4. Choose the next stepUntil the goal is met or it encounters something it cannot resolve
Diagram of an autonomous AI agent's architecture and workflow: the three basic parts in OpenAI's guide [3] and the loop the agent follows.

The agent repeats this loop until it reaches its goal or runs into something it can't resolve. Planning lets it break a long task into steps and change their order when something doesn't go as expected, as in the packing slip example.

An autonomous AI agent's architecture may also include the following components, depending on the task:

  • Task memoryA record of what the agent has already done on the current task so it doesn't repeat steps. Many agents need only this kind of memory.
  • Information saved between tasksData kept for the next task, such as a customer's preferences or an earlier correction.
  • Document retrievalFinding the passage it needs in a manual, price list, or contract before answering. Using those passages to write an answer is called RAG.

Using an agent doesn't retrain the model inside it. What can change is the information it saves between tasks, its instructions, or the examples it works from. Some agents update that information themselves based on results and feedback. Google and IBM describe these as agents that improve with experience. In other systems, a person makes those changes. If someone shows you an agent, ask which approach it uses. [4][5][6][7]

Is ChatGPT an AI agent?

When you chat with ChatGPT, it works as an assistant: you ask, and it answers.

OpenAI has also offered agent features within ChatGPT that browse websites, click, and fill out forms on their own. They ask for confirmation before a consequential action such as a purchase. Their names and availability vary by plan and over time. [8][10]

Other chat tools offer similar features under the name "agent mode": you give the AI a task, and it works through the steps until it finishes. Some products are even marketed as AI super agents that handle many tasks in sequence.

Agents also appear in business software, such as SAP's Joule Agents. SAP distinguishes between Joule Assistants, which understand requests and coordinate the work, and agents, which carry out the steps in a process. [9]

When comparing these products with another agent, ask:

  1. What task does it perform?
  2. Which tools can it use?
  3. What starts it?A person's request, an incoming email, or a scheduled time of day.
  4. Which of your company's rules can you give it?

What is an autonomous AI agent?

The types of intelligent agents in AI differ in how much each decides on its own. Some intelligent agent systems propose actions and wait for a person to approve each one, like the order agent above. By definition, autonomous agent systems complete the task on their own and flag only exceptions. Agents are available for almost every department. Those designed for a particular industry are often called vertical AI agents.

For examples of each type by department, see "AI agents for business."Explore agent types

Where an AI agent can go wrong

Hallucinations

A language model can fill a gap with something that sounds plausible but is false. This is called a hallucination. In the order example, the agent is instructed to answer only with data it has read in the packing slip or tracking information. If it can't find that data, it must pass the case to a person. OpenAI's guide recommends the same response for high-impact actions and repeated failures: stop and ask for help. [3]

Cost and time

Cost and time depend on how often the agent calls the model, how many tools it uses, and how many times it goes through the loop before finishing. For work that always follows the same path, fixed-step automation is usually faster and cheaper. An agent handles the steps that require a choice. [2]

"AI agents for business" has examples by department. You can also request a free call to discuss what an agent could do in your business.

See AI agents for business

Sources

Memory, documents, and learning

  1. LangChain, Memory overview Accessed November 26, 2026.
  2. AWS, What is Retrieval-Augmented Generation (RAG)? Accessed November 26, 2026.
  3. Google Cloud, What are AI agents? Accessed November 26, 2026.
  4. IBM, What are AI agents? Accessed November 26, 2026.

Products mentioned

  1. OpenAI Help Center, ChatGPT agent Accessed November 26, 2026.
  2. SAP, Joule Agents and Joule Assistants Accessed November 26, 2026.
  3. OpenAI, Introducing ChatGPT agent, July 17, 2025 Accessed November 26, 2026.
Albert López

Albert López

Founder of DelegIA

He works with small and mid-sized businesses in Spain to decide where artificial intelligence makes sense, put the agreed systems in place, and support the teams that use them. He writes these entries based on what he learns working with each business.

Last reviewed: