Skip to content

Automated bank statement reconciliation: an AI Worker matching payments to invoices

DYNAMINDS Labs team · · 6 min

AI Workers

In brief

An AI Worker reconciles a bank statement like this: every day it reads the file from online banking, looks in the ERP for the invoice or invoices each payment settles, and rates its confidence in the match. Confident matches are prepared for posting with a single approval. Bulk payments, short payments, overpayments and transfers with unusual references go on a short list for review. A person approves the entry in the books and any refund of an overpayment.

Why reconciling bank statements takes so long

Most payments can be matched in seconds: the reference reads "FV/2026/11/0457", the amount equals the invoice and the sender's account belongs to a known customer. The time goes into the rest:

  • a customer pays a dozen invoices with one transfer referenced "November invoices",
  • a customer deducts a credit note or discount and pays less, without explanation,
  • the transfer comes from another company in the customer's group, not from the customer itself,
  • a foreign transfer arrives reduced by intermediary bank fees,
  • the payment is split into the net amount and VAT under Poland's split payment mechanism.

Every unmatched payment has two effects. The customer's balance is wrong, so the receivables team may send a reminder to someone who has already paid. And the suspense account grows, and at month end someone has to clear it in a hurry. The effect on days sales outstanding is covered in How to reduce DSO.

Where the AI Worker gets its data

The Bank statement checker from DYNAMINDS Labs uses three sources:

  • bank statements as files from online banking, most often in MT940 format or as ISO 20022 XML messages (camt.053), with the amount, date, sender's account and payment reference,
  • customer and supplier open items in the ERP, with invoice numbers, amounts, due dates and payments received so far,
  • the finance@ mailbox, where customers send remittance advices, meaning lists of invoices paid with a single transfer.

A remittance advice is often the key to a bulk payment. A customer pays PLN 84,312.40 with the reference "payment per advice 11/26", and the mailbox holds a PDF listing twelve invoices. The AI Worker connects the two. How to download statements from the bank automatically is covered in Integrating a company with its bank.

Matching order and confidence levels

The AI Worker goes through each line from the most reliable method to the least reliable and records what each result is based on.

MethodExampleConfidenceNext step
invoice number in the reference and matching amount"FV/2026/11/0457", amount exact to the centhighposting with a single approval
remittance advice in the mailboxa bulk transfer and a PDF listing invoices, totals matchhighposting with a single approval
customer and the amount of one open invoiceno number in the reference, one invoice with this amountmediumposting after review
customer and the sum of several invoicesthe three oldest invoices add up to the paymentmediumposting after review
amount without a known customerunknown sender, amount matches another company's invoicelowreview list
no matchnothing fitsnonereview list with a description

The company decides which confidence levels are posted by approving the whole list at once and which need line-by-line review. Early in a deployment, everything is usually reviewed. After a few weeks, once the log shows that high-confidence matches are correct, they are approved in bulk.

Special cases

Short payment. A customer paid PLN 9,840 against a PLN 10,000 invoice. The AI Worker checks whether the difference equals a credit note, an early payment discount or a debit note, and notes this next to the line. When nothing fits, it leaves the short payment for clarification with the customer, and the rest of the invoice stays open.

Overpayment. A customer paid the same invoice twice or rounded the amount up. The AI Worker flags the overpayment and the possible explanations. Refunding it or applying it to the next invoice is a decision for a person.

Duplicate. The same amount with the same reference two days in a row. The AI Worker marks the second payment as a possible duplicate instead of applying it to another open invoice of that customer.

Split payment. Under Poland's split payment mechanism (Article 108a of the VAT Act), the VAT amount goes to a separate VAT account and the net amount to the settlement account. Depending on the bank, statements show this as two transactions or as one transaction flagged as split. The AI Worker puts both parts together as one payment for the invoice.

Foreign transfer. An invoice for EUR 5,000, a payment of EUR 4,975. The difference may be an intermediary bank fee. The AI Worker flags it, and the accountant approves booking the difference as bank charges according to company policy.

Transfer from another group company. The AI Worker checks whether the sender's account has been used before to pay for this customer and proposes a match with a note. Reallocating a payment to another customer is approved by a person.

What stays with a person

The AI Worker prepares the reconciliation but does not post it. Three decisions always belong to the finance team:

  • posting the statement in the books, usually by approving the list of confident matches,
  • refunding an overpayment to a business partner, because money leaves the company,
  • reallocating a payment to another customer, because it changes the balances of two partners.

The result of the day is a statement broken down by invoice and a short list of items to review. The log shows why each payment was applied to a given invoice, which helps with balance confirmations, described in Automated balance confirmations, and with the auditor's questions. Patterns for safe ERP integration are covered in ERP integration: patterns and pitfalls. DYNAMINDS Labs starts with a free diagnosis, and a pilot usually takes 4 weeks on the company's statements and open items from recent months.

Questions and answers

How is this different from automatic matching in an ERP system?

ERP rules usually match a payment when the invoice number in the reference and the amount agree exactly. The AI Worker also handles what a rule cannot: bulk payments with a PDF remittance advice, short payments explained in an email, transfers from another group company. It gives a reason for every match, so each one is easy to check.

Does the AI Worker have access to online banking?

It does not need it for reconciliation. Statement files that the bank provides, or that the company's system downloads automatically, are enough. The AI Worker does not order transfers and has no rights to the account. It prepares a refund of an overpayment as a proposal, and a person orders the transfer.

What about statements in foreign currencies?

The AI Worker matches the payment in the invoice currency and flags differences that may come from bank fees. Conversion to PLN and exchange differences are booked by the accounting team according to the accounting policy, and the AI Worker does not change rates or valuations.

How many statement lines do you need for this to make sense?

What matters is less the number of lines than the share of difficult cases. A company with hundreds of payments a day from a few large customers with good references has little to review. A company with many small customers, bulk payments and deductions loses hours on statements every day.

Start with one task. Describe it, and DYNAMINDS Labs will prepare a free diagnosis.

Meet DYNAMINDS Labs

Read more: AI Workers

All in AI Workers →