Skip to content
Tell us about your project

AI and automation · · 4 min read

Automating invoice capture: classic OCR versus language models

Typing invoice data into the ERP by hand is one of the most repetitive jobs left in any company, and one of the easiest to automate badly. Here is the practical difference between the two ways of doing it, and how to decide which suits you.

What OCR does and does not do

OCR turns an image into text. It is mature, cheap and fast technology, and on a well-scanned document it is almost always right. The problem is that it returns loose text: it knows the page says "1,250.00", but not whether that is the net amount, the total or a line price.

That is why classic invoice capture works with templates: for each supplier you define where each field sits. It works very well when you always receive the same invoices from the same twenty suppliers, and breaks the moment one redesigns theirs or a new one appears.

The large document extraction platforms added layers on top for exactly that reason: Google Document AI and Amazon Textract do not stop at text, they identify tables and key-value pairs and, for invoices, return concrete fields. That is the middle ground between raw OCR and a language model.

What a language model adds

A language model understands the document, it does not just read it. It can pull data from an invoice it has never seen, work out that "Net amt." is the taxable base, handle an invoice in another language and match lines to the delivery note they belong to.

In exchange it has two real drawbacks. It costs more per document than OCR, although today the price per invoice is small next to a minute of someone time. And it can fail in a dangerous way: instead of leaving a field empty, filling it with something plausible.

The answer is not to pick one. What works is combining them: structured extraction for the fields that are always there, a model for the odd documents and for anything needing interpretation, and an automatic check at the end.

The check that changes everything

An invoice has a wonderful property: the numbers have to add up. The sum of the lines must match the base, base plus taxes must match the total, and the total must match what is going to be paid. That lets you verify almost the whole extraction automatically, with nobody reviewing it.

The same goes for identity data: the tax number and supplier name are checked against your supplier master, and the order number against the real order. When everything matches, the document goes through on its own; when something does not, it lands in a human review queue with the doubtful field flagged.

That is the design that makes the project pay: not automating one hundred per cent, but automating the eighty that reconciles and letting a person glance at the rest in seconds instead of typing everything.

  • Arithmetic check: lines, base, taxes and total
  • Cross-check against the supplier master and the purchase order
  • Duplicate detection by invoice number and supplier
  • Review queue with the doubtful field highlighted and the document alongside
  • A record of what was extracted, with what confidence and who approved it

Where it fails in real life

Bad scans remain enemy number one: crooked phone photos, stamps over the figures, documents three photocopy generations old. No technology fixes what cannot be seen, so test on a real sample before taking the project for granted.

The second problem is tables split across pages and line items mixing per-line discounts, surcharges and shipping. That is where the gap is widest between a demo with three clean invoices and the reality of an accounts inbox.

The third is organisational: what happens to whatever does not reconcile. If nobody has time assigned to the review queue, the system clogs and within two weeks everyone is typing again.

How to frame the project

First, count how many invoices you receive each month and from how many different suppliers. With few suppliers and very repetitive invoices, structured extraction from a document platform may be all you need. With many suppliers and varied formats, a language model clearly pays off.

Second, decide how far the automation goes. Read and propose is a small, low-risk project. Read, verify and post only what reconciles is the one that really saves hours. Paying automatically is not something we recommend: there a person should still approve.

Third, agree the number that defines success before starting: what share of invoices has to go through untouched for the project to be worth it. That number is measured on your real invoices, not on an example.

Frequently asked questions

Does it work for delivery notes, receipts and contracts?

Yes, and the approach is the same, but the verification changes. An invoice reconciles itself arithmetically; a contract does not, so human review weighs more there and the automation should stop at extracting and flagging, not deciding.

Do I have to change ERP?

No. The norm is to leave the ERP where it is and feed the data through its API or the same import channel you would use by hand. If your ERP has no automatic way in, that does shape the project and you want to know beforehand.

What about structured e-invoices?

If they arrive in a structured format, you need neither OCR nor a model: they are read directly and reliably. Check how many of your suppliers can already send them that way before automating PDF capture, because it is always the cheaper path.

Does the AI provider keep my invoices?

It depends on the terms you sign. The business plans of the major providers state that they do not train models on content sent through the API, and document platforms publish their retention terms. It is something to check and put in writing before connecting anything.

Sources

Tell us what your company needs

Tell us about your project in a few minutes. If it’s a fit, you book a 30-minute call with a developer and we send you a fixed-price proposal.

Tell us about your projectWe reply within 24 hours