Skip to content

What is an AI agent?

Author: Buse Mağden · Published: · 8 min read

A technical team reviewing an AI agent's workflow and code on screen

Type "list the overdue invoices" into a chat tool and you get an answer. Give the same request to an agent and it connects to the accounting system, reads the records, finds the overdue ones and asks you before sending the reminder emails. That difference is the answer to what is an AI agent: an agent does not just produce a reply; it uses tools to get a piece of work done. This article covers what an agent is made of, how it carries out a task, the main types of agent and what it should be authorised to do inside an organisation.

What does "AI agent" mean?

In English an agent is someone who acts on another's behalf. The idea is much older than large language models. Artificial Intelligence: A Modern Approach (Russell and Norvig), one of the field's standard textbooks, defines an agent as anything that perceives its environment and acts upon it, and frames AI as the work of designing intelligent agents.

Today "AI agent" usually means something narrower: a program that relies on a language model to make its decisions and carries out tasks using software tools. That is the sense used in this article.

Three features set an AI agent apart from ordinary software:

  1. It works towards a goal. It receives a task such as "process this invoice", not a single command.
  2. It chooses the order of steps. It decides what to do next by looking at the result of the previous step.
  3. It uses tools. It connects to systems, reads and writes records and prepares documents.

What are the components of an AI agent?

The technical answer to what is an AI agent lies in its components: an agent is not a single model but a system of parts working together.

AI agent components: model, instructions, tools, memory and context, permission limit and human approval
The model makes the decisions; the tools set what the agent can do, the context what it knows and the permission limit where it stops.
  • Model: the core that makes decisions. Usually a large language model; it interprets the request, chooses the next step and writes the output.
  • Instructions: the agent's task, the rules it follows and the format of its output. Rules such as "if the invoice amount does not match the order, explain the difference" live here.
  • Tools: the agent's reach into the outside world: CRM, ERP, email, document systems and APIs. Open standards such as the Model Context Protocol (MCP) were developed to give AI applications a common way to connect to systems like these.
  • Memory and context: what has happened during the task and the organisation's own knowledge. An agent without context works from general knowledge and does not know the company's real rules. We describe the infrastructure that provides this context in What is an Enterprise Brain?
  • Limits: which operations, records and amounts the agent is authorised to handle, and at which step it waits for human approval.

In the agents CORT builds, the task, tools, context, permissions, human approval and monitoring are defined up front (Technology). Three of the layers described on our Engineering page belong directly to the agent: AI agents and models, organisational knowledge and context, and human approval points.

How do AI agents work?

AI agents work in a loop: perceive, reason, act, observe. The agent receives an input, decides what to do, uses a tool, looks at what the tool returns and repeats the loop until the task is done or it reaches a point where it must stop. The idea of interleaving reasoning and action in this way was popularised by the ReAct paper, published in 2022 and presented at ICLR 2023.

Here is the example scenario from our Engineering page, step by step (an illustrative flow, not a client implementation):

  1. Perceive: a new invoice arrives from a supplier; the agent reads the document and extracts the amount, date and order number.
  2. Reason: following its task definition, it decides the invoice must be checked against the order.
  3. Act: it queries the order record and delivery details in the ERP.
  4. Observe: it looks at the result. If the records match, it posts the invoice; if not, it prepares a summary explaining the difference.
  5. Stop and ask: approving payment is outside the agent's permissions. It sends the invoice for approval and a person makes the decision.
How an AI agent works: the perceive, reason, act, observe loop and human approval, with an invoice example
At each step the agent observes the result and decides what to do next; at the edge of its permissions it stops and asks a person.

What separates this loop from ordinary automation is the fourth step. A rule-based flow fails when something unexpected happens (a missing order number, a different currency); an agent can query another record, ask for the missing information or hand the work to a person. The same flexibility also brings the possibility of a wrong step, which is why where the loop stops is part of the design.

What are the types of AI agents?

Russell and Norvig classify agents into five basic types according to how they make decisions. The examples below are our own illustrations.

TypeHow does it decide?Example
Simple reflex agentOnly on the current input, using "if this, then that" rulesA thermostat that switches on above a temperature threshold
Model-based reflex agentOn the current input plus an internal model of the parts of the world it cannot seeA stock alert that also takes recent readings into account
Goal-based agentBy considering which action brings it closer to the goalAn agent that tries to match an invoice to its order and post it
Utility-based agentBy choosing the path to the goal with the best outcomeA route planner that weighs cost and time together
Learning agentBy improving itself from experience and feedbackA proposal assistant that learns from approved and rejected drafts

