Document AI can move an invoice, claim form or application from an inbox into a structured queue. It can also drop a decimal point, attach a page to the wrong customer or convert an uncertain phrase into a confident approval. The safe objective is not “touchless documents”; it is faster processing with visible evidence and controlled exceptions.
This guide reflects UK requirements and guidance available on 31 July 2026. It is for general back-office work. Tax, financial, legal, public-record, employment and regulated-sector documents may have specific retention, evidence and decision requirements that must be assessed separately.
Define the document and the decision
Start with one document family and one bounded outcome. “Process invoices” is too broad. A better pilot is: extract supplier, purchase-order, invoice number, dates, currency, net, tax and total from UK PDF invoices, validate them against approved records, and route exceptions for accounts-payable review.
Record the authoritative original, allowed formats, languages, handwriting, expected page count, fields, validation rules, downstream action and harm from error. Separate extraction from interpretation and decision:
- extraction asks what characters or layout appear;
- classification asks which document type is likely;
- validation tests the result against rules and reference data;
- interpretation applies a policy or contract;
- a decision approves, rejects, pays, updates or communicates.
Each stage needs its own owner and threshold. A high OCR confidence does not prove that the correct customer file was selected.
Our multimodal AI operations guide covers cross-media inputs. Back-office processing adds records, authorisation and reconciliation controls that must remain explicit.
Preserve the source and chain of custody
Store the original in an immutable or tightly controlled repository before transformation. Generate a stable identifier and hash; record arrival channel, timestamp, sender, page count, file type and malware-scan result. Keep derived images, OCR, extracted fields and later corrections linked to that original.
| Layer | Record to retain | Why it matters |
|---|---|---|
| Original | Native file, envelope metadata and hash | Proves what arrived |
| Render | Page image and renderer version | Reproduces what the model saw |
| OCR | Text, boxes, confidence and engine version | Explains character-level output |
| Extraction | Field, value, location and model version | Links structure to evidence |
| Validation | Rule, reference data and result | Shows why an exception fired |
| Decision | Reviewer, action, timestamp and rationale | Establishes accountability |
Never replace the original with OCR text or a generated summary. Preserve blank pages, attachments, stamps, signatures and annotations until the applicable records policy says otherwise. A missing reverse page can change a contract or form.
The National Archives’ digitisation guidance applies specifically to public records but supplies a useful benchmark: oversight, legibility, metadata integrity, chain of custody and routine quality checks. Its line-of-business records guidance asks organisations to understand structure, access, relationships, formats, retention and audit information.
Build deterministic controls around extraction
Use AI to propose values, not to make arithmetic true. Validate invoice totals, tax, dates, bank details, account identifiers and duplicates with deterministic rules. Reconcile against purchase orders, contracts, supplier master data and prior payments through versioned interfaces.
Useful checks include:
- page and attachment completeness;
- document-type and supplier consistency;
- exact duplicate and near-duplicate detection;
- line totals, tax and grand-total arithmetic;
- currency and date-format validation;
- purchase-order quantity and tolerance;
- bank-detail changes against an independent verification process;
- mandatory-field, range and cross-field rules.
Do not let a language model repair a failed total by changing a line. Display the source crop, proposed value, confidence, rule failure and comparison record to the reviewer. Corrections should improve the evaluated pipeline only through a controlled training process, not an unreviewed feedback loop.
For upstream record discipline, use our master-data guide. For workflows spanning multiple systems, the agentic [automation guide](/blog/agentic-workflows-end-to-end-automation-uk) should be constrained by the approval model here.
Route by risk, not one confidence number
Confidence is model- and field-specific. Calibrate it on representative documents and combine it with business risk. A low-value address correction and a high-value bank change should not share an auto-approval threshold.
Create routes such as:
- straight-through data capture, with no consequential action;
- sampled capture for low-risk, high-confidence fields;
- mandatory review for financial, legal or personal-data changes;
- specialist review for policy interpretation;
- reject-and-resubmit for unreadable or incomplete sources;
- security quarantine for malicious or unexpected content.
Measure precision and recall by document family, field, channel, language, supplier and scan quality. Include handwritten amendments, photographs, rotated pages, faint text, merged files, unusual minus signs, credit notes and duplicated attachments in the test set.
Keep human review meaningful
A reviewer needs authority, time and evidence to disagree. Show the original page beside extracted fields. Highlight the exact region, validation result and relevant reference record. Do not preselect “approve” or bury the exception in a long model summary.
The government’s AI Playbook is directly aimed at government organisations but provides broadly useful principles: understand limitations, use meaningful human control, manage the full lifecycle and put assurance in place. It says the human stage should be designed, documented and assessed.
Automated rejection, account suspension, payment refusal or employment action may significantly affect a person. Assess applicable UK data-protection and sector rules before deployment. The ICO’s AI and data-protection risk toolkit is under review following the Data (Use and Access) Act, so teams should check current guidance rather than relying on a static project copy.
Data protection and retention
Documents can contain names, addresses, bank details, health data, criminal allegations or information about people who never submitted the form. Map every flow: mailbox, scanner, preprocessing, model endpoint, validation service, human queue, archive and deletion.
Document purpose, lawful basis, special-category condition where needed, transparency, retention and rights handling. Complete a DPIA where processing is likely to create high risk. Minimise before model submission: crop to necessary fields, redact unrelated content and avoid retaining raw prompts where a structured audit record suffices.
Apply role- and case-based access. A reviewer should see only the documents needed for their queue. Separate test, training and production data. Contract with processors for instructions, confidentiality, subprocessors, transfers, security, deletion, audit and incident support.
Retention must follow the record’s purpose and legal context, not the model vendor’s default. Deleting a document from the case system while embeddings, OCR caches and support logs persist is not complete deletion. Maintain a tested inventory of every copy and derivative.
Our UK AI data-protection guide provides the wider accountability pattern.
Secure an adversarial input channel
Documents arrive from outside the trust boundary. Scan for malware and active content before rendering. Use hardened, isolated converters with resource limits. Block external link fetching, macros and embedded scripts. Validate archive depth and file size to resist decompression and denial-of-service attacks.
Prompt injection can be printed in a PDF, hidden in white text or embedded in metadata. Treat all document text as data, never instruction. The model should have no direct ability to change bank details, send money, delete records or alter approval policy. Downstream actions must pass a typed, deterministic policy service.
The NCSC’s secure AI deployment guidance calls for infrastructure protection, incident procedures, responsible release and clear limitation guidance. The AI Cyber Security Code of Practice adds baseline controls for providers and deployers.
Test malicious files, cross-tenant access, forged sender metadata, extraction poisoning and a compromised reference-data feed. Maintain a manual intake route when the model or vendor is unavailable.
Governance, suppliers and change
Name a process owner, records owner, data owner, security owner and accountable decision owner. Keep a use-case register with document families, permitted actions, models, thresholds, data classes, retention and fallback.
Supplier evaluation should include representative document trials, exportability, model and OCR version notice, regional processing, deletion evidence, training-data use, accessibility, incident response and exit. Avoid proprietary output without the coordinates, confidence and provenance needed to migrate.
Pin versions during a controlled processing period. Regression-test any model, prompt, renderer, schema, supplier or reference-data change. Run daily exception and volume monitoring so a silent feed failure cannot produce apparently clean automation.
Measure the whole process
Track:
- field precision and recall by risk and document type;
- incomplete, wrong-customer and duplicate-document rate;
- false straight-through approvals and sampled escapes;
- median receipt-to-decision time and queue age;
- human correction and disagreement reasons;
- reconciliation differences and post-payment corrections;
- privacy, security and retention incidents;
- cost per correctly completed case.
“Automation rate” is not success if exceptions are pushed downstream or customers must call to correct records. Compare end-to-end rework, loss and user outcomes with the manual baseline.
A 90-day controlled rollout
Days 1–30 — scope and evidence. Choose one low-to-medium-risk document family. Map the process, sources, legal requirements and copies. Preserve a representative evaluation set, classify fields by harm, complete DPIA and threat model, and baseline time, errors and rework.
Days 31–60 — shadow extraction. Process copies without changing production. Implement validation, source crops, queues and audit records. Test poor scans, malicious content, missing pages and supplier outage. Calibrate field thresholds and review every proposed result.
Days 61–90 — bounded production. Allow straight-through capture only for agreed low-risk fields, while consequential actions remain human-approved. Sample accepted documents, reconcile every output and run restore, deletion and manual-fallback exercises. Independent assurance reviews a risk-based sample.
Expand only when:
- 100% of outputs resolve to the original page and extraction region;
- critical financial and identity fields meet their agreed precision threshold;
- no consequential action bypasses its required approval;
- document completeness and duplicate controls catch every seeded case;
- end-to-end correction and reconciliation rates do not worsen;
- deletion covers originals and all model derivatives;
- no critical security, privacy or records finding remains open.
Pause if sources cannot be reproduced, a model update arrives without testing, confidence becomes uncalibrated, wrong-customer attachment occurs, or exceptions accumulate faster than reviewers can act. Disable actions after a bank-detail, payment or access-control failure. Good document AI turns uncertainty into a visible queue; it never hides uncertainty behind clean structured fields.
Primary sources checked
- AI and data-protection risk toolkit, ICO
- AI Playbook for the UK Government, February 2025
- Digitisation guidance, The National Archives
- Understanding records in line-of-business systems, The National Archives
- Information Management Assessment programme, The National Archives
- Secure deployment of AI systems, NCSC
- AI Cyber Security Code of Practice, DSIT



