ES Technical meeting

What is an AI agent: how it works, examples and what it needs to work in a company

An AI agent is a system that uses a language model to decide and carry out the steps needed to reach a goal: it chooses tools, looks up data and acts. How it works inside, how it differs from a chatbot, examples in the company and what it needs to work with guarantees.


An AI agent is a system that uses a language model to decide and carry out the steps needed to reach a goal: it chooses which tools to use, looks up data and acts, instead of just answering. A chat tells you «the forecast balance is X». An agent checks the bank, the ERP and the expected collections, prepares the cash forecast and warns you about the deviation. That is why, to use agents in a company, the model matters less than three things: the data it sees, the permissions it acts with and who answers for what it does. In this article I explain what an AI agent is, how it works inside, how it differs from a chatbot and from an automation, what examples there are in the company, what can go wrong and what it needs to work with guarantees.

What an AI agent is

An AI agent is a program in which a language model (such as those from OpenAI, Anthropic, Google or Mistral) directs its own process: it receives a goal, decides the steps, uses tools to carry them out and adjusts the plan based on what it finds. Anthropic defines it like this: agents are systems where language models dynamically direct their own processes and tool usage, maintaining control over how they accomplish tasks (Anthropic, «Building effective agents»).

The difference from a workflow is who decides the path. In an AI workflow, the path is programmed in advance and the model only solves specific steps. In an agent, the model decides the path.

Chatbot Automation (workflow, RPA) AI agent
What it does Answers questions Runs fixed steps Decides and runs the steps to reach a goal
Who decides the path Nobody: there is only an answer Whoever programmed it The model, on every run
Uses tools and data Little or none Yes, always the same ones Yes, it chooses which and when
Acts in other systems No Yes, in a predefined way Yes, in a variable way
Example «What is the holiday policy?» Copying invoices from email to the ERP Reconciling payments and escalating differences

How an AI agent works inside

An agent works in a loop: it receives a goal, decides the next step, runs it with a tool, looks at the result and decides again, until it finishes or asks for help. To do so it needs five pieces:

  1. The language model: it reasons and decides. It can be swapped for another one.
  2. The instructions and workflows: what it has to do, with which criteria and what it must not do. This is what is known as the harness: everything around the model so that it does a specific job well.
  3. The tools: the functions it can call, such as querying a database, searching documents, sending an email or creating a record. They are increasingly connected through MCP, an open standard we explain in what is MCP.
  4. The company's data: customers, invoices, contracts, emails. It is what the agent knows about your business.
  5. The subject and the policy: on whose behalf it acts and what it can see and do.

A useful way to see it is to think in three memories. Semantic memory is general knowledge of the world, and the model provides it. Procedural memory is know-how, and the instructions and workflows provide it. Episodic memory is what has happened in your company, and it lives in your data. The first two are chosen or built; the third is yours, and it is the one that most determines the quality of the agent. We develop this in AI memory is in the data.

Examples of AI agents in the company

The agents with the most return work on a process, not on one person's task, and leave the exceptions to a person. Some examples by area:

Area What the agent does What a person decides
Finance Reconciles bank transactions with invoices, detects duplicates, prepares the close Payments above the threshold, onboarding suppliers, bank account changes
Customer service Answers frequent questions, classifies incidents, prepares replies with the customer's history Compensation and refunds outside policy
Purchasing Compares offers, prepares recurring orders, reviews contract terms Awarding a contract, accepting new terms
People (HR) Answers questions about holidays or payroll, prepares documents Recruitment, evaluation, promotions and dismissals
Sales Prepares proposals, updates the CRM, summarises meetings Discounts outside policy and contractual commitments

In all of them, the person doesn't disappear: they move from doing the work to reviewing what matters. Why the return lies in the process and not in the task is explained in individual productivity is not company productivity.

What can go wrong

An agent acts, which is why its mistakes reach further than a chat's. These are the five most common risks:

  • Wrong answers that look right. If data is spread across systems that don't share identifiers, the agent has to guess which record is which. If it gets it wrong, the error isn't visible.
  • Too many permissions. Many agents operate with a person's credentials, so they see everything that person sees and the log attributes to that person what the agent did.
  • Hidden instructions. A document, an email or a web page can contain instructions that the agent follows without anyone noticing. This is prompt injection, the first risk on OWASP's list for applications built on language models (OWASP, LLM01:2025).
  • Costs that grow out of control. Each step consumes tokens and calls to other systems. An agent that rebuilds the context on every task spends far more than one that receives it prepared. Gartner predicts that over 40% of agentic AI projects will be cancelled by the end of 2027 due to costs, unclear value or inadequate risk controls (Gartner, 2025).
  • Nobody answers for it. An agent decides, but it has no consequences. In 2024, Air Canada tried to argue in court that its chatbot was a separate entity responsible for its own actions; the tribunal rejected it (The Guardian). The company answers for what its AI does.

