Guide

OCR and automated invoice data capture after KSeF: where it still makes sense and how to implement it

This guide is for CFOs, chief accountants and owners of companies where someone still retypes data from documents into a system. Since 2026, domestic purchase invoices in Poland arrive through KSeF as ready-made data, so the question looks different today than it did two years ago. We show which documents are still worth reading automatically, how that works and how to implement it so that errors do not reach the accounts.

Author: Kacper Włodarczyk, CEO of ALGORCOMPPublished: May 14, 2026Reading time: 11 min readDocument automationFor: Mid-sized company
OCR and automated invoice data capture after KSeF: where it still makes sense and how to implement it

What OCR is, and what intelligent document processing is

OCR (optical character recognition) is a technology that turns an image of a document into text. It works like a very fast typist: it will copy everything it sees, but it does not know which number is the gross amount and which is the bank account number.

Intelligent document processing (known in the industry as IDP) goes a step further. The system recognises the type of document, finds specific fields on it, such as the tax ID, date and amounts, and saves them in a structured form. It then checks them against the company’s rules and passes them on.

In practice this difference is crucial. OCR alone lets you search an archive for an invoice by keyword. Only full processing lets you pass the data on for approval and posting without retyping. In the rest of this article we simply talk about automated document reading.

What KSeF has changed, and which documents still arrive as PDFs or on paper

From 1 February 2026 every company in Poland receives invoices through KSeF, Poland’s National e-Invoicing System – the government platform for invoices between businesses. An invoice from a Polish supplier arrives there as a file with the data in separate fields: tax ID, amounts, VAT rates and line items. There is no need to read them from an image; you simply download them from KSeF into your accounting system.

Until 31 December 2026, some of the smallest suppliers may still issue invoices outside KSeF if their invoiced sales do not exceed PLN 10,000 a month including VAT. Such invoices will keep arriving by email until the end of the year. The documents listed in the table below, however, stay outside KSeF permanently.

If your company imports a lot, uses foreign cloud services or handles many warehouse documents, the stream of paperwork to read may still be considerable. If you buy almost exclusively in Poland, you may find that the problem of retyping invoices has largely disappeared.

Where document data comes from after KSeF
Document typeHow it arrivesIs automated reading needed?
Invoice from a Polish companyThrough KSeF as structured dataNo – downloading it from KSeF into the accounting system is enough
Invoice from a small supplier using the exemption until 31 December 2026PDF by email or on paperYes, temporarily – until the end of 2026
Invoice from a foreign supplier with no registered office in PolandPDF by email or from the supplier’s portalYes – permanently
Receipts and business travel billsPhoto or paperYes, if there are many of them
Delivery documents, consignment notes, acceptance reportsPaper, scan, PDFYes, if they are used to check invoices
Customer orders in PDFEmailYes, if they have to be retyped into the sales system
OCR and automated invoice data capture after KSeF: where it still makes sense and how to implement it

How automated document reading works, step by step

Take a hypothetical distribution company that receives an invoice by email from a German supplier. The whole process takes ten to twenty seconds and consists of several steps that look similar in any tool.

The most important element is the confidence score. For each field, the model states how confident it is in the reading, on a scale from 0 to 1. The company sets a threshold: above it, the data moves on automatically; below it, the document goes to a person. In Microsoft’s examples the threshold is 0.65, but the right value is set by testing on your own documents.

  • Intake: the document lands in one place, such as a SharePoint library, whether it came by email, from a scanner or from a supplier portal.
  • Classification: the system determines whether it is an invoice, a credit note, a receipt or a delivery document, because each follows a different path.
  • Field extraction: the system pulls out the supplier details, document number and dates, amounts, currency, purchase order number and line items.
  • Checks: rules verify that the data is consistent and matches what the company knows about the supplier and the order.
  • Hand-off: a correct document goes for approval and then into the accounting system or ERP (the integrated system for managing the business).
  • Exceptions: a document with low reading confidence or a failed check goes to a separate queue, where a person corrects it.

