AI Agent: Definition, Examples, and How to Create One
What is an AI agent, how does it differ from a chatbot or automation, what real examples exist, and how do you create one: sourced definition, diagram, and CNIL framework.
Antoine Vigneau
· · 15 min read
Listen to article0:00 / 15 min
An AI agent is a program given a goal that determines the steps to achieve it on its own, using tools to take action. A chatbot, on the other hand, merely replies. The term is everywhere, and often used incorrectly to refer to any assistant. This article provides a precise definition, compares agents with chatbots and automation, shares real-world examples, clarifies what is free and what is not, and then explains how to build one.
To that end, the definitions come from Anthropic's documentation, the MCP protocol, and the CNIL, reviewed in October 2026. Thus, no market figures are cited without a source.
What is an AI agent?
An AI agent is a system that pursues an objective by choosing its own steps and using tools: web search, files, messaging, APIs. It acts, observes the result of its action, and then decides what to do next, in a loop, until the task is complete. Unlike a chatbot, it is not limited to producing text.
Workflow or AI agent: Anthropic's distinction
The question "what is an AI agent?" comes up constantly because the term covers very different realities depending on who is speaking. Anthropic, the creator of Claude, settled the question in its guide Building effective agents. The developer groups everything that relies on a language model and tools under the term agentic systems, then distinguishes two families:
workflows, where the model and tools are orchestrated by pre-written code paths;
agents, where the model dynamically directs its own process and its use of tools.
This distinction is the most helpful for finding your bearings. If you can map out the path in advance, you have a workflow. On the other hand, if the program decides the path along the way, you have an AI agent. Both have their place. However, many products sold as agents are actually well-crafted workflows.
AI agents: what do they look like in everyday life?
An example is worth more than a definition. For instance, tell a standard assistant "summarize my schedule for the week": it replies with text based on what you pasted in. Tell an AI agent connected to your calendar: it fetches your appointments, notices that a lunch slot is missing, suggests rescheduling a meeting, and waits for your approval to do so. In fact, the MCP protocol describes precisely this use case: agents accessing a calendar and a note-taking tool to act as a personalized assistant.
Thus, the difference does not lie in the intelligence of the model. It comes down to three capabilities: accessing sources, acting upon them, and sequencing multiple steps without requiring you to steer each one.
How does an AI agent work?
An AI agent operates in a loop. First, Anthropic sums it up bluntly: an agent is typically a model that uses tools based on feedback from its environment, in a loop. The documentation for Claude's Agent SDK describes the same mechanism, step by step:
the model receives the request, tool definitions, and conversation history;
it assesses the situation and responds with text, one or more tool requests, or both;
the SDK executes each requested tool and returns the results to the model;
steps 2 and 3 repeat until the model produces a response without a tool call;
the final result is delivered, along with the cost and session ID.
The diagram below illustrates this loop in our own words. Pay particular attention to the return path: that is what sets it apart from a linear script.
The loop of an AI agent, based on Claude's Agent SDK documentation and the Anthropic guide on agents.
Next, Anthropic emphasizes a point that is often overlooked: at each step, the agent must obtain the "ground truth" of its environment, such as the output of a tool or the execution of a piece of code, to judge where it stands. However, an agent that verifies nothing is just a model improvising out loud.
The four building blocks of an AI agent
Regardless of the product, we find the exact same building blocks.
The language model, which reasons and decides on next steps.
Tools: reading a file, querying a database, sending a message, calling an API. Anthropic recommends crafting their descriptions as carefully as the rest, since the model makes mistakes when a tool is poorly documented.
Context and memory: what the agent knows about the current task and what has already taken place.
Guardrails: access permissions, human validation, iteration limits, and budget caps.
MCP: the universal plug for tools
Yet tools have long been a headache: every application required its own custom integration. The Model Context Protocol offers an open standard to connect an AI application to external systems, whether data, tools, or workflows. Its documentation compares it to a USB-C port: a single shape, regardless of the device plugged in. Consequently, an agent that supports MCP can connect to any existing MCP server without custom integration. The Agent SDK documentation also lists MCP among its built-in capabilities, alongside integrated tools, permissions, sessions, and sub-agents.
AI Agent, Chatbot, or Automation: What Is the Difference?
Three concepts look similar from a distance, but they should not be confused. The following table differentiates them based on the question that matters: who decides the path?
Criterion
Chatbot
Automation (workflow)
AI agent
Who decides the path
The user, with every message
The person who designed the scenario, once and for all
The model, along the way
What it produces
Text, an answer
Identical actions on every run
Actions and decisions tailored to the situation
Access to tools
Rarely, or read-only
Yes, those connected by the scenario
Yes, chosen on the fly from those available
Predictability
Medium
High
Lower, must be tested and supervised
Cost and latency
Low
Low to medium
Higher, as multiple model calls are chained together
Good choice when
Answering questions is required
The task can be described in fixed steps
The number of steps cannot be predicted
When to choose a workflow
Anthropic outlines the dividing line in the same guide: workflows provide predictability and consistency for well-defined tasks, whereas agents are preferable when flexibility and model-driven decision-making at scale are required. The publisher even advises against rushing in: look for the simplest solution first, and only increase complexity if necessary. That might mean not building an agentic system at all. Indeed, agentic systems trade latency and cost for better task performance, and you have to consider whether that tradeoff is worthwhile.
Practical advice: before talking about agents, try workflows. An n8n or Make scenario that calls an AI model at a specific step solves a large share of needs, at a lower cost and without surprises. We detail this approach in the article on AI automation and workflows to save time.
Autonomous AI agents: how far does autonomy go?
Speaking of an autonomous AI agent makes it sound like an on/off switch: either autonomous or not. Yet it is a slider, and you set it yourself. Anthropic describes the agent as a system that starts from a user command or discussion, then plans and operates independently, even if it reaches back to a human for information or judgment. It can also pause for human input at designated checkpoints or when encountering a blocker.
Three levels of autonomy
Three common setups stand out, and this is our own framework, not a standard:
the agent suggests, you execute: it drafts, sorts, recommends, but writes nowhere;
the agent acts upon your approval: every sensitive action, such as sending an email or issuing a refund, awaits validation;
the agent acts autonomously within a restricted scope: it is authorized to perform specific actions, and nothing else.
Claude's Agent SDK provides precisely these controls: permissions to decide which tools run without asking and which require approval, a turn limit (maxTurns), and a spending cap (maxBudgetUsd). In addition, Anthropic adds a refreshingly candid warning: autonomy means higher costs and a risk of compounding errors. Its advice is to test extensively in isolated environments, with appropriate guardrails.
An autonomous AI agent is therefore not an unsupervised agent. On the contrary, it is an agent for which we have decided in advance what it is allowed to do on its own.
Real-world examples of AI agents
Reliable examples are primarily those documented by the providers themselves. Anthropic cites two families in its guide that meet the conditions where an agent delivers real value: a task combining conversation and action, clear success criteria, a possible feedback loop, and genuine human oversight.
The customer support agent
A customer support agent primarily combines a chatbot interface with tools. It can retrieve customer data, order history, and knowledge base articles, and then take action: update a ticket, issue a refund. Success is measured simply by whether the request is resolved. Moreover, Anthropic notes that several companies only bill for these agents when the request is resolved.
The coding agent
Software development is the ideal proving ground because the result can be verified: a test either passes or fails. According to Anthropic, its agents can resolve real GitHub issues from the SWE-bench Verified benchmark using only the description of the change request. However, human review remains essential, because a passing test does not guarantee that the solution respects the system as a whole.
The agent connected to your desktop tools
Finally, thanks to MCP, an agent can read a calendar, a notes database, or a folder of files. This is the use case that matters most to freelancers and small teams: sorting incoming requests, drafting meeting minutes, updating a CRM. You will find more in our selection of five AI agents to set up this week.
Finally, beware of lists of "examples" that enumerate use cases without explaining how the agent is connected or how its work is verified. A reliable example clearly identifies the tool, the task, and the success criteria.
Free AI agents: what is actually free
The query "free AI agent" mixes up two things that must be kept separate: the software and the model.
The software can be. Indeed, some automation tools can be self-hosted: you install your own instance and retain full control. This is the case with n8n, which our guide to installing n8n for free covers, making it a sound starting point for building a first agent.
The model itself is rarely free to use. Indeed, as soon as your agent calls a model programmatically, usage is billed per call, and an agent makes several calls per task. The Agent SDK documentation also requires an API key for authentication, and its final output displays the session cost, with the option to cap spending. As for vendor pricing and plans, limits and rates change regularly: check the provider's pricing sheet when you need it, and never rely on pricing that does not carry a date.
In summary, a free AI agent is great for learning and testing. For regular business use, plan for a model API call budget and set a cap from day one.
How to build an AI agent: the steps
The query "how to create an AI agent" deserves a full tutorial, which we wrote separately: building an AI agent with Claude, step by step. Here is the framework, in the order decisions need to be made.
The seven steps of building a first agent
First, choose a narrow task. An agent that sorts incoming requests is better than an agent that "handles everything." Anthropic recommends keeping the design simple.
Define the success criteria before coding. "The ticket is filed under the right category with a two-line summary" can be verified. "The agent helps the team" cannot.
Next, provide a few well-defined tools. Each tool needs a clear name, a description explaining when to use it and when to avoid it, and unambiguous parameters. Anthropic notes that it spent more time refining the tools for its coding agent than polishing the overall prompt.
Choose where it runs. Directly via the API, using an SDK like Claude's Agent SDK, or within a visual automation tool. Anthropic suggests starting with the direct API, since many patterns require only a few lines of code, and warns that frameworks can obscure prompts and make debugging more difficult.
Then set up guardrails. Least-privilege permissions, turn limits, budget caps, and human verification for irreversible actions.
Test on real-world cases, including failure modes. That way, you check how the agent behaves when a tool fails, when the request is ambiguous, or when data is incomplete.
Finally, monitor in production. Review the logs from the first few weeks: that is where you will discover the real edge cases.
Building an AI agent without writing code
For a first agent without writing code, a visual automation tool does the job. Our n8n training leads to production automations, with AI agents integrated into workflows, in 2 months part-time for €1,690 according to the program sheet. If your goal is to manage this type of project for clients or your own company, the No-Code & AI Project Manager bootcamp covers the topic over 210 hours (6 months part-time or 3 months intensive) for €4,990, in a Qualiopi-certified training organization.
The limitations of an AI agent, without the hype
An AI agent makes mistakes. What is more, its mistakes have a specific trait: they compound. Anthropic explicitly states that autonomy leads to higher costs and a risk of compounding errors. Thus, a misinterpretation at step 2 contaminates steps 3, 4, and 5, and no one catches it if no one is watching.
Four limitations come up systematically.
Unpredictable cost: the number of calls depends on the task, and so does the bill, hence the value of setting a spending cap.
Reliability: an agent is excellent on verifiable tasks, mediocre on subjective tasks.
Security: an agent that can write can also write incorrectly. The fewer permissions it has, the less damage it can cause.
Data: an agent connected to your tools handles your data and that of your clients.
Yet, this last limitation receives special attention from regulators, as discussed below.
Regulatory framework: what the CNIL and European regulations state
Creating or deploying an AI agent in France does not occur in a legal vacuum. In fact, two regulations apply, and they complement each other.
The European AI Act
The European AI Act classifies systems into four risk levels: unacceptable, high risk, specific transparency risk, and minimal risk. Chatbots and AI-generated content fall under the transparency category, meaning in practice that users must know they are interacting with an AI. In addition, the CNIL notes that the vast majority of AI systems used in the EU fall under minimal risk. Systems used in recruitment, for example, are considered high risk.
First, the timeline was modified by the "omnibus" regulation that came into force on July 27, 2026. According to the CNIL update of August 17, 2026, transparency obligations regarding certain AI systems are set for August 2, 2026, and rules on high-risk systems under Annex III for December 2, 2027. The legal texts are published on EUR-Lex: verify the dates there before making any decision, as they have already shifted once.
GDPR, still in effect
The AI Act does not replace GDPR. As soon as your agent processes personal data, the GDPR applies, and the company deploying the agent is most often the data controller. On July 20, 2026, the CNIL and the Council for AI and Digital Affairs published an exploratory note on agentic AI and personal data. It notes that agents access large volumes of data from multiple sources, retain interaction history, use persistent memory, and act on behalf of the user. The result: a risk of losing control over data, and a more complex distribution of responsibilities.
For a concrete project, then: limit the data the agent can access, inform people that an AI is involved, and document who is responsible for what. These three habits are worth far more than a long speech on compliance.
Training to build AI agents
You learn how to build agents by building them, with someone reviewing your work. At ILLITH, a 100% remote school, four paths are available depending on your starting point.
You want to learn how to design AI agents without technical prerequisites: the Automation & AI Agent training, 2 months part-time for €2,490 per level, Essential or Advanced depending on your starting point.
You want to automate your own business: the n8n training.
You are looking for funding options: the funding page outlines available schemes based on your situation.
The pass rate for the certification prepared during the bootcamp is 66.6%, or 2 graduates out of 3 candidates presented (5 enrolled): a small sample size, to be taken as such. The full course catalog can be found on the training programs page.
Frequently Asked Questions
What is an AI agent?+
An AI agent is a system that receives an objective and selects the steps to achieve it on its own, using tools such as search, files, or messaging. It acts, observes the result, and then decides what to do next in a loop until it is done. Anthropic distinguishes it from a workflow, whose path is written in advance.
What is the difference between an AI agent and a chatbot?+
A chatbot responds to your messages one by one, most often with text. An AI agent receives an objective, carries out several steps, calls tools, and acts on real systems. The difference lies less in the language model than in access to tools and the ability to decide the next step without your direct guidance.
Is there a free AI agent?+
The software can be free, for example a self-hosted automation tool like n8n. The language model itself is rarely free once called programmatically, as an agent makes multiple calls per task. Plan a budget cap and check the provider's pricing schedule when you need it.
What is an autonomous AI agent?+
An autonomous AI agent is an agent allowed to act alone within a defined scope. Autonomy is not an on/off switch but a slider: suggesting, acting after approval, or acting alone. It is governed by permissions, turn limits, budget caps, and human validation checkpoints.
How do you create an AI agent as a beginner?+
Choose a narrow task and write down its success criteria. Give the agent a few well-described tools, then establish guardrails: minimal permissions, turn limits, and budget caps. Test on real-world cases, including edge or failure cases. A visual automation tool like n8n lets you get started without writing code.
Is an AI agent subject to regulation in France?+
Yes. The European AI Act classifies systems by risk level, and chatbots are subject to transparency obligations. The GDPR applies as soon as the agent processes personal data. In July 2026, the CNIL published a briefing note on agentic AI and personal data. Check enforcement dates on EUR-Lex.
Antoine Vigneau
ILLITH Teaching Team
Blog articles are written by the ILLITH teaching team.