GuideBy Sacha Bigou, founder of VeryDisco

AI agents: what they are, how they work and how to build one

Updated 28 October 2026 · 6 min read

An AI agent does more than answer: it receives a goal, chooses its own actions and uses your tools until the job is done. This guide explains how it differs from a chatbot or an automation, how it works, what it already does in businesses, and how to build one without losing control.

What is an AI agent?

Definition. An AI agent is a program that relies on a language model to reach a goal: it decides the steps itself, uses tools such as a search engine, a piece of software or a database, and checks its results until the task is done.

Anthropic, the company behind Claude, draws a distinction that has become a reference. In a workflow, the model follows a path written in advance by a developer. In an agent, the model directs its own process and its use of tools (Building effective agents, December 2024).

In practice, an AI agent combines four parts:

  • A language model, which reasons and picks the next action: Claude, GPT, Gemini or Mistral, for instance.
  • Instructions, which set its role, its rules and what it must never do.
  • Tools: search a document, query a database, capture a web page, update a CRM, send an email.
  • Memory: the context of the current task, and sometimes what it kept from earlier tasks.

AI agent, chatbot, automation: the differences

The three words often overlap, but they do not mean the same thing. What sets them apart is who decides the steps.

Chatbot or assistantAutomationAI agent
What starts itA message from the userAn event: a form, an email, a scheduleA goal, given by a person or an event
Who decides the stepsThe user, at each exchangeThe scenario, written in advanceThe model, at each step
StrengthAnswering, drafting, summarisingFast, predictable, cheapHandling varied cases and unstructured documents
LimitDoes nothing without youBreaks as soon as a case leaves the scriptSlower and costlier, it needs guardrails

The three work together. An automation can hand a hard step to an agent, such as reading a scanned invoice, then take back control for everything else. Our rule: whatever can be calculated is calculated by code, and the agent only steps in where something must be read, judged or written. Our guide to automating with Make covers the other side of that line.

How an AI agent works

An agent runs in a loop, and every turn follows the same pattern:

  1. It receives a goal and its context: "audit this product page", "review this pull request".
  2. It chooses the next action: the model reads what it already knows and decides which tool to call.
  3. It acts: a screenshot, a database query, a search, writing a file.
  4. It observes the result and adds it to its context.
  5. It starts again until the goal is reached, or a limit stops it: a number of steps, a budget, a human approval.

To plug in those tools, one standard has taken hold: the Model Context Protocol, or MCP. Released as open source by Anthropic in November 2024, it was adopted by OpenAI and Google, then handed in late 2025 to the Agentic AI Foundation, under the Linux Foundation. An MCP server exposes what a piece of software can do, such as reading a ticket, creating a page or querying a database, in a format every compatible agent understands.

An agent can also coordinate others. A lead agent splits the task, specialised agents handle each part, then the result is assembled and checked. That is how the conversion auditor described below works.

Examples of AI agents in business

The most common uses share one trait: a repeated task that requires reading and judgement, with a result that can be checked.

  • Customer service: understand a request, find the order, suggest a reply or route it to the right person.
  • Document processing: extract and sort invoices, contracts or applications.
  • Research and monitoring: gather sources, compare them and write a sourced summary.
  • Software development: review code, write tests, fix a reported bug.
  • Operations: reconcile data across several tools and flag the gaps.

Here are three agents we built, with their figures.

A conversion audit written by a chain of agents

For an e-commerce agency in Paris, a chain of agents reads a site's sitemap, captures its key pages, measures their speed and accessibility, then writes recommendations. Each one is backed by an exact quote from the page, about fifteen checks written in code verify the AI's work, and the code computes the score.

Length of a full audit
35 to 40 min
AI cost per audit
$0.70 to $1.10
From signed quote to live API
6 days

A code review before the human review

On a B2B travel platform, an agent reviews every eligible pull request and posts a review in French, with findings attached to the relevant lines. It never approves and never runs the code: the decision stays with the developers.

Largest pull request reviewed
220 files
Automatic approvals
none

1,354 pages of accounting documents read and sorted

For a hair salon with five employees, agents read two financial years of documents, scans included, sorted every item, spotted duplicates and cross-checked the till against the exports. The report separates what is proven from what still needs confirming with the accounting firm.

Documents checked
657
Identical copies found
48

