Home / Articles / Document AI
Document AI

From paperwork to process: AI for invoices, forms, contracts and claims

Document AI can classify a file, extract the fields that matter and route uncertainty to a person. The value comes when that data enters a controlled process, not when a PDF merely becomes text.

AnswersWhich documents can become working data?
Document AI12 min read6th Meridian

Which documents can become working data?

Extraction is only the middle: confidence checks and human exceptions protect the business action that follows.

Every organisation has a second, unofficial operating system. It is made of PDFs attached to email, scanned forms, signed contracts, photographs of receipts, supplier invoices and claim packs. People open these files, locate the useful facts, type those facts into another system and then send the work to the next person. The process feels ordinary because it has been repeated for years. It is also slow, difficult to measure and surprisingly easy to break.

Document AI changes the role of the document. Instead of treating a file as a picture that a person must read from beginning to end, the business can turn its contents into structured data that software can validate, route, search and analyse. A PDF invoice can become supplier, invoice number, currency, tax, total and line-item fields. A claim pack can become a set of classified documents with the relevant facts attached. A contract can become an obligation record with dates, parties and clauses linked back to the source pages.

That does not mean the machine should make every decision. The best document-AI programmes combine fast machine reading with clear business rules and human review. The objective is not “zero people.” The objective is to stop asking skilled people to perform low-value transcription, while preserving human judgment where money, rights, safety or reputation are at stake.

What Document AI actually does

The phrase document AI can sound more mysterious than it is. In practice, it combines several capabilities.

First, optical character recognition, usually called OCR, turns words in a scan or image into machine-readable text. Modern document processing can also retain layout: which text belongs to a table, which value sits beside a field label, and where an item appeared on the page. Google Cloud Document AI can return text and layout, recognise key-value pairs and tables, classify document types, split a large file containing several documents, and extract defined entities into structured fields. Its Enterprise Document OCR can also assess image quality and correct skew, which matters when files arrive as uneven scans or mobile photographs.

Second, extraction identifies the facts the business cares about. A general OCR result might recognise every word on an invoice. An invoice processor should distinguish the purchase-order number from the invoice number, the subtotal from the total and each product line from the surrounding text. Google Cloud provides specialised processors for common document types, as well as custom extractors for documents unique to a business. Its generative custom-extraction approach supports zero-shot, few-shot and fine-tuned methods, so a team can begin with a schema and examples, then improve performance with representative labelled documents.

Third, classification and splitting establish what arrived. A 40-page upload might contain a cover letter, an identity document, a signed application and several supporting statements. Classification labels each part; splitting creates the boundaries; extraction sends each part to the appropriate processor. This is often the difference between an impressive demonstration and a useful production workflow.

Finally, workflow logic decides what happens next. That logic is not supplied by a language model’s opinion. It comes from approved business rules: a valid supplier must exist in the vendor master; an invoice total must equal its lines plus tax; a claim above a threshold requires a second review; an unsigned agreement cannot move to activation. AI reads and proposes. Rules validate. People decide exceptions.

Four use cases that make the idea concrete

1. Invoices: move accounts payable from data entry to exception management

Consider a regional distributor receiving invoices through email, supplier portals and scans from local branches. Today, an accounts-payable analyst may open each file, enter header fields, type or upload line items, check for a purchase order and look for duplicates. A document-AI workflow can change the sequence.

The system receives the file, checks whether the scan is readable, extracts the supplier name, invoice number, dates, currency, tax, totals and line items, and returns a confidence score for each field. Business rules then compare the information with the supplier master, purchase order and goods receipt. A clean three-way match can move to the organisation’s normal approval policy. A mismatch, missing purchase order, low-confidence bank detail or suspected duplicate enters a review queue with the original page beside the proposed values.

The important design choice is that automation is field-specific and risk-aware. A low-confidence description may not matter if it is for search only. A low-confidence bank-account change matters enormously and should never be silently accepted. The review threshold should reflect the consequence of an error, not a desire to claim a high automation rate.

The useful measures are not simply “documents processed.” Track touchless processing rate, extraction precision and recall for critical fields, duplicate-payment prevention, average time from receipt to posting, exception age, early-payment discounts captured and the number of corrections made after posting. Those measures reveal whether the workflow is creating reliable work, not merely fast work.