What an AI agent needs to work in a company

An agent works well in a pilot with little data and broad permissions. In production it needs four things, and none of them depends on the model:

  1. Prepared data: centralised, deduplicated, related and described, so the agent doesn't have to rebuild the context on every task. This includes documents, which is usually where the context that explains the data lives.
  2. Its own subject and a policy per task: an agent should never act with a person's credentials. It should see only what its task needs, down to the field: the collections agent sees invoices, not payroll.
  3. A person who answers for it: depending on the impact of each decision, the agent acts alone, acts under supervision, needs prior approval or only proposes. This is known as human in the loop, and we explain it step by step in human in the loop: what it is and which decisions need a person.
  4. A log of every action: who asked for what, which agent acted, with which data and under which rule, and who approved it. It is what makes it possible to explain a decision, audit it or reconstruct what happened.

If you are going to put agents into production, we have gathered the decision matrix, the agent card template and a 15-point checklist in the practical guide to human in the loop.

How we solve it at Opendome

Opendome prepares and protects a company's data so that any model or agent can use it. It centralises and relates data from systems and documents, treats each agent as its own subject, decides by policy what it receives in each task, logs every access and returns every result with the data used and its lineage. It is deployed on the customer's infrastructure, on open-source software and under European jurisdiction. We explain it in the solution.

Conclusion

An AI agent is not a smarter chat: it is a system that decides and acts on someone's behalf. The quality of an agent in a company depends less on the model than on the data it sees, the permissions it acts with and the person who answers for what it does. With that solved, switching models or adding a new agent is the easy part.

Fuentes

Frequently asked questions

What is an AI agent?
It is a system that uses a language model to decide and carry out the steps needed to reach a goal. Unlike a chat, it doesn't just answer: it chooses which tools to use, looks up data, acts in other systems and adjusts the plan based on what it finds, until it finishes the task or asks a person for help.
What is the difference between an AI agent and a chatbot?
A chatbot answers questions; an AI agent acts. The agent decides the steps to reach a goal, uses tools such as databases, documents or email, and can create or modify information in other systems. That is why its mistakes reach further and it needs permissions, limits and a person who answers for what it does.
How does an AI agent work?
It works in a loop: it receives a goal, decides the next step, runs it with a tool, checks the result and decides again. To do so it combines five pieces: a language model that reasons, instructions and workflows that set criteria and limits, tools it can call, the company's data and a subject with its policy.
What examples of AI agents are there in a company?
An agent that reconciles bank transactions with invoices and escalates the differences, another that answers frequent customer questions using their history, another that compares supplier offers or prepares recurring orders, and another that updates the CRM and prepares proposals. In all of them, a person decides what matters: large payments, contracts or decisions about people.
What are the risks of an AI agent?
The most common are wrong answers due to fragmented data, too many permissions when the agent uses a person's credentials, hidden instructions in documents or emails (prompt injection, the first risk on OWASP's list), costs that grow out of control and nobody answering for its decisions.
What does a company need to put an AI agent into production?
Four things that don't depend on the model: prepared data, centralised and related; each agent as its own subject, with a policy per task; a person who answers for decisions according to their impact (human in the loop); and a log of every action, with the data used and the rule applied.

The guide to making sure every decision by an agent has someone who answers for it.

We ask for minimal context: name, work email, company and role. We process it in accordance with the GDPR.

Controller: OPENDOME, S.L. · Purpose: to handle your request and get the document to you; if you authorise it, to contact you and send you content. Legal basis: performance of your request and, for later sends, your consent. Retention: until you ask for erasure or withdraw your consent. Rights of access, rectification, erasure, restriction, portability and objection in the privacy policy. The form is processed on our own infrastructure hosted in the European Union and sets no cookies.

Want to go deeper?

Book a 30-minute technical meeting for your team.

We will show you Opendome on a case like yours: your data, your policies and your processes.

Book a technical meeting