Why the checks after reading matter more than the reading itself

Even a good model sometimes gets a digit in an amount wrong or mistakes the purchase order number for the invoice number. If nothing catches this, the error reaches the accounts and only comes to light when balances are reconciled. That is why most of the implementation work concerns the rules that check the extracted data.

Some checks are required by law. For a transaction above PLN 15,000 with a Polish taxpayer, paying into an account that is not on the Polish VAT white list means losing the tax-deductible cost. The exception is notifying the tax office within 7 days of ordering the transfer. So it is worth building the account check into the workflow before the invoice goes for payment.

The following checks usually catch most reading errors and fraud attempts:

  • The line items add up to the net amount, and net plus VAT equals the gross amount.
  • The supplier exists in the supplier master data, and their EU VAT number is active in the EU’s VIES database.
  • The bank account matches the supplier master data and, for a Polish taxpayer, the VAT white list as well.
  • The invoice has a purchase order number, and the amount and quantities are within the order.
  • The same invoice number from the same supplier has not appeared before, which protects against paying twice.
  • The currency and exchange rate follow the rules set out in the accounting policy.
An accountant comparing data read from a foreign invoice with a preview of the document on screen

Almost any tool can read a document today. The difference between a good and a bad implementation is what happens when the reading is uncertain.

How much time you will save: how to calculate it on your own data

Tool vendors like to quote the percentage of documents handled without human involvement. Such figures are of little value, because they depend on scan quality, the number of suppliers and how strict the rules are. It is better to calculate the effect on your own documents.

Say a company receives 150 foreign invoices and receipts and 250 delivery documents a month, 400 documents in total. By our estimate, entering one by hand takes 4 minutes, which is 1,600 minutes, or about 27 hours a month.

After automation, someone still reviews each document for a minute, and corrects one in five for another 3 minutes. That is 400 minutes plus 240 minutes, 640 minutes in total, or about 11 hours. So the company saves about 16 hours a month, which at PLN 80 an hour comes to about PLN 1,280 a month and PLN 15,360 a year.

Plug in your own document numbers, times and rate. If the result is small compared with the cost of licences and setting up the workflow, automated reading is not the first step worth taking.

Which tool to choose for reading documents

In a company that works on Microsoft 365, the simplest route is AI Builder, a set of prebuilt AI models available in Power Automate. The invoice model supports Polish and several dozen other languages, and if it struggles with an unusual document, you can train it further on your own examples. From 1 November 2026, new Premium licences no longer include AI Builder credits. Reading is therefore charged in Copilot credits, and the cost depends on the number of pages processed.

For large volumes or unusual documents, developers turn to Azure Document Intelligence, the Microsoft service on which AI Builder’s reading is based. It gives more control but requires your own integration. On the other hand, many accounting and ERP systems already have built-in PDF invoice reading, which is often enough when document numbers are small.

Microsoft Copilot and other AI assistants are good at summarising a single document or answering questions about its content. They cannot, however, replace repeatable reading of hundreds of invoices with checks and a recorded history. You will find a comparison of the most common options in the table below.

Comparison of typical ways to read documents automatically
SolutionWhen it makes senseWhat to watch out for
Reading built into the accounting or ERP systemYou mainly read invoices, and the system has such a moduleCopes poorly with delivery documents and orders; limited check rules
AI Builder in Power AutomateThe company works on Microsoft 365 and wants to combine reading with an approval workflow in SharePoint and TeamsThe cost in Copilot credits grows with the number of pages; someone has to maintain the flows
Azure Document IntelligenceThousands of documents a month, or your own system into which reading has to be pluggedRequires a developer and your own integration
AI assistant, e.g. Microsoft CopilotIndividual long documents for a person to read and summariseNot suitable for high-volume, repeatable reading without checks

The most common implementation mistakes, and when automation does not pay off

