AI Invoice Processing

An AI model for invoice processing can extract fields from a document it has never seen, but it cannot decide whether to pay, so it matters to define what it solves, what lies outside its scope, how to measure accuracy in a way that teaches you something, and what the move to digital invoices means.

In short

The model specialises in one core task: extracting fields from a document whose format it has not seen before. This is the capability that replaces the old approaches, which relied on a separate template for every supplier. The model's job is not to decide whether the invoice should be paid, because a payment decision requires business context that lies outside the document. The practical boundary of the system is set by a confidence threshold for each field: a value above the threshold goes in automatically, and a value below it is sent to a person for approval as a single field. The time and cost savings depend on the design of the work screen at least as much as on the quality of the model itself.

Three layers, each with a different job

Systems that keep working over time are built from three separate layers, each with a clear role. Systems that disappoint are usually the ones that merged the first two layers into a single mechanism.

Layer What it does What it does not do How to test it
The model Extracts fields from the document and attaches a numeric confidence score to each field Does not decide whether the value is correct in business terms and does not compare it with the agreement or the order Measure accuracy for each field separately, on your own real documents from the real world
The rules Compare the extracted fields to the purchase order, the framework agreement, the budget and the known supplier's details Do not guess missing values. Information that was not found stays missing Check how many cases were blocked correctly, and how many were blocked unnecessarily
The person Receives for decision whatever remains open, mainly the fields the model was not confident about Does not spend time rereading documents that have already passed all the checks Measure how many seconds one decision takes, and what percentage of documents reach the human stage at all

The value of separating the three layers is operational, not just architectural: when something goes wrong, you can identify which layer the error was in and deal with it. A system that returns a single "approved" without separating the layers does not allow real tuning, because you will not know exactly what needs to change.

Two types of error that are not alike

Correctly identifying the types of error in invoice processing is the most important part of designing the system, and it is missing from almost every commercial proposal.

The system did not know. The amount is blurred, the field is in an unfamiliar format, the document is scanned at an angle. This is a relatively safe case: it can be detected and routed to a person, and it costs a few seconds of human work.

The system was confident and wrong. The system read a number in the wrong place and carried on as if everything was fine. This is a dangerous case, because it does not flag itself, and sometimes it surfaces only in a later bank reconciliation, or not at all.

So a claim of 95 percent accuracy is worthless unless you understand what makes up the remaining five percent. Five percent of the first kind suits a good system; five percent of the second kind creates a problem. When you ask a vendor for the breakdown between the two types of error, the answer also tells you whether they measured it at all.

How to test in practice. For a real test, take a hundred of your own real invoices, including the crooked scans and the handwritten one, and run them through the system. Do not check only the overall summary; go field by field and explicitly separate the two types of error. A test on the sample documents the vendor supplied measures the vendor, not your real flow.

The screen is half the saving

The design of the work screen looks like a small detail, but it determines a large part of the actual saving: exactly the same model, on two different screens, will produce completely different working times.

An inefficient screen shows the whole document in which "something is uncertain" and requires the person to go through it. The user reads all of it, because they do not know what exactly is suspicious. An efficient screen shows one field, the relevant snippet of the document it was extracted from, and two clear options to choose from. The first path takes minutes, the second takes seconds, and the gap between them accounts for most of the project's return.

When evaluating a vendor, it is important to ask specifically to see the exception-handling screen, not just the success screen. Success screens look good in almost every product.

What changes with digital invoices

Israel's move to issuing invoices through the Tax Authority changes invoice intake in two opposite ways.

For the better: a structured document arrives with its fields already separated, so part of the extraction work becomes unnecessary. Anyone building a system now that focuses entirely on field extraction alone is investing in a solution to a problem that keeps shrinking.

And what does not go away: small suppliers and documents from abroad will keep arriving as free-form files for a long time, so field extraction will remain necessary for part of the flow. More importantly, an invoice now has a status with an external party, and invoice intake is no longer just reading a file but a verification process against an external system, which can be delayed, fail or refuse.

So a sound architecture treats invoice intake as a process that can wait, retry and repeat itself, not as an instant action that is over in a moment. A system built on this assumption will adapt easily to change; a system built on the assumption of a one-off action will need changes precisely in its most sensitive area. Related: procurement management software.

Bilingual documents, and handwriting

This is an issue that international vendors usually do not price correctly, and in Israel it is a constant part of the daily flow.

A typical Israeli invoice includes Hebrew, numbers and sometimes English product names on the same line, and that is exactly where extraction engines tend to break: the reading direction switches in the middle, and the model has to decide what belongs to which field when the visual order does not help. A model tested only on single-language documents will show high accuracy on paper, but will disappoint on your mixed flow.

Two more cases are worth including in your tests up front, because they exist in every organisation and almost never appear in vendors' demo sets: an invoice that a small supplier wrote by hand or filled in on a printed form, and a document from abroad that uses a different date format, a different thousands separator and a different currency. The date format is the most problematic case, because two different interpretations can both be plausible, and the system accepts both without an explicit error.

So your test set should contain four types, not a hundred invoices from the same supplier: bilingual documents, handwritten invoices, documents from abroad with an ambiguous date, and poor-quality scanned invoices. These four types affect the real result more than all the other documents combined.

What to measure before you start

  1. How long it takes to process a correct invoice today, in seconds, as a single clear number.
  2. How long it takes to process one that needed follow-up, and how many different people handled it along the way.
  3. What percentage of invoices falls into the second category. This is the number the project aims to move and reduce.

These three numbers can be collected within a working week, without choosing a vendor and without setting up a system. Without them there will be no baseline for comparison a year later, so it will also be impossible to know whether the project succeeded, and that is exactly the situation most projects of this kind end up in.

How we work on this

In the field since 2004, working on AI systems since 2023, with projects for clients in fourteen countries. We are not a product vendor and are not affiliated with any manufacturer, so a conclusion such as "your flow is too small to justify this" can be a legitimate outcome of a review, and sometimes it is also the right conclusion.

A professional review produces, among other things, a measurement of the three numbers, an extraction test on your real documents with the two types of error separated, a confidence threshold set for each field, and the design of the exception-handling screen, which is where most of the return lies.

Where to start

The first step is to send ten real invoices, including the hard ones: the crooked scan, the document from abroad, and the one a small supplier wrote by hand. Ten examples like these tell you more about your project than any requirements document.

Talk to us  |  Related: AI solutions, Procurement management, Automation

SLAtech LTD