AI document processing: how software reads invoices and contracts
How software reads invoices, forms and contracts, puts the data in the systems you already use, and which controls keep the result correct.
AI document processing is software that reads a document, such as an invoice, a form or a contract, takes the data out of it, and puts that data in the systems your business already uses. It replaces the person who reads a PDF on one screen and types what it says into another. The industry name is intelligent document processing, or IDP.
This article explains what the software does step by step, compares it with manual entry and with template-based OCR, and describes the controls that keep the result correct. We build this kind of software, so we also say when you do not need it.
The problem: people who type data from documents into systems
The problem is that a person stands between each document and the system that needs its data, and that person types. A supplier sends an invoice as a PDF. A customer sends a photo of a form. A signed contract arrives as a scan. Each one holds data that your ERP, your CRM or your billing system needs.
The cost shows up in three places:
- Hours. Someone on your team spends part of every day reading and typing, and the work grows with every new customer and supplier.
- Errors. A tired person swaps two digits in a total or in a bank account number. Nobody notices until a payment goes wrong.
- Data that never gets typed. People enter the fields the system demands and skip the rest. The renewal date of a contract stays in the PDF, where no report can find it.
If your team handles a handful of documents a week, typing is fine. When documents arrive every day and the number keeps growing, look at what software can take over.
What AI document processing does, step by step
AI document processing runs each document through the same chain: receive it, read it, take the data out, check it, and write it to your system.
- It receives the document. From a shared email inbox, an upload page, a scanner folder or your customer portal.
- It recognizes what the document is. An invoice, a purchase order, a contract. Each type has its own list of fields.
- It reads the text. A scan or a photo is a picture, so the software first turns the picture into text. This step is called OCR (optical character recognition).
- It takes the data out. This step is called document extraction. An AI model reads the page and finds the supplier name, the tax ID, the dates, the total and each line of the table. It looks for meaning, so the total can be anywhere on the page.
- It checks the data. Fixed rules run on what was found. Do the lines add up to the total? Does the supplier exist in your ERP? Has this invoice number arrived before?
- It sends doubts to a person. A field the software is unsure about, or one that fails a rule, goes to a review screen. A person sees the value next to the original page and confirms it or corrects it.
- It writes to your system. The checked data goes to the ERP, the CRM or the billing system, with the original document attached.
The AI does step 4. The other six steps are ordinary software, and they decide whether the project works. A model that reads well and writes to nowhere only moves the typing to a different screen.
Document extraction compared: manual entry, template-based OCR and AI
Manual entry handles any document but does not scale. Template-based OCR is fast on fixed layouts and breaks on new ones. AI extraction reads layouts it has never seen, but it needs controls.
Template-based OCR is the older kind of software. Someone draws boxes on a sample page ("the total is here, the date is there"), and the software reads whatever falls inside each box.
| Manual entry | Template-based OCR | AI extraction | |
|---|---|---|---|
| Kinds of document it handles | Any document a person can read | Fixed layouts: your own forms, or the invoice of one supplier | Varied layouts of a known type: invoices from many suppliers, forms, contracts, emails |
| What happens with a new layout | The person adapts without help | It reads the wrong box, or nothing, until someone builds a new template | It usually reads it, because it looks for meaning and not for position. New layouts still go into the test set |
| How errors are found | A second person checks, or nobody does until something goes wrong | An empty or garbled field is easy to spot. A shifted box that returns the wrong number is not | Low-confidence fields go to a person, fixed rules catch what does not add up, and a test set shows the errors per field |
| The typical error | A typo or a skipped field | The right box with the wrong content | A value that looks right and is wrong, such as the subtotal in place of the total |
| Where it fits | Low volume, or documents that need judgment | High volume of a few layouts that never change | Many senders, many layouts, and data that ends in a system |
Template-based OCR is still the right tool when you control the layout, such as a form that you designed yourself. AI extraction fails in a different way from the other two. A person leaves a typo, and a template leaves an empty field. An AI model can return a clean, confident value that is not on the page. For that reason, the controls below are part of the software and not an extra.
How to keep the result correct
You keep the result correct with controls around the AI: a person checks the fields the software is unsure about, fixed rules check the numbers, and a test set of real documents runs before launch and after each change.
A person checks low-confidence fields. Each field comes out with a confidence level. Above a line that you set, the value goes through. Below it, a person looks at the value next to the page and confirms it or fixes it. The line can differ by field: strict for a total or a bank account number, relaxed for a notes field.
Fixed rules check the numbers. Arithmetic comes first: the lines must add up to the subtotal, and the subtotal plus tax must equal the total. Then come your own records: the supplier must exist, and the invoice number must be new. These rules do not use AI, so they give the same answer every time.
A test set of real documents runs before launch and after each change. Before the software goes live, your team picks a set of real documents, the ugly ones included: the crooked scan, the two-page invoice, the supplier with the odd layout. A person records the correct value of every field. The software must pass this test before launch. The test runs again after every change, because a change that improves one document type can break another. We put a test like this behind every AI feature we build.
Every value links back to its page. The record in your system keeps the original document, so when someone questions a number six months later, the answer is one click away.
These controls do not make the software perfect. They make its errors visible and countable, and manual entry rarely gives you that.
Where intelligent document processing fits, and where it does not
Intelligent document processing fits when you receive the same types of document from many senders, every day, and the data has to end in a system. Common examples are supplier invoices, purchase orders, registration forms and delivery notes.
It is the wrong choice in these cases:
- Low volume. If a person spends an hour a week on it, keep the person.
- The sender can give you data instead of a document. A web form, a file export or a direct connection between systems is better than reading a PDF. Ask your largest senders before you build anything.
- Decisions that need judgment. Software can take the parties, the dates and the renewal terms out of a contract. It should not decide whether you sign it.
- Documents that nobody can read. Faint handwriting and bad photos defeat software as they defeat people. Fix those at the source, with a better form or a better scan.
The part that is not AI: getting the data into your systems
Extracted data is useful only when it lands in the right record of the right system, and that part is integration work, not AI. The software has to find the supplier in your ERP, match the invoice to its purchase order, and create the entry. If your systems already disagree about who a customer is, a document reader adds to the confusion faster than a person did. We cover that problem in a single source of truth for your business data.
We have no public case of a document project, so we will not present one. The closest example that we can show is about systems connected to one another, which is the same second part. Reevia's customer, one of Brazil's largest veterinary networks, kept its data in separate systems and could not see it in one place. That project is an integration, not a document project. The results:
- 2M+ records processed.
- Under 1 minute from a change in a source system to HubSpot.
- 4 weeks from the start of the project to the first version live.
- Four systems connected to HubSpot, so marketing, support and sales see the data in one place.
A document project ends in the same place: the data arrives in the system that your team already opens every morning. The four weeks to the first version are a delivered result of that project, not a promise for yours.
What to ask before you buy or build
Ask how the software behaves when it is wrong, because every demo shows it when it is right. These questions work for a ready-made product and for a custom build, ours included.
- Can I see the results per field on my own documents? Send a sample, the ugly ones too. A percentage that was measured on the invoices of another company tells you little.
- What happens to a field the software is unsure about? Ask to see the review screen.
- What runs again after every change? The answer should be the test set.
- Where are my documents stored, and who can use them? On our projects, your data is used only for the agreed work, under NDA, and never to train a model.
- Who owns it? With a product, you rent access. In our custom builds, everything is registered in your company's name from the first day, and delivery includes a handover guide and 30 days of fixes at no charge.
A ready-made product is a fair choice when your documents are standard and the product already connects to your accounting system. A custom build fits when the documents are specific to your business, the rules are your own, or the data has to reach a system that no product connects to. That is the work we do as custom software, at a fixed price.
A document project has a clear scope: these document types, these fields, this system. That makes a fixed price possible. We explain what a fixed price protects you from in fixed price vs time and materials.
Frequently asked questions
What is the difference between OCR and AI document processing?
OCR turns a picture of text into text. It does not know that one number is a total and another is a tax ID. AI document processing uses OCR as one step, then finds each field by its meaning, checks it, and writes it to your system.
How accurate is AI document extraction?
It depends on your documents, so measure it on them. Ask for the accuracy per field on a test set of your own documents, not for one overall percentage. A clean digital PDF and a crooked phone photo give very different results.
Does a person still need to check the documents?
Yes, but not every document. A person reviews the fields that the software marks as low confidence and the ones that fail a rule. Check a random sample of the documents that went straight through too, to confirm that the line is in the right place.
How is the price of a custom document project built?
From the scope and the deadline: the document types, the fields in each one, the rules, and the systems the data goes to. Ours is a fixed price per project, paid by milestone, in a written proposal. To talk about your documents, tell us what you need.