What is an AI agent ? Definition, operation and examples

What is an AI agent ? Definition, operation and examples
7 min read

An AI agent is a program that entrusts a language model with conducting a task: it receives an objective, chooses for itself the actions to take using the tools it has access to, observes the results and repeats until the goal is reached or a limit is hit. Its difference from a chatbot boils down to one word: it acts on systems, instead of just responding.

This operational definition sets aside commercial vocabulary to focus on the mechanism: components, execution loop, realistic examples and limits. For an overview of the topic, from agent types to security and cost questions, refer to our reference guide on AI agents and automation.

An AI agent is not simply a chatbot

A chatbot produces text in response to a message; the conversation stops there, and it’s the user who decides what to do with the response. An agent, however, transforms the model’s response into actions: it queries a database, creates a ticket, sends a message, then takes the result into account to decide the next step. Anthropic, in its guide Building effective agents published in December 2024, summarizes it thus: an agent is a language model that directs its own process and its use of tools, in a loop, based on feedback from its environment.

Between the two, there are intermediate situations it’s better to name clearly. A deterministic workflow follows a path written in advance, even if it calls a model at a step. An assistant with tools can consult a service or trigger an action, but only on demand and turn by turn, under the user’s eyes. An autonomous agent chains several actions without waiting for a new instruction, until the objective is met. The detailed comparison between an AI agent and a chatbot, with its intermediate levels, is the subject of a dedicated article in this series.

Four terms to master

  • Tool: a function the agent can request to execute (search, file reading, API call), described to the model by a name, a description and parameters.
  • Loop: the repetition of the decide, act, observe cycle, until a stop condition.
  • Stop condition: what ends the loop, whether it’s the objective achieved or a limit on iterations, duration or budget.
  • Human in the loop: a point where the agent waits for a person’s validation before continuing.

The five components of an agent: LLM, objectives, tools, state and control

Whatever platform is used, an agent breaks down into five elements. Identifying them allows understanding what a product presented as an ‘agent’ can actually do.

  1. The language model (LLM): it interprets the objective, chooses the tool to call and formulates the result. It does nothing by itself: it produces a call request that the application executes.
  2. The objective and instructions: the agent’s role, the mission, the rules to follow, the expected format and the conduct to adopt in case of doubt.
  3. The tools: the closed list of possible actions. An agent without a writing tool cannot modify anything, regardless of the quality of its reasoning.
  4. The state: what the agent knows at a given moment, i.e., the history of steps, results already obtained and, where applicable, documents retrieved from a knowledge base.
  5. The control: the permissions for each tool, execution ceilings, human validations and logs that allow replaying what happened.

A monitoring agent described component by component

Component In a competitive monitoring agent
Model A generalist model capable of reliably calling tools
Objective “Every Monday, identify announcements from three competitors and produce a ten-line summary, with supporting sources”
Tools Web search, page reading, writing to a shared document
State List of pages already read, intermediate notes, previous week’s summary
Control No external sending, maximum 15 searches per execution, summary review by an analyst

This scenario is an example of configuration, not an existing product. It shows that a large part of reliability lies in the last line, that of control, which commercial demonstrations often gloss over.

How does a task unfold from end to end?

An agent’s execution follows a cycle found in all market tools. It was formalized as early as 2022 by the research paper ReAct, which alternated reasoning steps and actions on an external source for the model.

  1. Reception: a trigger (message, email, schedule, form) transmits the objective and input data.
  2. Decision: the model reads the instructions, the current state and the tool list, then chooses an action.
  3. Execution: the application verifies the action is authorized, executes it, and retrieves the result.
  4. Observation: the result is added to the state; Anthropic emphasizes this return of ‘ground truth’ at each step, the only way for the agent to measure its progress.
  5. Stop or new iteration: if the objective is reached or a limit is exceeded, the agent stops; otherwise it goes back to step 2.
  6. Delivery: the agent delivers its result and, in a serious deployment, the trace of each of its steps.

The criteria that distinguish an agent from a workflow

Question Deterministic workflow Agent
Who chooses the next step? The designer, in advance The model, each turn
Is the number of steps known? Yes No, it depends on the situation
Faced with an unexpected case Error or default branch Attempt at adaptation, successful or not
Cost per execution Stable and predictable Variable, depending on the number of iterations
Result control By the path rules By tests, validations and logs

If you can write all the steps in advance, a workflow is sufficient and will be more reliable. Anthropic moreover recommends always starting with the simplest solution and only adding autonomy when it measurably improves the result.

Examples”: “support”, monitoring and document processing

The following three cases are realistic configurations, described with their tools and level of supervision. They do not cover navigation agents that act on the web on behalf of an individual, a use we describe in our article on the agentic web.

Customer support. The agent reads a request, retrieves the order in the management software, consults the return policy and prepares a response or a refund. This is one of the two uses Anthropic cites as particularly suited to agents, because the conversation needs external data and actions and success is measured by resolving the request. The refund, an irreversible action, remains subject to advisor validation.

Monitoring. The agent searches for sources, reads relevant pages, filters out duplicates and drafts a sourced summary. It has no sending tool: its output is placed in a document reviewed by a human. The main challenge is source verification, because a page read by the agent can contain false information or hidden instructions.

Document processing. The agent receives invoices or contracts, extracts useful fields, compares them to existing data and flags discrepancies. Conforming cases pass automatically; doubtful cases are placed in a control queue. The result is easily verified, since each extracted field can be compared to the source document.

What goes wrong most often

  • The agent chooses the wrong tool because two tools have descriptions that are too similar.
  • It loops on a recurring error for lack of a stop condition.
  • It acts on false information found in an external source.
  • It has broader permissions than necessary, and a mundane error becomes costly.

Limits, errors and necessary supervision

The first limit is mechanical: each step carries a risk of error, and these errors accumulate over a long chain of actions, as Anthropic points out. The second lies in the content the agent reads: OWASP ranks prompt injection as the top risk for applications based on language models (sheet LLM01:2025), and distinguishes an indirect form, where a document or web page processed by the model contains instructions that alter its behavior.

The third limit concerns permissions. OWASP describes under the name excessive agency (LLM06:2025) the damage caused by an agent endowed with unnecessary functions, overly broad permissions or autonomy without control over high-impact actions. The answer lies in least privilege and targeted human validations. Tools are starting to integrate them: n8n, for example, since its version 2.6 released in January 2026, allows to require human approval before certain tool calls, the agent being informed if the action is refused.

How to verify an agent does what is expected

A simple method consists of four points. Gather a set of real cases, including ambiguous or incomplete ones; replay it multiple times, because an agent does not always give the same result; measure the success rate, erroneous actions and escalations to a human; finally review the logs of a sample of executions to understand failures. The limit is known: no test set covers all production cases, hence the need to enrich it with each new failure.

Once the definition is clear, the next step is to move to practice. A tutorial in this series explains how to create an AI agent without coding, starting with a limited process and adding the safeguards described here.

S’abonner
Notification pour
guest

0 Commentaires
Le plus ancien
Le plus récent Le plus populaire
0
Nous aimerions avoir votre avis, veuillez laisser un commentaire.x