What is an AI agent?
Author: Buse Mağden · Published: · 8 min read

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:
- It works towards a goal. It receives a task such as "process this invoice", not a single command.
- It chooses the order of steps. It decides what to do next by looking at the result of the previous step.
- 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.
- 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):
- Perceive: a new invoice arrives from a supplier; the agent reads the document and extracts the amount, date and order number.
- Reason: following its task definition, it decides the invoice must be checked against the order.
- Act: it queries the order record and delivery details in the ERP.
- Observe: it looks at the result. If the records match, it posts the invoice; if not, it prepares a summary explaining the difference.
- Stop and ask: approving payment is outside the agent's permissions. It sends the invoice for approval and a person makes the decision.
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.
| Type | How does it decide? | Example |
|---|---|---|
| Simple reflex agent | Only on the current input, using "if this, then that" rules | A thermostat that switches on above a temperature threshold |
| Model-based reflex agent | On the current input plus an internal model of the parts of the world it cannot see | A stock alert that also takes recent readings into account |
| Goal-based agent | By considering which action brings it closer to the goal | An agent that tries to match an invoice to its order and post it |
| Utility-based agent | By choosing the path to the goal with the best outcome | A route planner that weighs cost and time together |
| Learning agent | By improving itself from experience and feedback | A 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 / assistant | Rule-based automation | AI agent | |
|---|---|---|---|
| What does it do? | Answers questions, generates text | Repeats predefined steps exactly | Chooses and carries out steps to complete a task |
| What starts it? | Each user message | A defined trigger | A task or a trigger |
| Does it use tools? | Usually not, or only to a limited extent | Yes, but only at predefined steps | Yes; it decides which tool to use and when |
| When something unexpected happens | Replies but does no work | Stops or throws an error | Tries another route or asks a person |
| Where is the risk? | A wrong or invented answer | The flow breaks when the process changes | A 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:
- Which tools are really needed? An agent that matches invoices has no need to delete emails.
- Which level of permission is enough? Write access is not granted to a record the agent only needs to read.
- 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?
- Assess first. Which department's data and processes are ready for an agent? Every engagement with CORT starts with an AI maturity assessment.
- Pick one task. A repetitive task with clear steps, such as drafting proposals or matching invoices.
- Write the limits first. The agent's tools, permissions and human approval points are agreed before development.
- Test with a small proof of concept. The idea is tried in a real scenario and not scaled up until it has proven useful.
- 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
- Russell and Norvig, Artificial Intelligence: A Modern Approach (4th edition), chapter 2: Intelligent Agents
- Yao et al., ReAct: Synergizing Reasoning and Acting in Language Models (ICLR 2023)
- OWASP, LLM06:2025 Excessive Agency
- Model Context Protocol, What is MCP?
- CORT, Technology: Enterprise Brain, Digital Twin and Agentic Systems