Fin Agent
An AI finance department that reads every e-invoice and never does the maths
Fin Agent runs the day-to-day finance of a Croatian business. It pulls every e-invoice and bank statement, checks them, flags what's wrong, forecasts cash and answers questions in plain language. The AI explains and drafts. Every number comes from plain, tested code.
- Industry
- Finance and accounting
- Services
- AI engineering, product design, full-stack development
- Timeline
- June to September 2026
- Platform
- Web app, self-hosted with Docker

The brief
Running finance for a small Croatian business means chasing the same things every month. Did every supplier send their e-invoice? Who hasn't paid? What do we owe in VAT? Will there be enough cash in three months? The answers were all there, spread across the national e-invoice platform, bank statements, email and spreadsheets.
The goal was one place that collects everything automatically, checks it, and tells the owner what needs attention. AI should make it easier to understand, not become a new source of mistakes in the numbers.
What we built

It notices what's wrong before you do
Every incoming and outgoing e-invoice is pulled in on a schedule, parsed and checked. Clear rules catch overdue invoices, a recurring supplier invoice that didn't arrive, duplicates and gaps in numbering. Each alert has an Explain button that asks the AI to describe what happened and what to do about it.

Ask your finances anything
A chat agent answers questions like "who still owes us money?" or "what's our VAT position this month?". It uses about 25 tools to look up the real figures instead of guessing. The few tools that change anything, like excluding an invoice from receivables, are reversible and logged.

A cash forecast you can check line by line
The forecast starts from the latest bank balance and adds committed invoices, recurring payments and active proposals. Every line behind the projection is listed, so nothing is a black box. The AI can add a short commentary on top, but it never changes the numbers.
Also in the product
- Bank statements imported and reconciled against invoices, with totals that must balance or the import stops
- VAT overview and e-PDV export for the tax return
- Receivables aging and payment reminders that wait for approval before they're sent
- Supplier invoices that arrive by email captured automatically
- Monthly reports and an accounting package for the bookkeeper
- Invoices issued straight from the app
- AI-written sales proposals exported as branded PDF decks in Croatian or English
- A quarantine for documents that fail to parse, so nothing is silently lost
How we built it
One rule shaped everything: deterministic core, AI at the edge. Totals, VAT, aging and forecasts are plain code with tests. The AI reads, explains, drafts and answers, and its output is checked against a schema before it's used. Nothing leaves the system, whether it's a reminder or an invoice, until a person approves it.
We tested the parser against 37 real e-invoice variants, from reverse charge and credit notes to tourist tax, and wrote more than 900 automated tests along the way.
Backend
- Python 3.12
- FastAPI
- PostgreSQL 17
- SQLAlchemy
AI
- Anthropic Claude in three tiers (Haiku, Sonnet, Opus)
- Tool-using agent
- Structured output with validation
- Prompt caching
Documents
- UBL 2.1 and EN 16931 e-invoices
- WeasyPrint PDF reports
- Excel exports
Infrastructure
- Docker Compose
- Scheduled jobs
- Data kept in the EU
- automated tests
- 929
- real e-invoice variants in the test set
- 37
- tools the chat agent can use
- 25
- amounts calculated by the AI
- 0
Timeline
- June 2026
First version from written specs: e-invoice ingestion, checks and alerts, the AI layer, reports, receivables, dashboard, forecast and the chat agent.
- July 2026
Docker setup, bank statement import and reconciliation, invoice sending, financial reports, the accounting package and the VAT page. Then an executive overview with charts and AI explanations for alerts.
- August 2026
AI proposal writing, from a chat to a branded PDF deck, and prompt caching to keep model costs down.
- September 2026
Forecast based on the real bank balance, and reversible actions for the chat agent.
Where it is now
Fin Agent runs every day. The owner opens one dashboard instead of five places, sees what needs attention first, and asks questions in plain language instead of digging through exports.
Because the money maths never depends on a model, the numbers can be trusted, and the AI is free to do what it's good at: explaining, summarising and drafting.