Let the AI Explain, Never Calculate
Language models are good at reading, explaining and drafting, and unreliable at arithmetic. Here is how we split the work in Fin Agent so every number comes from tested code and the AI still does something useful.

Working on something with AI?
Tell us what you have in mind. We'll tell you honestly whether AI is the right tool for it.
Get in touchIntroduction
The first question owners ask about AI in finance is the right one: can I trust the numbers?
If a language model does the maths, the honest answer is no. Models predict text. Most of the time the sum they write down is correct, and sometimes it isn't, and nothing in the output tells you which time this is.
When we built Fin Agent, an AI finance department for a Croatian business, we settled this with one rule: the AI explains, and it never calculates.
What goes wrong when a model does the maths
A model that adds up twelve invoices is not adding. It is producing the digits that are most likely to follow. That works surprisingly often, which is exactly the problem: you stop checking.
The failures are quiet. A VAT total that is off by one invoice. A rounding rule applied the wrong way. An overdue list that misses a credit note. In a chat demo nobody notices. In a tax return somebody does.
The rule: deterministic core, AI at the edge
In Fin Agent every amount comes from plain code:
- Invoice totals and VAT
- Receivables aging
- Bank reconciliation
- The cash forecast
That code has tests. We ran the invoice parser against 37 real e-invoice variants, from reverse charge to credit notes and tourist tax, and wrote more than 900 automated tests along the way. When a bank statement doesn't balance, the import stops instead of guessing.
The AI sits around that core. It reads documents, explains what the numbers mean, drafts text and answers questions.
What the AI is allowed to do
Read. Supplier invoices that arrive by email are classified and their fields extracted. The output has to match a fixed schema, and it is validated before anything is saved. A document that fails goes to a quarantine where a person can look at it. Nothing is silently lost.
Explain. Every alert has an Explain button. The rule that raised the alert is plain code, for example "this recurring supplier invoice did not arrive". The AI turns it into a short note about what happened and what to do next.
Draft. Payment reminders and sales proposals are written by the model, and they wait for a person to approve them before they leave the system.
Answer. The chat agent has about 25 tools. When you ask "who still owes us money?", it calls the tool that runs the real query and reports what came back. It doesn't estimate.
How this works in practice
A few habits make the split hold:
- Tools return numbers, the model returns words. If an answer needs a figure, there is a tool for it.
- Structured output everywhere. The model fills in a schema. Free text is never parsed for amounts.
- The forecast is a list, not a guess. Every line behind the cash projection is shown. The AI can add a commentary on top, but it can't change a line.
- Writes are rare and reversible. The few chat tools that change anything, like excluding an invoice from receivables, are logged and can be undone.
Why this is better for the AI too
Once the model isn't responsible for arithmetic, you can let it do more of what it's good at. It can be conversational and summarise freely, because the worst outcome is a clumsy sentence, not a wrong tax figure.
It also makes the system cheaper to run. Small, fast models handle extraction and classification. A stronger model is only needed for reports and questions.
Where else this applies
The same split works anywhere a wrong number is expensive:
- Quotes and pricing
- Payroll and time tracking
- Stock levels and ordering
- Any report that goes to a regulator or a bank
Put the rules in code, test them, and give the model a way to look results up instead of making them up.
Closing
"Can I trust the numbers?" should have a simple answer: yes, because the AI never touched them.
See how Fin Agent works or read about our AI agents and workflows service.


