AI Document Processing: Extract, Check and Route
AI document processing for Australian teams: extract fields, check them with plain rules, route doubtful files to a person and set a pass mark.

AI document processing turns incoming invoices, forms and letters into checked records in your own systems. A model reads each document and proposes field values, plain code tests those values, and anything doubtful goes to a person before it reaches the ledger. This guide is for Australian product owners and development leads who want one narrow, testable pipeline. It complements our guide to an AI chatbot for a business website, which covers a public assistant with a hard cost cap, and our guide to on-device AI for mobile apps, which covers where a model should run on the phone.
Key Takeaways
- AI document processing for business works when the model proposes values, and code and people decide what is accepted.
- Start with one document type, a fixed field list and a named owner for the exception queue.
- Write the acceptance gate first: a labelled test set, a pass mark per field and a ceiling on wrong values reaching the ledger.
- Keep an audit trail from the source file to every final value.
What Does AI Document Processing Look Like in Practice?
AI document processing is a three-stage pipeline: extract, check and route. Extraction proposes values, checking tests them against rules the model cannot overrule, and routing sends each document to automatic acceptance, a reviewer or an exception queue.
A good first use case is supplier invoices arriving by email as PDFs and phone photos for accounts payable. Nobody converses with this system, so the failure that matters is a wrong value sitting quietly in a ledger, not an awkward sentence on a web page.
Decision Inputs to Settle Before Building
Six inputs shape the design.
- Document type - Choose one, such as tax invoices, and note whether files are digital PDFs, scans or phone photos.
- Field list - Name each field, its type and whether it is required: supplier, ABN, invoice number, date, GST and total.
- Cost of a wrong value - A wrong description is a nuisance. A wrong bank account or amount is a payment error that may not be reversible.
- Data boundary - Documents carry personal information. The OAIC's guidance on commercially available AI products says privacy obligations apply to personal information put into an AI system and appearing in its output. Decide which provider sees the files and how long they are kept.
- Volume and budget - Set a cost ceiling per document and a monthly cap at the model gateway, as with the spending cap in the chatbot guide.
- Exception owner - Name a role, a working-day response time and the authority to correct or reject.
Extract: Turn Pages Into Proposed Fields
Extraction should return structured data, never free text. Ask for a fixed schema in which every field carries a value, a confidence score and the page location it came from. Use the text layer when a file has one, and optical character recognition for scans.
Model-reported confidence is a signal, not a probability, so calibrate it against your labelled sample. Set thresholds per field and raise them for fields that move money. As an illustration only, you might auto-accept amounts and bank details at 0.95 or above and descriptions at 0.85 or above.
Treat document text as untrusted input. A line inside a PDF telling the system to approve the invoice is data, not an instruction. OWASP calls this indirect prompt injection in its entry on LLM01:2025 Prompt Injection. Keep the extraction step free of tools that can change anything.
Check: Validate With Rules the Model Cannot Argue With
Checking is ordinary code run on the model's output. OWASP's entry on improper output handling advises treating the model like any other user and validating its responses before they reach backend functions. For Australian invoices, useful rules include:
- Format and totals - Dates parse, required fields are present, line items add up to the subtotal and the subtotal plus GST equals the total.
- ABN checksum - The Australian Business Register publishes the ABN format: subtract 1 from the first digit, multiply each digit by its positional weighting and confirm the sum divides by 89 with no remainder. A pass shows the number is well formed, not that the business is registered.
- GST arithmetic - Compare GST with one eleventh of the total, the relationship behind the ATO's words "Total price includes GST", allowing for rounding and checking GST-free lines separately.
- Tax invoice content - The ATO's tax invoice requirements include the seller's identity and ABN, the issue date, a description with price and the GST amount, and add the buyer's identity or ABN from $1,000. Flag gaps and leave edge cases to your accountant.
- Business cross-checks - The supplier exists, the ABN matches it, the purchase order is open and the supplier, invoice number and total are new.
Each failed rule writes a reason code, so the queue is sortable and measurable.
Route: Four Outcomes and a Human Exception Queue
Routing uses rule results and confidence, with a person as the default whenever either is in doubt.
- Auto-accept - Every field clears its threshold, every rule passes and the amount is below a limit your finance lead sets.
- Review - A soft rule fails or a field sits below its threshold. A reviewer sees the source image beside the extracted values.
- Exception - A hard rule fails, such as an invalid ABN, a duplicate or an unknown supplier. The document enters the exception queue with its reason code.
- Unreadable or wrong type - A blurred scan, or a statement mistaken for an invoice, goes back for resubmission and is never guessed.
The exception queue is a product feature, not a shared inbox. Give it an owner, an ageing alert and one screen showing the document, the proposed values and the failed rules, with three actions: approve, correct or reject. Save every correction for the next version of your test set.
Failure Modes to Plan For
- Confident wrong values - A transposed digit can arrive with high confidence. Rules catch many, and a weekly sample of auto-accepted documents catches more.
- Layout drift - A supplier changes its template and accuracy falls quietly. Watch the exception rate by supplier.
- Provider outage or cost spike - Queue the files, stop at the monthly cap and fall back to manual entry.
Acceptance Gate and Cost Controls
An acceptance gate is a pass mark agreed before the build. Take a held-out set of real documents, have a person label every field and keep that set out of prompt tuning. Measure exact-match rate by field, wrong values among auto-accepted documents, the share routed to people and reviewer minutes per exception.
These numbers are illustrative, so replace them with your own. A gate might read: on 200 labelled invoices, no auto-accepted document has a wrong total or bank detail, every other field is exact on at least 98 percent of auto-accepted documents, and no more than 30 percent need a person. Run in shadow mode first, with staff still processing every document.
For cost, set a page limit per file and a single retry, try a smaller model first and escalate only low-confidence documents. Log tokens per document so cost per accepted record is a visible number.
Audit Trail, Privacy and Governance
An audit trail answers how any value reached the ledger. Record the file hash and received time, the model and prompt version, extracted values with confidence, rule results, the route taken, the reviewer and any correction. Store it append-only, as covered in our guide to SaaS audit logs, and log identifiers rather than full document text where you can.
The OAIC notes that AI systems can produce inaccurate results and that APP 10 requires reasonable steps to keep personal information accurate. It points to human oversight and recommends against entering personal information into publicly available generative AI tools. The voluntary NIST AI Risk Management Framework, released on 26 January 2023, is a reasonable place to record these risk decisions. None of this amounts to certification or guaranteed security.
AI Document Processing Best Practices as a Build Checklist
- Pick one document type, collect a sample and label it.
- Write the acceptance gate and the field thresholds.
- Build extraction against a fixed schema, add validation rules with reason codes and score both on the labelled set.
- Build the review screen and exception queue before enabling auto-accept.
- Run in shadow mode, then auto-accept one supplier at a time.
For a build, the page on AI-powered platform options describes automated workflows, API integrations and automation with a human in the loop, which are the building blocks of this pipeline.
Related Resources
- RAG architecture for private company data
- Audit logs buyers can trust
- OAIC guidance on commercial AI products
- OWASP on improper output handling
- OWASP on prompt injection
- NIST AI Risk Management Framework
- ABN format and check digits
Answers for Teams Planning AI Document Processing
1. Can AI Document Processing Run Without a Person in the Loop?
For low-risk fields on a well-tested document type, yes, once the gate has passed and sampling continues. For payments, tax and personal information, keep a person on every exception and on high-value documents.
2. How Accurate Does Extraction Need to Be?
There is no universal figure. Set the pass mark from the cost of a wrong value, then test it on held-out labelled documents.
3. Can We Send Documents Containing Personal Information to an AI Provider?
Privacy obligations apply to personal information entered into an AI system and to what it generates. The OAIC advises due diligence on the product, including who can access the data and how human oversight fits. Take legal advice for your sector.
4. What Happens to Poor Scans and Handwriting?
Treat them as exceptions: return unreadable pages for resubmission or send them to review, and track the rate by source.
Start With One Document Type and One Gate
Pick one document type, label a sample of real files and write the gate before choosing a model. Build the exception queue before auto-accept, and widen the scope only when each stage clears its pass mark.