2. Forms: make intake easier without forcing every customer into a perfect template

Forms appear in onboarding, lending, maintenance, healthcare administration, public services and internal requests. Even when a standard form exists, people attach supporting pages, write in margins, leave fields blank or use an older version. A rigid automation script often fails because it expects a perfect template.

Document AI can identify the form type, extract key-value pairs and tables, normalise the result, and flag missing or uncertain information. The workflow can then send a precise request such as “proof of address is missing” instead of the unhelpful “application incomplete.” If an uploaded PDF contains several document types, classification and splitting can separate them before processing.

For the customer, the benefit is fewer repeated questions. For the operations team, it is a consistent case record and a queue organised by what needs attention. For management, it is visibility: where applications stall, which fields cause the most rework and which channels send the poorest-quality documents.

The safeguard is to avoid turning an extraction score into an eligibility decision. The processor can tell the workflow what appears in a field and how confident it is. It cannot determine the fairness of a policy or resolve an ambiguous case without the surrounding business and legal context. Missing-data requests, adverse decisions and sensitive classifications should follow approved policies with appropriate human oversight.

3. Contracts: create an obligation register, not an artificial lawyer

Contracts contain commercially important information that often remains trapped after signature. Renewal windows, notice periods, price-review clauses, service commitments, insurance requirements and data-handling terms may live in folders known only to the deal team. The predictable result is missed dates, duplicate review and last-minute escalation.

A document-AI workflow can extract defined fields and clauses, retain page references, and place the results in a searchable contract register. A generative model can help summarise a clause or answer a question grounded in the contract set, but the answer should link back to the relevant source text. The business can then drive reminders, assign obligation owners and identify agreements that require legal review before renewal.

The boundary is critical: extraction and summarisation are not legal advice. A phrase can have a different meaning because of another clause, an amendment or governing law. High-impact interpretations should go to qualified counsel. The AI’s job is to find, organise and present the evidence, not to issue a final legal conclusion.

Useful measures include percentage of active contracts indexed, proportion of extracted obligations confirmed by reviewers, renewal notices issued on time, time spent locating clauses, unresolved obligation age and the rate of answers that include a valid source reference.

4. Claims: assemble the case before asking someone to judge it

Insurance, warranty, expense and service claims rarely arrive as one tidy record. They can include a form, photographs, receipts, estimates, correspondence and previous decisions. The valuable opportunity is to create a coherent case file before an assessor begins.

The workflow can classify and split the incoming pack, extract dates, amounts, parties and identifiers, connect supporting evidence to the right claim, and highlight inconsistent or missing information. A multimodal Gemini model can analyse text and images when a use case needs both, while Document AI provides specialised document structure and extraction. Rules can compare policy dates, coverage limits and required evidence. The assessor sees a case summary, flagged exceptions and links to the original pages or images.

This is triage, not automatic rejection. Image quality, unusual circumstances and legitimate exceptions can all produce weak or misleading signals. A suspicious pattern should initiate investigation; it should not become proof of fraud. The organisation should define when a case may proceed automatically, when a person must review it and when a specialist must make the final decision.

A sensible implementation pattern

The patternCapture, classify, extract, validate, post
  1. 01

    Capture

    Take the document as it arrives — scan, email attachment, portal upload.

  2. 02

    Classify

    Establish what kind of document it is before trying to read it.

  3. 03

    Extract

    Pull the fields that matter, each with a confidence score attached.

  4. 04

    Validate

    Check against the systems of record; route anything uncertain to a person.

  5. 05

    Post

    Write the result into the process that was waiting for it.

The confidence score at step 03 is what makes step 04 possible: exceptions become a queue to work rather than errors to discover later.

Successful projects start with the workflow, not the model. Map one document journey from arrival to completed business outcome. Record who handles it, which fields they capture, which systems they check, which rules they apply and where work waits. Choose a bounded process with enough volume to matter and enough historical examples to test.

Next, create a document inventory. Separate document types, versions, languages, scan qualities and channels. Identify sensitive fields and retention requirements. A model tested only on clean digital PDFs will disappoint when production contains photographs, handwriting and old templates. The test set must resemble reality, including the awkward cases.

Then define a schema in business language. Do not begin by extracting every visible field. Ask which values drive a decision, search, payment, obligation or measurement. For each field, define its format, whether it is mandatory, what system is authoritative and what should happen when confidence is low.

