6 min read

AI for business: what it can really do with documents today

There is a lot of talk about artificial intelligence, but in a company only one thing matters: whether it saves work on everyday tasks. With documents it works well – if you know what to expect and where a person needs to check it.

OCR and AI: what is the difference

Two terms that do different jobs often get mixed up when it comes to documents.

OCR (optical character recognition) turns an image into text. From a scan or photo of an invoice it gets letters and numbers, but on its own it cannot tell which number is the total and which is the order number. If a PDF was created directly in software, the text can be extracted without OCR – OCR is needed mainly for scans and photos.

AI works with meaning. From the text it can identify the supplier, date, line items and totals, even when every supplier lays out invoices differently.

Together they make up what is called invoice data extraction or document data capture: the document becomes structured data that the system can work with.

What really works today

The benefit is most visible with recurring documents:

  • Reading invoices – supplier, document number, dates, line items, tax base, VAT and amount due.
  • Delivery notes – items and quantities that arrived, ready for goods receiving.
  • Matching to the purchase order – the system compares what you ordered with what arrived and shows the differences.
  • Checks – the line items add up to the amount due and the same document will not be processed twice.
  • Sorting – telling an invoice from a delivery note or an order and filing each in the right place.

What matters is that the result does not end up in yet another spreadsheet to retype. The data should go straight into stock, purchase orders or accounting – wherever someone would otherwise enter it by hand.

A document’s journey from scan to stock

This is what processing an incoming document looks like when OCR and AI are part of the business system, not a stand-alone gadget:

How an incoming document travels

  1. The document arrives

    As a PDF by e-mail, on paper that gets scanned, or as a photo from a phone.

  2. Reading the text

    Text is extracted from a PDF directly; for a scan or photo, OCR recognizes it.

  3. Recognizing the data

    The system identifies the supplier, document number, dates, line items and amounts.

  4. Checking and matching

    The data is compared with the purchase order and the totals are checked. Differences are highlighted.

  5. Confirmation by a person

    If something does not match or is unclear, a person decides – correcting the data, confirming it or sending the document back.

  6. Posting

    The goods are received into stock and the document is prepared for posting to the accounting system the company uses.

Where a human needs to check

AI makes different mistakes than people do. It does not get tired or skip a line out of inattention, but with a poor scan, an unusual layout or a handwritten note it can misread a value – and seem confident while doing so.

That is why I design solutions so that a person decides where it matters:

  • when a document does not match the purchase order,
  • when the system cannot read a value reliably,
  • with a new supplier or an unusual document,
  • when approving a payment and in anything with financial or legal consequences.

Who does what better

PersonAI and OCR
Retyping dataSlow, typos creep in with large volumes.Fast and tireless, can make mistakes with a poor scan.
Different invoice layoutsHandles any layout, but it takes time.Handles common layouts, unusual documents need checking.
Handwritten notes and stampsReads them and understands the context.Harder to read, the result needs checking.
Comparing with the purchase orderTedious with long documents.Instant, highlights the differences.
Deciding on a mismatchDecides – knows the supplier and the context.Does not decide, only flags it.
ResponsibilityLies with the company and its people.Bears none – it is a tool.

What e-invoicing will change from 2027

From 1 January 2027, VAT payers in Slovakia will issue invoices for domestic supplies to businesses and public authorities as e-invoices. An e-invoice is a structured XML file following the European standard EN 16931, delivered by a delivery service provider on the Peppol network. Every legal entity and every business must be able to receive e-invoices, even if it is not a VAT payer.

For document processing, this is good news. The number, date, line items, amounts and VAT are tagged in the XML, so they are read precisely and an e-invoice needs no OCR. A PDF or a scan, on the other hand, is not an e-invoice.

OCR and AI will not lose their purpose, though. Even after 2027, documents that the obligation does not cover will keep coming:

  • invoices from suppliers who are not VAT payers – they do not have to issue e-invoices,
  • invoices from abroad – cross-border e-invoicing is planned only from 2030,
  • delivery notes, orders and other accompanying documents – e-invoicing covers invoices, self-billed invoices and corrective invoices,
  • older documents in the archive that you want in the system.

So a company will have two paths at once: XML will be read directly, paper and PDF will be read by OCR. For the system the result is the same – a document ready for checking and posting. You will find details on the obligation in the E-invoicing 2027 guide.

How to get started with AI for documents

AI solutions for business do not have to start with a big project. A sensible approach is short:

  1. Pick one type of document that takes up most of your time – for example delivery notes from regular suppliers.
  2. Collect samples – real documents, including poor scans.
  3. Test the solution on your documents, not on a vendor’s demo.
  4. Decide where a person makes the call and what happens on a mismatch.
  5. Expand gradually to more suppliers and document types.

How I do it

In PATRIXA Business, goods receiving works exactly like this: the text will be extracted from the PDF delivery note, using OCR for scans, the items will be matched to the purchase order and the system will show a comparison of ordered and delivered goods. Document reading is handled by a separate Python service.

For e-invoices, I am preparing an XML document reader. It will read the document directly and then process it the same way: checking, matching to the purchase order, goods receiving and posting to the accounting system the company uses.

I use AI where it makes sense, and we will verify each solution on real documents first. You will find more on the AI and OCR document processing, E-invoicing and XML documents and System integration pages. If you are also dealing with stock, read the article Inventory management: Excel, off-the-shelf software or a custom system?

Retyping documents by hand?

Tell me which documents you receive and where you retype them today. I will suggest what can be read automatically and where a person should decide.