
When we started our AI journey, we did not start by building agents. We started with the data. First, one data platform instead of three, at a considerably lower cost than keeping three. Then governance: 2,100 data entities, such as sales, stock, stock-outs and price, each with an owner, a known origin and an agreed meaning. Only then did we open the door to the business, with AIOps: ten-week editions, business and technology together, each ending with solutions in production.
Over the last year we ran 55 AI solutions through our adoption programme. Of those, 47 were adopted, in production or in rollout. Eight were not. Only one stopped because of the model. The other seven stopped at one of four questions that we now ask every agent before we let it out of the pilot. None of the eight stopped because of data that was already on the platform, and most of the 47 adopted run on it.
A pilot proves it works once. Production has to prove it every day. The four questions are the difference between the two.
The four questions
In the talk each question had one word: access, understand, answer and measure. Here the last one is asked the way you would ask it in a meeting: does it pay?
1Can it access?
Does the agent have an identity of its own and the right permissions on the systems and data it needs, to read and to write, with written rules about what it may change?
Access went well with commercial contracts. The agent has its own identity, separates the signed contracts from the unsigned, prepares the follow-up and updates the control file itself: the one place it is allowed to write. It went badly with a non-core service we run with a partner: the data sat on their side, and an agent of ours does not get into systems we do not control. That part is still unresolved.
An agent needs an access badge too.
2Can it understand?
Can it read what is there, and was the meaning agreed before it started reading?
This was the question that cost us the most: four of the eight stopped here. It went well with store inventory: an agent that combines fixed rules with AI reasoning to explain why a count does not match, and gets the explanation right first time in four out of five cases. It works because someone decided beforehand what counts as a discrepancy. It went badly with maintenance requests checked against inspection reports. In the pilot, with clean files in dedicated folders, it worked. In production there was no standard for the reports or for the requests themselves, and it is hard to ask a machine for consistency where we were never consistent. Our data platform had solved the tables. Documents written for people had never been data. Think of your own shared drive: how many years of decisions sit in presentations and minutes nobody will open again? Organisations now write for two readers, people and agents. For every type of document an agent will read, we agree the structure first, and the new document is born in it. In several cases we had to apply it retroactively, to documents that already existed.
Nobody had a data problem until an agent needed to read it.
3Who answers for it?
When the agent acts, is there a named owner who answers for it, with clear rules defined before it was built?
The same inventory agent has an owner, the Operations department, and the rule is written down: what it does not get right the first time goes to the store's stock lead. With the owner and the rules in place, the plan to extend it across the whole network was approved in one go. With a voice assistant meant to call business customers about overdue payments, we got to the rules only after building it, and it never went live. What holds you back is not the rules. It is getting to them late.
An agent acts. A person answers for it.
4Does it pay?
Does the value the agent creates outweigh the cost of building and maintaining it?
We measure in hours and in euros, and every solution has to pay for itself, maintenance included. Across the six completed editions, the teams estimate 153,000 hours a year can be recovered. It went well with Storecast: an agent that writes and reads out each store's KPIs, which every store director used to prepare by hand for the start-of-day meeting. It saves 15 minutes per store per day across about 400 stores, an estimated 35,000 hours a year. One store director told me he listens to it in the car on the way to work. It went badly with an agent that wrote store visit reports. It worked in the pilot, and would have recovered 20 hours a year. We did not adopt it: it would cost as much to maintain as one that recovers about 300 times more. Maintaining an agent means infrastructure, model usage and the people who review it when the documents, the systems or the model change. On our numbers, a year of maintenance runs between 30 and 40 per cent of the cost of building; in classic software, between 10 and 20. It depends on the model and on token prices, and it will move.
Building is paid once. Maintaining is paid forever.

Two are about data. Two are your decisions.
Access and understanding are solved with work: permissions, formats, agreed meaning. Answering and paying cannot be bought: someone has to decide who owns the agent, what the rules are, and whether it pays. A pilot gets around the first two with hand-picked data and skips the last two, because someone is always watching and nobody is asking it to pay yet. That is why so many pilots work and so few reach production.
The answers are built once
The questions are asked of every agent. The answers are built once, in an agent platform with one piece per question. Identity and access, so the next agent gets its badge the way the contracts agent did. Machine-readable formats and a semantic layer, so the meaning is agreed once instead of once per agent. A registry with an owner and rules enforced while the agent runs, which is what the inventory agent had and the voice assistant did not. Cost and value per agent, maintenance included, which is what stopped the visit-report agent. Across all of it, every run is logged and evaluated: the result, the cost, and whether a new model does better than the last. Underneath, security and compliance, with a common part and a per-agent part; we designed that layer against the AI Act, ISO/IEC 42001, the NIST AI RMF and the OWASP Top 10 for Agentic Applications, as a reference, not a certificate. It is a first version, and it will change with the technology. Even so, it already carries agents at scale. Mariana, the Continente customer assistant, handled more than 90,000 complete conversations in September. It was built in-house with what we learned in the programme, and every conversation is traced and auditable: which tools it used, how long it took and what it cost.

What I would do on Monday
Take your most advanced pilot and write down the four answers, one line each. If any line stays blank, that is where it will stop once it leaves the pilot. The first two are work. The last two need whoever is in charge to sit down and decide, and that is the harder meeting.
We are only on version one. We will keep changing and improving our process and our platform, and we are available to discuss and learn with you. There is no need to learn this alone.
Hélder Dias Ribeiro, Chief Digital & Technology Officer, Sonae MC.