Resources

Invoices in many layouts: templates, document AI, or a custom build

Templates suit a few steady suppliers. A pretrained invoice reader suits many layouts. Either way, check every invoice before it reaches your accounts.

By Pyzen28 November 2026

If a handful of suppliers send invoices that always look the same, a template per supplier is enough. If you have many suppliers, or layouts that keep changing, use a pretrained invoice reader, which finds the fields without a template.

Whichever you choose, the reading is only half the job. Check every invoice before it reaches your accounts, and send the unclear ones to a person.

We checked each tool's behavior below against its own documentation on 28 November 2026. Tools change, so check again if you're reading this much later.

Before you choose: look at what arrives

Take a month of invoices and sort them. Four questions decide most of what follows.

  • Can a supplier send data instead of a picture? Some can send a structured e-invoice, made for software to read. Factur-X, for example, is a French and German standard that pairs a PDF for people with XML data for software, and it's the same standard as ZUGFeRD. An invoice like that needs no reading at all, so ask your largest suppliers first.
  • Is the PDF text, or a scan? If you can select the words in the PDF, the text is already there. A scan or a phone photo is a picture, and software has to recognise the letters first. Text tools say so themselves: pdfplumber, a common one, notes that it works best on machine-generated PDFs, not scanned ones.
  • Is it locked? Password-protected PDFs stop most readers. Microsoft's invoice model requires the lock to be removed first, and Anthropic's PDF support accepts standard PDFs with no password or encryption. If you hold the password, a tool such as qpdf can save an unlocked copy. Otherwise ask the supplier to send it unlocked.
  • How many layouts are there, and how often do they change? Count the suppliers, then count the ones who changed their invoice in the last year. That number picks the option.

Option 1: a template for each supplier

A template tells the software where each field sits for one supplier: the invoice number follows these words, the total follows those.

invoice2data is an open-source example. It pulls the text out of a PDF, then searches it with patterns kept in a template file.

One field can have several patterns, for when a layout or its wording changes, and the tool can draft a starting template from a sample invoice.

It runs from a command line, so it needs someone comfortable with code.

For invoices that arrive as plain text in an email, Email Parser by Zapier works the same way without code.

You send one email as the template, then highlight and name the text to pull from later emails. Its page describes text in emails and doesn't mention attachments.

  • Works when: a few suppliers send most of the volume, and their layouts stay put.
  • Stops working when: a supplier redesigns its invoice, a new supplier appears, or the invoice is a scan. Each new layout is another template for someone to write and keep.

Option 2: a pretrained invoice reader

These services have already learned what invoices look like, so there's no template to set up. You send a file and get named fields back.

  • Amazon Textract says it reads "almost any invoice or receipt without the need for any templates or configuration" (Amazon's documentation). It also gives one standard name to a field that suppliers label differently, such as bill number, invoice number and receipt number.
  • Azure Document Intelligence takes phone photos, scans and digital PDFs, and returns key fields and line items (Microsoft's documentation).
  • Google Document AI has a pretrained Invoice Parser. You don't define the fields; it returns ones such as invoice number, supplier name, amounts, invoice date and due date (Google's documentation).

Without writing code

Two automation tools put a reader like this behind a single step.

In Power Automate, the AI Builder action Extract information from invoices takes a JPEG, PNG or PDF. Microsoft's model page lists line items among the outputs, but the flow page's output table doesn't, so test that before you rely on it.

In Make, the Make AI Content Extractor has a module named "Extract information from an invoice". Make lists it for paid plans and marks it as beta, so its features and pricing may change.

What the score means

Most of these readers attach a confidence score to what they return. Microsoft describes its score as an estimated probability, from 0 to 1, that the value is correct, and suggests using it to decide whether to accept a value or flag it for a person (accuracy and confidence).

Two cautions. Microsoft notes that not every field returns a score.

And a score is the reader's estimate about its own reading, so a high one doesn't prove the invoice is right.

A general AI model

A general AI model can read an invoice too. Anthropic's documentation explains that Claude receives each PDF page as both its text and an image, which is why it copes with scans and unusual layouts.

Treat it as one step in the process, with the same checks after it as any other reader. Our guide to why automations break covers keeping an AI step dependable.

  • Works when: layouts vary, new suppliers keep arriving, or some invoices are scans.
  • Stops working when: nobody checks the output. A reader returns its best reading of a smudged total, and it looks just like a good one.

Check every invoice before it reaches your accounts

No reader does this part for you. These checks are plain rules, and they catch most wrong readings before anyone has to.

  1. The sums add up. The line amounts should add up to the subtotal, and subtotal plus tax should equal the total. A misread digit almost always fails this.
  2. You know the supplier. Match the supplier to your own list, by tax number or bank details where you can. An unknown supplier, or changed bank details, goes to a person.
  3. You haven't seen it before. The same supplier and invoice number twice means a duplicate. Our guide to duplicate records covers the causes.
  4. The dates make sense. An invoice dated in the future, or due before it was issued, was probably misread.
  5. Nothing required is missing. An empty invoice number or total stops the invoice. It doesn't post as a blank.
  6. The reader was sure. Where a score exists, a low one on a field that matters sends the invoice to review.

Keep every original file, and never edit it. When a number is questioned, you can open what the supplier sent.

Give the unclear ones to a person

An invoice that fails a check shouldn't vanish, and it shouldn't post anyway. It should wait in a queue where someone sees the original next to the fields that were read.

Plan this step yourself; don't count on the reader to provide it. Google, for one, has deprecated the human review feature of Document AI.

In Zapier, the Human in the Loop step pauses a run until a reviewer approves, declines or changes the data. It's a premium app on paid plans.

Decide what happens when nobody answers. For anything that leads to a payment, no answer should mean the invoice stays unposted and someone is reminded.

Record each correction. If the same supplier's total is fixed by hand every week, that's the template or setting to change.

What you see, and what to do

What you see Likely cause Fix
Fields empty for one supplier The supplier changed its layout, and the template no longer matches Update the template, or move that supplier to a pretrained reader
Nothing is read from some files A scan went to a text-only tool, or the PDF is locked Send scans to a reader that handles images; unlock the file or ask for an unlocked one
A total is off by one digit A poor scan was misread Check the sums before posting; ask for the digital PDF
One row where there should be several The line items weren't returned, or weren't mapped Test with an invoice of several lines; check the tool's output list
The same invoice posted twice It arrived twice, or a run was repeated Check supplier and invoice number against what's already posted
The review queue keeps growing Too many invoices fail one check Count which check fails most, and fix that supplier or rule first

When it stops being a tool setting

A template set or a single reader step carries a small, steady flow a long way. It stops being enough when:

  • Invoices arrive by several routes: a shared inbox, a supplier portal, and paper someone scans.
  • The fields have to match purchase orders or stock before anything is paid.
  • Line items matter, not only the total.
  • One person keeps the templates alive, and nobody else can.

At that point the work is less about reading and more about everything around it: collecting the files, the checks, the review queue, a record of every decision, and someone who fixes it when a supplier changes its invoice. That's how we handle documents and inboxes, and how we move the results into your systems.

You can see what each step of a build includes.

Written by Pyzen. Drafted with AI help, then checked against each tool's own documentation before publishing.

Next step

Bring us one process.

A free 30‑minute call. An honest answer, even if it isn’t us.