Alongside these types there is one more distinction: the number of agents. A single agent takes on a single task; when several agents work together (multi-agent), an orchestration layer is needed to divide the work between them.

AI agent vs chatbot vs automation: what is the difference?

All three get called "software that makes work easier", but they do different jobs.

Chatbot / assistantRule-based automationAI agent
What does it do?Answers questions, generates textRepeats predefined steps exactlyChooses and carries out steps to complete a task
What starts it?Each user messageA defined triggerA task or a trigger
Does it use tools?Usually not, or only to a limited extentYes, but only at predefined stepsYes; it decides which tool to use and when
When something unexpected happensReplies but does no workStops or throws an errorTries another route or asks a person
Where is the risk?A wrong or invented answerThe flow breaks when the process changesA wrong action as well as a wrong answer

These lines are not sharp: an assistant that uses tools moves towards being an agent, and an automation flow with a language model added can behave like an agent at some steps. The distinguishing question is this: is the order of steps set by the person who built the software, or by the model at run time?

Is an AI agent the same as agentic AI?

No. An AI agent is a single program that carries out a specific task. Agentic AI describes the approach and the system in which one or more agents work together under an organisation's data, processes and rules. In short, the agent is a building block; agentic AI is what is built from those blocks. We cover the concept, how it differs from generative AI and examples from organisations in What is agentic AI?

What should an AI agent be authorised to do?

An agent's value comes from its ability to use tools, and so does its risk. OWASP's risk list for large language model applications calls this risk "excessive agency" and names three root causes: excessive functionality, excessive permissions and excessive autonomy. These become three questions to answer before building an agent:

  1. Which tools are really needed? An agent that matches invoices has no need to delete emails.
  2. Which level of permission is enough? Write access is not granted to a record the agent only needs to read.
  3. At which step does a person decide? Critical steps such as sending a proposal or approving a refund or payment are left to human approval; the agent does not complete them without it.

Defining permissions does not stop at go-live. If agents' performance and cost, whether they work properly together and the health of their integrations are not monitored regularly, an agent that worked correctly on day one falls behind as the business changes. We monitor and improve live agents in this way through CORT Operate.

How do you build your first AI agent in an organisation?

  1. Assess first. Which department's data and processes are ready for an agent? Every engagement with CORT starts with an AI maturity assessment.
  2. Pick one task. A repetitive task with clear steps, such as drafting proposals or matching invoices.
  3. Write the limits first. The agent's tools, permissions and human approval points are agreed before development.
  4. Test with a small proof of concept. The idea is tried in a real scenario and not scaled up until it has proven useful.
  5. Test, then go live in a controlled way. We describe the steps from initial assessment to go-live on our AI agent development page.

Sources

All insights

Frequently asked questions

What does AI agent mean?

An AI agent is a software program that takes in information, decides what to do and acts through tools in pursuit of a goal. In English an agent is someone who acts on another's behalf.

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

A chatbot answers questions; an AI agent connects to systems to complete a task, reads and writes records and decides on each next step by looking at the result of the last one.

How do AI agents work?

In a loop: the agent perceives the input, decides what to do, uses a tool and observes the result. The loop repeats until the task is done or the agent reaches the limit of its permissions, where it stops and asks a person.

Do AI agents make decisions on their own?

In an organisation they should not make critical decisions. The agent's tools, permissions and the steps where it waits for human approval are defined up front; for steps such as sending a proposal or approving a payment, a person makes the final decision.

Is an AI agent the same as agentic AI?

No. An AI agent is a single program that carries out a specific task. Agentic AI describes the approach in which one or more agents work together under an organisation's data, processes and rules.

Let's build your company's digital brain together.

In the first meeting we listen to your organisation and agree together on which of your departments agentic AI can work in, how, and the scope of the AI maturity assessment.

What happens next?

  1. 1We review your request.
  2. 2We schedule a short initial call.
  3. 3Depending on your needs, we share the assessment scope or a proposal.

Or let us call you

Leave the form and we will get back to you as soon as possible.

Tell us about your organisation and your needs in a few sentences.