These three projects are described on our AI agents page.

How to build an AI agent, step by step

Scoping matters more than technology. These six steps hold whatever tool you choose.

  1. Pick a precise task. Not "handle support", but "sort every incoming request and suggest a reply". A good candidate comes up often, takes time from a skilled person and is easy to check.
  2. Gather cases already handled. A few dozen examples with the right answer become the reference to test the agent. Without them, there is no way to know whether it improves or regresses.
  3. Define its tools and permissions. What it can read, what it can change, and what needs approval. Start with read-only access.
  4. Write its instructions and guardrails. The expected output format, the sources to cite, the cases where it must stop and ask. Anything that can be calculated, such as a score, a total or a date, is left to code.
  5. Test on real cases, then measure. Share of right answers, time and cost per task. Every change to the instructions runs the same tests again.
  6. Go live with a human in the loop. A log of every action, an alert on failure, human approval on anything that commits the company. Its autonomy grows when the figures justify it.

Which tools to build an AI agent?

Four families of tools exist, from the fastest to the most controlled.

  • Mainstream assistants. ChatGPT, Claude, Gemini or Copilot let you set up an assistant with instructions, documents and a few connectors. Ideal to test an idea in an afternoon, limited as soon as you need strict rules or volume.
  • No-code platforms. n8n and Make offer AI agents connected to hundreds of apps. A good middle ground for a simple agent wired into your tools.
  • Open-source agents to install. OpenClaw and Hermes Agent run around the clock on a server, answer in your messaging app and remember your habits. Powerful, but they need a careful setup: they act with every access you give them. Our Hermes Agent and OpenClaw comparison helps you choose.
  • Code. Development kits such as the Claude Agent SDK or the OpenAI Agents SDK, with MCP servers for the tools. More work upfront, but automated tests, controlled costs and no platform lock-in.

We start from the task, not the tool. An agent that handles sensitive data or must run thousands of times a month goes through code. A quick trial on an internal process can perfectly well start on n8n.

Limits to know before you start

  • Plausible mistakes. A model can state something false with confidence. Hence the need for cited sources and checks written in code, as on our conversion auditor.
  • Hidden instructions. An agent that reads emails or web pages can run into text designed to hijack it. Give it as few permissions as possible and have its sensitive actions approved.
  • Cost and speed. Every step is a model call. An agent costs more and answers more slowly than a classic automation: it must earn its place.
  • Compliance. The GDPR applies as soon as it handles personal data, and the AI Act depending on how it is used.

A well-designed agent looks less like an autonomous colleague than like a precise tool, whose scope, cost and error rate are known.

Frequently asked questions

What are the different types of AI agents?

They differ mainly in how autonomous they are. An assistant suggests and waits for your approval at each step. A specialised agent carries out a bounded task from start to finish, such as an audit or a code review. A multi-agent system splits the work between several specialised agents, coordinated by a lead agent. In business, the first two cover most needs.

Can an AI agent replace an employee?

It takes over tasks, not jobs. The agents that work well have a narrow scope: auditing a page, reviewing a pull request, sorting accounting documents. The person who used to do the work supervises it and keeps the decisions that commit the company.

What drives the cost of an AI agent?

Running costs depend on the number of model calls and the amount of text processed. They are measured task by task: on our conversion auditor, a full analysis uses between $0.70 and $1.10 of AI. Hosting, maintenance and the initial design come on top.

Is my data safe with an AI agent?

It depends on how the agent is built. It should only read the data its task needs, with read-only access whenever possible. Pick a model provider whose terms exclude training on your data, and be wary of outside content: a web page or an email can hide instructions meant to hijack the agent.

Do I need to code to build an AI agent?

Not for a first trial: n8n, Make or the mainstream assistants let you set up an agent without code. For an agent that handles sensitive data, runs at volume or must be tested after every change, code remains safer and easier to evolve.

Which regulations apply to AI agents?

The GDPR, as soon as the agent processes personal data. The EU AI Act adds obligations depending on the use: a system that screens or assesses job candidates, for example, is a high-risk use. An agent that writes internal reports is far less regulated.

An AI agent for your business?

In 45 minutes, we look at the task you want to hand over, check that an agent is the right answer, and you leave with a scope and a time estimate.

Or write to sacha@verydisco-agency.fr