In brief
OCR reads an invoice: it turns the image into text and fills in fields such as the tax ID, number, date and amounts. An AI Worker understands the invoice: it knows what it is for, matches it with the purchase order and goods receipt in the ERP, checks prices and quantities and proposes what to do with it. OCR is enough when documents have a fixed layout and a system handles the next steps with simple rules. Since 2026, Polish domestic invoices arrive through KSeF as XML files, so reading them is no longer the problem; understanding them is.
Three levels of working with a document
"Automated invoice processing" covers three different things. It is worth separating them, because each solves a different problem.
| Level | What it does | Result | Where it stops |
|---|---|---|---|
| OCR (optical character recognition) | turns a page image into text | searchable text | does not know which string of digits is the tax ID |
| field extraction | finds fields using a template or a trained model | tax ID, number, date, amounts, line items | does not know what the invoice is for or whether it is correct |
| understanding (AI Worker) | reads the content, compares it with ERP data, assesses it | invoice matched to the order, coding, list of discrepancies | leaves irreversible decisions to a person |
Modern OCR tools usually combine the first two levels: they recognize text and extract fields. That is a lot, but it is still reading. The answer to "can I post this invoice?" sits on the third level.
The same document, two approaches
An example: an invoice from a maintenance company with the line "Service work per order 4512/10, 6 h, 180 PLN/h".
An OCR tool reads every field correctly: the supplier, tax ID, 1,080 PLN net, the VAT rate. A complete record goes into the system. It will never learn, however, that order 4512 allowed 4 hours at 160 PLN, and that the service contract covers the first two hours as part of the subscription.
An AI Worker does the same and then goes further. It finds order 4512 in the ERP, compares the hours and the rate with the contract, notices two discrepancies and describes them on the invoice: "6 h instead of 4 h on the order, rate 180 PLN instead of 160 PLN in the contract, 2 h covered by subscription". It leaves the decision to pay or dispute to a finance person.
The difference is not in reading quality. It is in what happens after the reading.
KSeF changes the equation
The largest companies from February 1, 2026, and all others from April 1, 2026, issue invoices through KSeF, Poland's National e-Invoicing System. An invoice in KSeF is a structured XML file: the tax ID, amounts and line items sit in defined fields, so there is nothing to read from an image. Until the end of 2026 there is an exception for taxpayers with low monthly sales, who may still issue invoices outside KSeF.
For accounts payable this moves the problem. For domestic invoices, OCR is no longer needed, because the data arrives ready. What remains is what OCR never did: understanding what a line like "service per order" refers to, matching the invoice with the order and goods receipt, coding and posting. For invoices from KSeF this work is done by the Purchase invoice checker. Receiving e-invoices is described in KSeF and cost invoices.
Reading images does not disappear entirely. Invoices from foreign suppliers, receipts, delivery notes and handover reports still arrive as PDFs or scans. Reading is still needed there, and the AI Worker uses it as one of its tools.
When OCR is enough
To be fair: there are processes where an AI Worker would be overkill.
- Digitizing an archive. Thousands of old invoices need to become searchable files. Nobody will compare them with orders.
- A fixed form in large numbers. The same documents from a few suppliers, always in one layout, and the next steps are simple: record them in a register and route them for approval.
- The process ends with the data. If the goal is to fill a register, and the ERP already matches against orders by rules, field extraction is enough.
- A small volume of documents outside KSeF. A dozen foreign invoices a month are easier to check by hand with OCR's help than to put through a new process.
OCR is also cheaper per page and predictable: the same image gives the same result.
When you need an AI Worker
- The invoice has to be compared with the order, the goods receipt or the contract, and today a person does it.
- Line items are described in the supplier's own words ("service per order", "materials for project X") and you need to understand what they refer to.
- Documents arrive in many layouts and languages, and a template for every supplier is endless work.
- What counts is an explanation of the discrepancy, not just "field does not match".
An AI Worker can make mistakes of a different kind than OCR: not misreading a digit, but misinterpreting. That is why every proposal carries a trail of where it came from, and a person approves the posting. This risk is covered in Hallucinations in language models, and reading techniques in Reading documents with AI.
Questions and answers
Is invoice OCR still needed after KSeF?
Not for domestic invoices from KSeF, because the data arrives as an XML file. OCR is still useful for foreign invoices, receipts, delivery notes and paper scans, and for invoices from taxpayers who may issue them outside KSeF until the end of 2026 because their monthly sales on such invoices do not exceed PLN 10,000 including VAT.
Does an AI Worker replace the OCR tool we already have?
It does not have to. If your OCR reads documents well, the AI Worker can work on its output: take the extracted fields and do what OCR does not, which is matching against the order and coding. Replacing it only makes sense when the reading is poor.
Which is more accurate at reading amounts?
With a good scan both approaches read amounts correctly. The difference shows in the checks: the AI Worker verifies that the line items add up to the invoice total and match the order, so a misread shows up as a discrepancy instead of quietly moving on.
How many invoices a month justify an AI Worker instead of OCR?
What counts is not the number of invoices but the time the team spends comparing them with orders and explaining differences. If that is several dozen hours a month, a pilot is worth calculating. If invoices are simple and rarely disagree, OCR plus rules in the ERP is enough.