What is intelligent document processing (IDP)?
Definition
Intelligent document processing (IDP) is software that turns documents such as invoices, forms and contracts into structured data. It reads each file with OCR, classifies it, extracts fields with machine learning or a language model, validates them against business rules, and sends uncertain results to a person before the data reaches your systems.
How does intelligent document processing work?
An IDP pipeline turns a file into fields a system can trust. The vendors name the stages differently, but the order is stable. Google's Document AI overview (updated 2026-11-12) groups its processors into three jobs: digitize, extract and classify. Production pipelines add two more stages after extraction.
| Stage | What happens | Example from current docs |
|---|---|---|
| 1. Digitize | OCR reads text and layout; image quality is checked and pages are deskewed | Document AI Enterprise Document OCR |
| 2. Classify and split | The system decides what each document is, and splits a PDF that holds several | Document AI custom classifier and custom splitter |
| 3. Extract | Fields, key-value pairs and tables come out against a schema you define | Databricks ai_extract; Document AI custom extractor |
| 4. Validate | Business rules check the extracted values against each other and your records | Document AI validation rules (preview) |
| 5. Review and export | Low-confidence or failed documents go to a person; the rest post to the target system | Confidence-based routing to human review |
Stages 4 and 5 decide whether IDP saves work or moves it. Extraction is probabilistic. The decision to post an invoice or approve a claim should not be.
How is IDP different from OCR, RPA and a plain LLM prompt?
| OCR | RPA | LLM prompt on a PDF | Intelligent document processing | |
|---|---|---|---|---|
| Output | Text and positions | Clicks and keystrokes in other apps | Free text or JSON | Typed fields with confidence scores |
| Understands which document it is | No | No | Sometimes | Yes, a classification step |
| Handles a new layout | Reads it, cannot label it | Breaks when the screen or input changes | Often | Yes, within trained or described types |
| Says how sure it is | Per word | No | No | Per field, row and document |
| Checks business rules | No | Only scripted ones | No | Yes, a validation step |
OCR is one stage inside IDP, not an alternative to it. RPA often sits after IDP, keying the validated fields into a system that has no API. A single LLM prompt can extract fields, but on its own it gives no confidence score, no rule check and no audit trail.
What changed with generative AI?
Template and per-document-type models used to need labeled samples for every layout. Current platforms let you describe the fields in a schema and have a model extract them. Databricks exposes this as SQL functions: ai_parse_document, ai_extract and ai_classify. Amazon Bedrock Data Automation handles classification, extraction, normalization and validation as one generative AI service, and lists visual grounding and confidence scores as its built-in safeguards.
The new risk is a value that is not on the page. A language model can produce a plausible invoice number it never read. Google's answer is a grounding setting for its custom extractor, in private preview: "Hard" requires an exact match with the OCR text and is the default, while "OCR Relaxed" allows minor differences (Document AI grounding, updated 2026-11-12). Whatever platform you use, ask how it proves each extracted value came from the document.
How should you read IDP confidence scores?
Microsoft's Document Intelligence guide to accuracy and confidence (updated 2026-04-08) gives the plainest reading: a field confidence of 0.95 means the prediction is likely correct 19 times out of 20. It suggests using confidence to decide whether to accept a prediction automatically or flag it for review. Three details from the same page are worth building in:
- Read and field confidence are separate. OCR confidence on the text does not change the confidence of the extracted key-value result, so check both. Low read confidence points to poor scans; low field confidence points to an unfamiliar document type.
- Tables score at three levels. A cell can be correct inside a row with misses, so the cell scores high while the row scores low. Check the table, then rows, then cells.
- Training accuracy is not a threshold. The 80% target, and close to 100% for financial or medical records, applies to a custom model's estimated accuracy at training time. Your runtime cutoff is a business decision per field.
For the review stage, do not assume a managed queue exists. Amazon Augmented AI, the human review service that integrates with Textract, is no longer open to new customers. Plan for where review happens before you pick a platform.
Example: the validation and routing step in Python
Document AI's validation feature (private preview, docs updated 2026-11-10) gives "the sum of line item prices equals the total" as a typical rule. The step below applies that rule, a vendor check, a date check and per-field confidence floors, then routes the invoice. The thresholds are illustrative choices, stricter on money fields. The output below comes from running this exact file under Python 3.11.
from datetime import date
# Output of the extraction step: value plus the model's confidence for each field.
extracted = {
"vendor": {"value": "Northwind Supplies", "confidence": 0.98},
"invoice_no": {"value": "INV-20931", "confidence": 0.97},
"invoice_date": {"value": "2026-11-03", "confidence": 0.95},
"total": {"value": 1180.00, "confidence": 0.71},
"line_items": {"value": [420.00, 640.00, 120.00], "confidence": 0.93},
}
KNOWN_VENDORS = {"Northwind Supplies", "Contoso Ltd"}
MIN_CONFIDENCE = {"total": 0.90, "invoice_no": 0.90} # stricter where a mistake costs money
DEFAULT_MIN = 0.80
def validate(doc):
reasons = []
for name, field in doc.items():
if field["confidence"] < MIN_CONFIDENCE.get(name, DEFAULT_MIN):
reasons.append(f"low confidence on {name} ({field['confidence']})")
if doc["vendor"]["value"] not in KNOWN_VENDORS:
reasons.append("vendor not in vendor master")
if round(sum(doc["line_items"]["value"]), 2) != doc["total"]["value"]:
reasons.append("line items do not add up to total")
if date.fromisoformat(doc["invoice_date"]["value"]) > date(2026, 11, 19):
reasons.append("invoice date is in the future")
return ("human review", reasons) if reasons else ("auto-post", reasons)
print(validate(extracted))
extracted["total"] = {"value": 1180.00, "confidence": 0.96} # reviewer confirms the total
print(validate(extracted))
extracted["line_items"]["value"] = [420.00, 640.00, 210.00] # a misread digit
print(validate(extracted))
('human review', ['low confidence on total (0.71)'])
('auto-post', [])
('human review', ['line items do not add up to total'])
The third case is why validation matters more than confidence. The misread line item scored 0.93, above its floor, and only the cross-field rule caught it. In a real pipeline the vendor list and date come from your ERP, and every routing decision is logged with its reasons.
When is IDP worth it, and when is it not?
It pays off when the same few document types arrive in volume, the fields feed a system of record, and today people retype them. Invoices, claims, onboarding forms and shipping documents are the usual cases.
It is the wrong tool when the data already exists in structured form. If a supplier can send an e-invoice or call your API, take the data directly. It is also overkill for a few documents a week, where a person is cheaper than building and testing the review step.
What to check before running IDP in production
- A labeled test set per document type and variation. Microsoft advises training on every variation, digital and scanned, with at least five samples of each type. Use the same split to test.
- Accuracy per field, not per document. A high document-level score can hide a total field that is often wrong, and the total is the field that costs money.
- Documents are untrusted input. OWASP's prompt injection entry (last updated in April 2025, the current edition of its LLM list) describes a resume with split malicious prompts that, once combined, steer an LLM into a positive recommendation despite what the resume says. Keep extraction output as data, never as instructions, and apply AI guardrails where a model reads documents and can act.
- Corrections flow back. Every field a reviewer fixes is a labeled example for the next model version.
IDP is often the first step of an agentic workflow: an agent reads the document, and people approve the decisions that matter. SDCLabs uses agents for steps that need judgment over varied inputs such as emails and documents, and keeps scripts where fixed rules work better; see agentic process transformation. Before you automate, read why adding AI agents to old processes rarely pays off.
Sources
- Document AI overview, Google Cloud documentation, 2026-11-12
- Configure processor grounding, Google Cloud documentation, 2026-11-12
- Validation and correction, Google Cloud documentation, 2026-11-10
- Interpret and improve accuracy and confidence scores, Microsoft Learn, Azure Document Intelligence in Foundry Tools, 2026-04-08
- Intelligent document processing, Databricks documentation, 2026-11-11
- Transform unstructured data into meaningful insights using Amazon Bedrock Data Automation, Amazon Bedrock User Guide, 2026-11
- Use Amazon Augmented AI with Amazon Textract, Amazon SageMaker AI Developer Guide, 2026-11
- LLM01:2025 Prompt Injection, OWASP Gen AI Security Project, 2025-04-17
Frequently asked questions
What is intelligent document processing software?
A platform that bundles OCR, document classification, field extraction, validation and review into one pipeline. Examples from the major clouds include Google Document AI, Azure Document Intelligence in Foundry Tools, Amazon Bedrock Data Automation and the Databricks AI Functions for documents.
How do you implement intelligent document processing?
Start with one document type that arrives in volume. Collect real samples of every variation, define the fields and rules, measure accuracy per field on samples the model never saw, and go live with every document reviewed. Reduce review only where measured accuracy allows it.
Is intelligent document processing a form of AI?
Yes. It uses machine learning for reading, classifying and extracting, and newer platforms use generative models: Google describes Document AI as built on Vertex AI with generative AI. The validation rules and routing around the models are ordinary code.
What does IDP stand for?
In document automation, IDP stands for intelligent document processing. In security writing the same letters usually mean identity provider, so check the context.
Read next
Related terms
Sergey AlmyashevChief Operating Officer14+ years in QA, automated, exploratory and performance testing, and continuous integration and delivery within Scrum, helping teams in product and outsourcing companies organize teams, processes and tools.LinkedIn