Intelligent document processing (IDP) is software that reads a business document, works out what kind of document it is, pulls out the fields you need, checks them and puts them into your systems, sending anything it is unsure about to a person. OCR is only the first step of that: it turns a picture of text into text. The older way to do the rest was a template for every document layout. The newer way is a large language model that reads the page the way a person would. Both get things wrong, so the part that decides whether IDP is safe is not the extraction engine. It is the human exception queue.
This piece compares the three approaches side by side, shows how each one fails, and explains what a good exception queue looks like, because that is the part most explanations reduce to a single bullet point.
What intelligent document processing actually covers
Strip away the vendor language and IDP is five jobs done in order:
- Capture. Get the document in: an emailed PDF, a scanned page, a phone photo of a receipt, an upload.
- Classify. Decide what it is. An invoice, a statement, a credit note, a contract, a payment reminder that looks like an invoice but is not one.
- Extract. Pull out the specific fields your process needs: supplier, dates, amounts, tax, line items, reference numbers.
- Validate. Check those fields against arithmetic, your own records and common sense.
- Route. Send clean data into the system of record, and send everything else to a person.
Most product pages spend their words on the first three. The last two decide whether you can trust anything that comes out.
OCR templates, trained IDP models and LLM extraction compared
There have been three broad ways of doing the extraction step. They are not mutually exclusive, and plenty of tools blend them, but the differences matter when you are choosing one.
| Template OCR | Trained IDP models | LLM-based extraction | |
|---|---|---|---|
| How it finds a field | A fixed position on the page: “the total is in this box” | A model trained on labelled examples of each document type | Reads the whole page and is asked for fields in plain language |
| Setup | Draw zones for every layout you receive | Label sample documents, train, retrain as layouts change | Write instructions and an output schema, no layout training |
| What breaks it | Any layout change, a skewed scan | Layouts it has not seen, drift over time | Ambiguous pages, missing constraints on the output |
| How it fails | Loudly: blank or garbled fields | Usually loudly, often with a low score | Quietly: a tidy, confident, wrong value |
| Best fit | One or two fixed forms at high volume | High volumes of known document types | Many suppliers and formats, messy real-world inputs |
Template OCR
The first generation worked by position. You told the software that on this supplier’s invoice, the invoice number sits in a box at the top right and the total sits at the bottom right, and it read whatever text appeared there. It is fast and predictable on a form that never changes, such as a government form or your own order sheet.
The weakness is in the name. Microsoft’s documentation for its own template models says it plainly: template models rely on a defined visual template, and changes to the template result in lower accuracy. For layouts that vary, the same page recommends at least five samples of each one, with a model trained per variation. If you have 200 suppliers, that is a lot of templates to build and maintain, and a supplier who changes accounting software breaks theirs overnight.
Trained IDP models
The second generation, which is what most people mean by “IDP platform”, trained machine learning models on labelled examples. Instead of a fixed box, the model learns what an invoice total tends to look like and where it tends to sit. That handles moderate variation far better than templates, and these models usually return a score per field that you can route on.
The cost is the labelling and the upkeep. Someone has to mark up sample documents, and someone has to notice when accuracy drops because a new document type has crept in. For a large organisation with a document operations team, that is a reasonable trade. For a 30-person business, it is often more machinery than the problem deserves.
LLM-based extraction
The newest approach hands the document to a large language model. Current models read PDFs and images directly, including tables and layout; Anthropic’s documentation, for example, describes asking Claude about any text, pictures, charts and tables in a PDF and converting document information into structured formats. You describe the fields you want and the format to return them in, and the model reads a new supplier’s invoice the way a new staff member would: by understanding it, not by memorising its layout.
This removes most of the setup and most of the breakage. It also changes the failure mode, and that is the part to understand before you buy anything.
One supplier changes its invoice layout
Here is the same event seen through each approach. A regular supplier moves to new accounting software. Their invoice now shows the total at the bottom left, lists GST as its own line, and moves your purchase order number into a field labelled “Customer reference”.
- Template OCR reads the old box, finds nothing or finds the wrong number, and returns a blank or garbled total. Someone notices the next morning. Annoying, but safe.
- A trained model probably copes, because the new layout resembles invoices it has seen. It may miss the PO number in its new home, and if the score drops, the document gets flagged.
- An LLM will usually read it correctly with no setup at all. But suppose this invoice also carries a credit from last month, so it shows both an invoice total and a smaller “amount due”. On the rare occasion the model picks the wrong one, it returns a clean, well-formatted number with nothing about it that looks wrong.
That is the trade. LLM extraction swaps frequent, loud failures for rare, quiet ones. Quiet failures are the dangerous kind, because nobody goes looking for them. So the design has to go looking for them on everyone’s behalf.
Do not trust the model’s own confidence
Some LLM-based tools ask the model to rate how confident it is in each field and route documents on that number. We think that is a mistake, and it is the position in this article we would most like a vendor to argue with. A language model asked “how sure are you?” produces a plausible-sounding answer to that question. It is not a measurement of anything, and you should not let it decide what skips human review.
Confidence should come from checks that the software runs independently of the model:
- Arithmetic. Line items add up to the subtotal. Subtotal plus tax equals the total. The tax matches the rate it should be.
- Your own records. The supplier exists. The tax or business number on the invoice matches the one on file for that supplier. The purchase order exists and is still open.
- History. The amount sits within the normal range for this supplier. The invoice number has not been processed before.
- Agreement. Optionally, two independent extraction passes return the same values.
If every check passes, the document goes through. If any check fails, it goes to a person, with the failed check named. My rule when building these is that the checks get written before the prompt, because the checks define what “right” means and the prompt is just one way of getting there.
The exception queue is what makes IDP safe
Every serious IDP design ends at a person. Even AWS’s reference architecture for agentic document processing does: in its guidance, a document that fails validation is passed to a troubleshooting agent for another attempt, and after three failed attempts the document is routed for human review. Having a queue is the easy part. A good one has these properties:
- The evidence is on one screen. The original document beside the extracted fields, with the failing check spelled out: “Total does not equal subtotal plus GST: $2,116.00 extracted, $2,106.00 calculated.” The reviewer should not have to open three systems to understand the problem.
- Correcting is fast. Fix the field, approve, move on. The correction is recorded against the document.
- Nothing happens downstream until a person acts. A flagged document does not half-post to your accounts.
- Corrections become rules. If the same supplier needs the same fix three times, that becomes a supplier-specific rule rather than a permanent chore.
- The queue is measured. How many documents land in it, which check sent them, and how long they wait.
One counterintuitive point: a queue that is nearly always empty is as worrying as one that is always full. If almost nothing is ever flagged, either your documents are unusually clean or your checks are too loose, and loose checks are the one to rule out first.
Our own Reconciliation Agent runs on this principle, applied to bank data rather than PDFs. It reads live bank transactions, matches every credit against outstanding invoices and records the payment once a match is confirmed. Anything it cannot match with confidence is routed to a person for review instead of being forced. With real money and real ledgers involved, that exception path is one of the three core parts of the build. Our document processing agents are built the same way: any format in, structured data out, exceptions surfaced rather than guessed.
Do you need an IDP platform at all?
Probably not, if you are a small or mid-sized business. Enterprise IDP platforms are built for organisations processing many document types at very high volume with a team to run them. The usual starting point is much narrower: one or two document types that hurt, such as supplier bills, client intake forms or signed contracts. One document type done properly, with good checks and a well-run queue, is worth more than a platform that handles forty types adequately.
Four questions sort it out quickly:
- How many document types are causing the pain? If it is one to three, start with one.
- How many arrive each week? A handful a week is rarely worth automating. Dozens a day usually is.
- Where does the data need to end up? If the answer is “in a spreadsheet someone then retypes”, fix that first, or the automation just moves the re-keying.
- Who will clear the exception queue every day? If you cannot name that person, you are not ready to automate the document, whatever tool you choose.
That last question catches more projects than any technical issue. If you want help working through it across your whole operation, an AI readiness assessment covers exactly this. For a worked example of IDP inside a real process, our walkthrough of invoice processing automation follows one supplier bill from inbox to approval.
Frequently Asked Questions
What is IDP vs OCR?
OCR (optical character recognition) converts an image of text into machine-readable text. It does not know what the text means. IDP uses OCR or a language model as one step, then classifies the document, extracts the specific fields your process needs, validates them and routes the result into your systems, with a person reviewing anything that fails a check.
Is there an AI for documents?
Yes. Current large language models can read PDFs, scans and photos directly and return structured data, and most modern IDP tools use them for extraction. The model is the easy part to buy. The checks around it, the integration with your systems and the human review queue are what make it usable on real work.
What are some examples of document automation?
Common examples are supplier invoice and bill processing, bank statement reconciliation, client intake and application forms turned into CRM records, receipt capture for expenses, and extracting key dates and obligations from contracts so renewals are not missed. In each case the pattern is the same: read the document, check it against your records, update the system, and flag the exceptions.
If you have a pile of documents that someone retypes every week, Tensor Partners can scope an agent for that one document type, with the checks and the exception queue designed in from the first day. Start with our AI agents service.
