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:
- The language model: it reasons and decides. It can be swapped for another one.
- 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.
- 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.
- The company's data: customers, invoices, contracts, emails. It is what the agent knows about your business.
- 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:
- 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.
- 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.
- 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.
- 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
- Anthropic, «Building effective agents», 2024.
- OWASP Gen AI Security Project, LLM01:2025 Prompt Injection.
- Gartner, «Gartner Predicts Over 40% of Agentic AI Projects Will Be Canceled by End of 2027», 25/06/2025.
- Air Canada ordered to pay customer who was misled by airline's chatbot, The Guardian, 16/02/2024.