Skip to content

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.

By Thyego Waknin, founder of Visualidata · November 30, 2026 · 4 min read

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 tutorial in 2 minutes and 14 seconds, in 4K, narrated in Portuguese. Screens from the financial system I use, with a fictional company and fictional data. The narration is my cloned voice.

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.

The preview: 36 new entries, no duplicates and 13 without a rule, before saving.
The preview: 36 new entries, no duplicates and 13 without a rule, before saving.

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.

Imported: the system balance matches the bank's, and 12 bills have already been matched to the statement.
Imported: the system balance matches the bank's, and 12 bills have already been matched to the statement.

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.

What was left open: two invoices paid with a single Pix and one payment with a different amount.
What was left open: two invoices paid with a single Pix and one payment with a different amount.

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.

The 13 entries no rule caught, with the "To classify" filter.
The 13 entries no rule caught, with the "To classify" filter.

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.

The gas station rule, with the test: it applies to 3 entries this month.
The gas station rule, with the test: it applies to 3 entries this month.

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

One-off expense: classified by hand, no rule, with the reason noted.
One-off expense: classified by hand, no rule, with the reason noted.

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.

The list of rules. The last five were proposed by Claude and approved.
The list of rules. The last five were proposed by Claude and approved.

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.

November results for the fictional company, with the categories the rules filled in.
November results for the fictional company, with the categories the rules filled in.

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.

The overview after the close: balance checked, the month's bills and what's still yours to handle.
The overview after the close: balance checked, the month's bills and what's still yours to handle.

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.

Start with the assessment

Want to know where your company should start?

On the 45-minute call I look at what you already have (spreadsheets, systems, reports) and give you priority, scope and timeline in writing, before any contract.

  1. I learn your situationThe decisions that take too long, the systems and spreadsheets involved, and where your team loses time.
  2. I show you the pathWhat to do first and what it changes day to day.
  3. You get a written reportPath, priority and scope of the first project, at no cost.

Prefer to talk now? WhatsApp +55 27 99886-1680

To send this form, your browser needs JavaScript turned on. You can also email [email protected] or message me on WhatsApp at +55 27 99886-1680.

Request the call

Four fields, two minutes. I reply within 1 business day.

I use your data only to reply to this request, in line with the LGPD (Brazil's data protection law). Details in the Privacy Policy (in Portuguese).

Ask a question on WhatsApp