Build the processing path in stages: receive the file; check quality; classify and split; extract; normalise; apply deterministic rules; route exceptions; record the decision; and retain a link to the source. Google Cloud Document AI can integrate with Cloud Storage for files and BigQuery for analysis, and processed content can feed enterprise search when the business needs discovery and grounded answers.

Evaluate before scaling. Document AI reports precision, recall and F1 metrics by comparing processor predictions with human-labelled test documents. Precision answers, “When the processor supplied a value, how often was it right?” Recall answers, “Of the values that should have been found, how many were found?” F1 balances the two. The correct threshold depends on the field. For a high-risk field, it may be better to send more items to review in exchange for fewer false accepts.

Run the pilot in shadow mode. Let the system process real work without controlling the outcome, then compare its proposed fields and routes with what trained staff did. Investigate errors by document type, source and field. Improve the data, schema, processor or rule. Only then allow limited automation, beginning with low-risk cases and a clear rollback path.

Controls that should exist from day one

Access should follow job responsibilities. The person who can tune extraction should not automatically be able to approve a payment. Sensitive files need appropriate storage, encryption, region and retention controls. Google Cloud documents support for controls including data residency, VPC Service Controls, Access Transparency and customer-managed encryption keys for Document AI. Google also states that customer data is not used to train its Document AI models.

Every processed item should carry lineage: the original file, processor version, extracted values, confidence, rules applied, human changes and final outcome. That record makes disputes, audits and model improvement possible.

If the workflow adds a conversational assistant, protect both inputs and outputs. Ground answers in approved sources, show citations, restrict access to documents the user is entitled to see and prevent the model from taking consequential actions without an authorised control point. Google Cloud Model Armor is designed to screen prompts and responses for threats such as prompt injection, sensitive-data leakage and harmful content, but technical filters are only one layer. Policy, permissions and human review still matter.

Finally, monitor drift. New supplier layouts, revised forms, new languages and camera-scanned images can reduce performance over time. Keep a representative evaluation set, monitor field-level quality and review the largest sources of exception work. Treat the processor as a managed business capability, not a one-off installation.

Start small enough to learn, but important enough to matter

A good first project is not “process every document in the company.” It is one document family, one accountable owner and one measurable outcome. For example: domestic purchase-order invoices from the 20 highest-volume suppliers; a single onboarding form and its supporting documents; or a defined contract type with six obligations to capture.

Agree the baseline before building. How long does the work take today? What percentage requires rework? Which mistakes carry the largest cost? Then set a balanced target: shorter cycle time, fewer corrections, more complete data and no weakening of control effectiveness.

Document AI is most valuable when it changes the shape of work. Instead of reading every page and typing every field, people handle ambiguity, policy and judgment. Instead of files disappearing into folders, the organisation gains structured information it can validate, search and measure. The outcome is not a magical paperless office. It is a more observable, controlled and responsive operation.

  • Document AI overview https://docs.cloud.google.com/document-ai/docs/overview
  • Document AI processor list https://docs.cloud.google.com/document-ai/docs/processors-list
  • Custom extractor with generative AI https://docs.cloud.google.com/document-ai/docs/ce-with-genai
  • Document AI evaluation metrics https://docs.cloud.google.com/document-ai/docs/evaluate
  • Document AI security and compliance https://docs.cloud.google.com/document-ai/docs/security
  • Generative AI on Vertex AI overview https://docs.cloud.google.com/vertex-ai/generative-ai/docs
  • Gemini 3.6 Flash model information, including supported modalities https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/gemini/3-6-flash
  • Model Armor https://cloud.google.com/security/products/model-armor
  • Vertex AI zero-data-retention and training-restriction guidance https://docs.cloud.google.com/vertex-ai/generative-ai/docs/vertex-ai-zero-data-retention

This article is original editorial work for a business audience. Product facts were checked against the official sources above. Any performance figures are targets to validate against your own baseline, not vendor guarantees.

Bring us the operating need, risk, or opportunity. We will connect the people, security, AI and enterprise systems required to act.

Start a conversation

Come with a problem. Leave with a decision.

One working session. You leave knowing what to build first, what it needs, who owns it, and how you will know it worked.