Articles · Process automation
How to reconcile your bank statement with AI, step by step
Import the statement, classify it with rules the AI proposes and close the month. With screens from a real system and data from a fictional company.
The month-end close starts with the bank statement. Hundreds of lines, each one needing a category, and each incoming payment needing to match the invoice that generated it. Anyone who does it by hand knows it takes days, and that the mistake shows up right on the line nobody checked. I've already written about where month-end close time gets lost. Here is the approach I use to shorten the bank statement part.
The idea, in two sentences
- The AI writes the rule, it doesn't guess the category. The rule classifies the same way every month, and anyone can see why each entry landed where it did.
- The system only reconciles on its own what is certain. Whatever isn't certain is left for a person to decide.
I use this in my own company, on a custom-built financial system. To show the screens without exposing anyone's numbers, I set up a fictional company, Distribuidora Exemplo, with a month of made-up bank statement.
Step 1: import the statement
Virtually every bank exports statements as an OFX file: in online banking, under Statement, choose the period and the format. The system reads the file and shows a preview before saving anything.

Two safeguards happen automatically. First: nothing gets entered twice, so importing the same period again only brings in what's new. Second: the system compares the balance it calculated with the balance the bank reports in the file. If they don't match, an entry is missing.

Step 2: let the system match what is certain
Each invoice issued (in Brazil, a nota fiscal) becomes a receivable, and each boleto (a Brazilian bank payment slip) becomes a payable. When the payment shows up on the statement, the system links one to the other, but only when there's no doubt: exact amount, similar name and a close date.
In the example, 12 bills were matched during the import. Left open were two invoices the customer paid with a single Pix transfer (Brazil's instant payment system) and one customer who paid an amount different from the invoice. The system doesn't guess: it shows them to you to decide.

Step 3: classify the rest, with AI
The existing rules classified most of the statement. Thirteen entries were left to classify, and this is where AI comes in.

I ask Claude:
Look at these 13 entries to classify and propose rules. Whatever doesn't repeat, leave for me to classify by hand.
It groups what repeats. The gas station becomes fuel, the carrier becomes freight and the two merchandise suppliers go into a single rule. Five rules cover 12 of the 13 entries, and each one shows how many entries it catches before it takes effect.

What doesn't repeat doesn't get a rule. The forklift maintenance was classified by hand, with a note explaining why.

The following month, those 12 entries arrive already classified. The rules live in a list written in plain language, which anyone in the company can read and correct.

Step 4: the month closed
With everything classified, the month's results come out by group and by category, and a click on any amount shows the entries behind it.

The overview shows the balance checked against the bank and what still needs attention. In the example, that's the three incoming payments the system didn't match on its own.

Two precautions
- Financial data is sensitive. Use an AI plan that doesn't train on company data, and check this before sending the first statement.
- AI doesn't pay anything. It reads the file and proposes rules. Payments, banking and approvals stay with a person, and every new rule goes past someone's eyes before it takes effect.
Where to start
Start with one account and one month. Export the OFX, import it and note how many entries were left without a rule. Ask the AI to propose rules only for those, approve them one by one and import the next month. The difference shows in the second month, when most entries already arrive classified. If your bank or your management system doesn't export OFX, the path is the same: only the way you bring in the file changes.
Want a system like this?
If you want a system like this at your company, send me a message. I'll look at how your finance function works today (bank, spreadsheets and management system) and tell you where to start.