The first mistake is automating without checking how many non-KSeF documents are actually left. It happens that a company buys an invoice-reading tool, and a few months later it turns out that it downloads its domestic invoices from KSeF anyway. Always start by counting documents by type.

The second mistake is having no path for exceptions. A document with an uncertain reading must go to a specific person, with a deadline and a preview of the file next to the extracted data. Without this, doubtful documents get stuck and people go back to entering data by hand. Other typical mistakes:

  • Reading without a connection to the accounting system – the data is correct, but someone retypes it by hand anyway.
  • A confidence threshold set too low in order to show a high share of documents processed without a person, which lets errors through.
  • One workflow for KSeF invoices and another for documents that are read automatically, instead of one approval workflow for both.
  • No decision on where and for how long to keep the originals before the first documents go into the new archive.

Where to start: a plan for the first few weeks

It is best to start with one type of document that arrives in large numbers and has a consistent layout. In trading companies this is usually foreign invoices; in manufacturing and logistics companies, delivery documents.

The following steps let you check whether automation makes sense before you spend money on a full rollout:

  • Count the documents from the last three months by type and source: KSeF, email, paper, supplier portal.
  • Measure how long it currently takes to enter one document of each type by hand.
  • Choose one type of document and collect 50–100 real examples, including poor-quality ones.
  • Test the reading on them and record in how many cases the data was correct without any corrections.
  • Write down the check rules and decide who handles doubtful documents and within what deadline.
  • Connect the reading to the approval workflow and the accounting system, and after a few weeks compare working time with your baseline measurement.

Related topics in the knowledge base

Read next

FAQ

Automated invoice reading – frequently asked questions

Questions that CFOs and accountants usually ask when a company is considering automated document reading.

After KSeF, do I still have to keep scans of foreign invoices?
Yes. You keep documents related to VAT settlement until the tax liability becomes time-barred, usually 5 years from the end of the year in which the tax payment deadline fell. KSeF only stores invoices that went through it, so you have to look after the archive of non-KSeF documents yourself.
Can a foreign supplier send an invoice through KSeF?
It can, but it does not have to if it has no registered office or fixed establishment in Poland. In practice, most foreign invoices still arrive as PDFs. If the supplier has a branch in Poland that is involved in the sale, the situation may be different – it is worth clarifying this with a tax adviser.
Is reading invoices in the cloud GDPR-compliant?
It can be, if the data is processed in a European region and you have a data processing agreement (DPA) with the provider. Company invoices usually contain little personal data, but business travel bills and invoices from sole traders do. For particularly sensitive documents, consider processing them on your own infrastructure.
Will automated reading replace the accountant?
No. It takes the retyping off her plate, but decisions on how to classify a cost, explaining discrepancies and handling doubtful documents remain with a person. In practice, what changes is the scope of her work rather than the number of people needed.
What about handwritten documents, such as acceptance reports?
Modern models cope with clear handwriting, but reading confidence is noticeably lower than with printed text. For such documents it is better to plan from the start that a person will check every one, or to replace the paper report with a form on a phone.

About this page

About the author

Kacper Włodarczyk — CEO of ALGORCOMP

Kacper Włodarczyk

CEO of ALGORCOMP

Kacper specializes in implementing Microsoft 365 Copilot, Copilot Studio, Power Platform (Power Automate, Power Apps, SharePoint) and AI agents for mid-sized B2B companies in Poland. He leads dozens of projects covering AI strategy, Power Platform governance, document workflow automation and sales processes. In his writing he focuses on the practical side of AI adoption in organizations — from the first proof of concept to company-wide rollout — with particular attention to data security, compliance (GDPR, NIS2, the AI Act) and return on investment.

Meet the team

Want to find out whether automated document reading would pay off in your company?

We will help you count your non-KSeF documents, test the reading on your own examples and connect it to an approval workflow in Microsoft 365.

Featured

Related articles