November 24, 2026
The AI gives you a revenue figure, and nobody knows where it came from
When an AI agent queries your ERP system, it sometimes invents columns or joins tables the wrong way. How to spot a wrong revenue figure, which question to ask about your system, and why every machine-produced answer has to bring its own query along.

"How much revenue did we do with customer Meier in the third quarter?" Two seconds later it says 184,320 euros. The figure looks right. It has the right order of magnitude, it has decimal places, it comes out of your own system. And nobody in the room can say how it came about.
That is the moment people talk about too rarely. Not the case where the machine obviously spits out nonsense, but the case where it is plausibly wrong.
Four ways that figure can be wrong
Take your own ERP system and the question about a customer's quarterly revenue. There are at least four places where a machine can work cleanly and still deliver the wrong number.
- It calculated gross instead of net, because the invoice table has a column
betragand right next to itbetrag_netto. - It did not subtract credit notes and cancellations, because those sit in a separate table whose name has nothing to do with invoices.
- It cut off by invoice date, while in your company you have always looked at the service date.
- It left out Meier's subsidiary, because that one has run under its own customer number since 2019 and the link between the two is recorded nowhere, only in the head of your inside sales manager.
None of these mistakes looks like a mistake. All four produce a figure you could put into a quote. That is exactly the problem.
What developers report from practice
This is not theory. A field report on Golem about AI agents and SQL describes what happens when you let language models loose on a database that has grown over the years. The agents invent columns that do not exist, join tables through fields that happen to share a name, and guess wherever the structure gives no answer. The report's finding is unspectacular and therefore useful. The stricter the data model and the clearer the naming, the less often the model gets it wrong. Meaningful names, clean relationships between tables, constraints that rule out nonsensical joins from the start.
Translated into plain terms, the quality of the answer depends less on the model than on the database it queries. And the database under your ERP system has, in most companies, grown over fifteen years. There you will find feld3, ZUSATZ_ALT and three columns that at some point held a revenue figure.
The question you should ask your IT provider
Before anyone lets an AI near your data, there is one question worth more than any product demo. Have someone show you the names of the fields the answer is supposed to come from.
If it turns out that there are three definitions of "revenue" in the company, that accounting uses a fourth and sales a fifth, then you do not have an AI problem. You have a terminology problem, and the machine is only making it visible. That, by the way, is the good news here. This work pays off even without AI, because it answers the same question your reports have been grinding against for years.
Every answer brings its own query along
The build rule that follows is simple. A machine-produced answer does not consist of a number. It consists of a number, the query that led to it, and one sentence in plain German about what was counted.
For the example above it would look like this. 184,320 euros, net, invoices with a service date between 1 July and 30 September, customer numbers 4711 and 4823, credit notes subtracted, cancellations excluded. Below that, expandable, the actual query. Whoever can read SQL reads it. Whoever cannot reads the sentence above it and notices immediately when "4823" is missing.
This costs little in development. The query exists anyway, it is usually just thrown away once the result is there. Delivering it along with the answer is a decision made while building, not an extra piece of technology. If a system puts out a number and nobody can trace where it came from, the number is worthless.
The point where a human decides
Between the machine's answer and the quote that goes to the customer stands a person. Not as a ceremony, but because that is exactly where the mistake shows up that the database cannot prevent. The inside sales manager sees "customer numbers 4711 and 4823" and knows that since January a third one belongs there too.
That is how we build it in the social automation for Kunst gegen Bares as well. The machine proposes, a human approves, and until then nothing is published. The half hour of formatting work goes away, the decision does not.
Where you start, and what it really costs
The first step is not the model. It is a narrow answer layer, ten to twenty reviewed views onto your data with names your people actually use, instead of four hundred tables full of historical abbreviations. The machine queries only that layer, everything else stays closed to it. That takes away its opportunity to guess wrong.
The honest effort here is not in the code. It is in the conversations where accounting and sales agree on what "revenue" means. Count on weeks, not days, and on more involvement from your own people than any demo suggests.
Who does the work is a second question. You can build and maintain it yourself if you have developers in house. You can rent a service per head and accept that your data model sits with a provider. And in between lies the path that gets overlooked most often, software on your own server, maintained by someone who runs it. We work in that category, because software only shows what it is worth once it is running. Which of the three paths suits you is decided by one question. Who, in case of doubt, looks at three in the morning to find out why a number is off.
Was this helpful?