Muon SolutionsSearch services, guides and toolsBook a callMenu

Type 2 or more letters. Press Enter to open the first result, Esc to close.

AI-07AI implementation

AI document intelligence

How we build a pipeline that reads your documents, checks them against your records, and posts only what passes.

Engagement
Fixed-fee build for each document type
Typical length
4 to 6 weeks to build, then a supervised run of 4 weeks or more
Pricing model
Fixed fee to build. Cloud usage billed to your own account.
You get
Pipeline, review queue, test set, accuracy report, audit log

Key points

  • The pipeline classifies each document, extracts named fields, checks them against your ERP, TMS or project records, sends doubtful fields to a review queue and posts the rest.
  • An AI model performs 2 steps only: classifying the file and extracting the fields. The checks, the matching and the posting are ordinary code with fixed rules.
  • Every field has its own confidence threshold, set from measured accuracy on a test set of your past documents, typically 150 to 300 for each type.
  • Payment approval and changes to vendor banking details always stay with a person.
  • The pipeline, the files and the log sit in your own cloud tenant, and you own the code, prompts and test sets.

What the pipeline does with each document

Document intelligence is a pipeline that reads the documents your staff key by hand, such as supplier invoices, bills of lading and insurance certificates. It classifies each file, extracts the fields, checks them against your ERP, sends doubtful ones to a review queue and posts the rest. We build it in your tenant and measure accuracy field by field.

  1. IntakeShared mailbox, scanner folder, phone photo or portal upload
  2. Classify and extractDocument type, then fields with a confidence score and a page location
  3. Check and matchArithmetic and duplicate rules, then your ERP, TMS or project records
  4. Review queueA person confirms the fields that failed a check
  5. Post and fileEntry created in the business system, file stored, every step logged

An AI model performs 2 of these steps: it classifies the file and extracts the fields. The checks, the matching and the posting are ordinary code with fixed rules, so the same extracted values give the same result and each decision can be traced afterwards.

An AI agent chooses its next step and uses tools. This pipeline runs a fixed sequence, which suits documents that end in a ledger entry. The accounts payable agent described on that page reads invoices through a pipeline of this kind.

Classification
Deciding what a file is (invoice, credit note, bill of lading, certificate) and splitting a scan that holds several documents.
Confidence score
The model's own estimate, from 0 to 1, that a value is right. It has to be compared with measured accuracy before anyone relies on it.
Grounding
The page and position a value came from, so a reviewer sees the source beside the value.
3-way match
The invoice compared with the purchase order and with the receipt or delivery ticket. A 2-way match leaves out the receipt.
Test set
A fixed set of your past documents with the correct values recorded, rerun after every change.

Who it fits, and when a different route is better

It fits when 1 document type arrives in volume and ends in a system that holds records to check it against: a purchase order, a load, a submittal register. With nothing to match, every value depends on the reading alone. The usual buyer is a controller with an accounts payable backlog, an operations lead whose billing waits on proof of delivery, or a project controls manager tracking submittals and certificates.

Reading documents is 1 of 5 routes, and for some situations it is the wrong one.
Your situationBetter routeWhy
A few large suppliers or customers send most of the volumeAsk them for EDI or a data fileStructured data needs no reading. An X12 810 invoice or 850 purchase order arrives as fields. See EDI and supply-chain integration.
Supplier invoices only, standard coding, and your ERP vendor sells an invoice capture moduleBuy the moduleIt already connects to your vendor master and approval workflow.
Several document types, job cost coding, or matching rules a packaged product cannot expressA built pipeline, which is this serviceThe fields, rules and destinations are written for your documents and systems.
A document type that takes a few hours a month to keyKeep it manual200 invoices at 4 minutes each is about 13 hours a month. The baseline step compares that time with the build fee and the upkeep.
Every document needs a judgment call, such as a claim or a disputeKeep a person on each oneExtraction can prefill the form. The person still decides.

Where a trading partner can send structured data, take it, and read documents only from the partners who cannot.

Documents we build for, and what each is checked against

Each document type has its own fields, its own match and its own destination.
DocumentFields readChecked againstResult
Supplier invoice and credit noteVendor, invoice number, date, PO number, subtotal, tax, total, line itemsVendor master, open PO or subcontract, receipt, earlier invoicesUnposted entry coded to a GL account or to a job and cost code
Purchase order from a customerCustomer, PO number, ship-to, lines, quantities, prices, required dateCustomer master, item master, price listDraft sales order for a person to release
Bill of ladingShipper, consignee, BOL and PRO numbers, pieces, weight, freight classThe load or shipment in the TMSLoad updated and the image attached
Proof of deliveryDelivery date and time, receiver name, whether a signature is present, shortage or damage notesThe load and its bill of ladingLoad set to delivered, exceptions flagged, invoice released for billing
SubmittalProject, specification section, subcontractor, revision, submittal typeThe submittal register in the project systemRegister entry with the file attached, routed to the reviewer
Contract or subcontractParties, dates, value, payment terms, holdback, insurance requirements, notice periods, each with its clause numberYour contract checklist and the commitment in the ERPSummary sheet with renewal and notice dates. No legal opinion.
Certificate of insuranceInsured name, insurer, policy numbers, coverage types and limits, effective and expiry datesThe vendor record and the limits your contract requiresVendor compliance record updated and an expiry reminder set

In a construction firm

Subcontractor and supplier invoices are matched to the subcontract or purchase order in the job cost system, such as Viewpoint Vista or CMiC. The pipeline proposes the job, cost code and category from that commitment and checks the holdback against the subcontract terms. An invoice with no commitment always goes to a person.

Delivery tickets photographed on site supply the receipt for a 3-way match. Incoming submittals are classified by specification section and logged in Procore. Certificates of insurance and workers' compensation clearances are read for expiry dates, so a lapsed certificate is flagged before the next payment run. Construction technology integration covers the systems behind this.

In a logistics operation

Drivers scan signed delivery receipts at the terminal or photograph them in the cab. The pipeline reads the PRO number, finds the load in the TMS, such as Trimble TMW.Suite or a McLeod Software system, and confirms a signature is present. A clean receipt attaches to the load and releases it for invoicing. Handwritten exception notes read poorly, so any handwriting in the exceptions box sends the receipt to a person.

Extraction runs unattended overnight, so receipts scanned by night drivers are matched before a 5 am shift opens the queue. Partners that already send X12 204, 214 or 210 messages stay on EDI. The pipeline handles the carriers, shippers and brokers who send PDFs.

What is included, optional and excluded

Baseline measurement
Volume, minutes for each document, error rate and where documents arrive, measured before anything is built.
Test set
Typically 150 to 300 of your past documents for each type, with the correct values agreed with your process owner.
Classification and extraction
A prebuilt model, a custom model or a language model for each document type, chosen by running each candidate on the test set.
Checks and matching
Arithmetic, date and duplicate rules, then lookups against vendor, purchase order, receipt, load or project records.
Review queue
A screen that shows the page beside the extracted fields with the failed checks flagged, built in Power Apps, SharePoint or a small web app.
Posting and filing
Entries created through the API or import that each vendor supports, and the file stored with its metadata in SharePoint or your document system.
Controls
A service account with least privilege, a monthly cost cap with an alert before it, and an off switch that returns documents to the manual process.
Supervised run
Threshold adjustments and an accuracy report each week while your reviewers check every document, for the number of weeks stated in the quote.

Optional

  • Further document types after the first, typically 2 to 3 weeks each.
  • Back-file processing: running past documents through extraction to index them.
  • A vendor or carrier upload portal as a further intake point.
  • Search and question answering over the filed documents, built under custom AI development.
  • Operation after go-live: threshold reviews, test reruns, model updates and a monthly report, under managed AI operations.

Excluded

  • Payment approval, payment release and changes to vendor banking details. The pipeline stops at an unposted or unapproved entry.
  • Legal review of contracts and decisions about insurance coverage.
  • Cleaning up the vendor master, open purchase orders and other records the match depends on. We report what we find.
  • Scanning hardware and mailroom services.
  • ERP licences and ERP configuration beyond the posting interface.

How thresholds and the review queue decide what a person sees

Each field has its own threshold. A vendor name read at 0.97 can be accepted while the total on the same invoice, read at 0.71, goes to a person. Some rules apply whatever the score.

7 checks run on every document. Failing any 1 of them sends it to a person or blocks it.
CheckWhat triggers itWhat happens
Field confidenceA required field scores below its thresholdReview, with that field flagged
ArithmeticLines plus tax differ from the total by more than your toleranceReview, with both figures shown
DuplicateSame vendor, invoice number and amount as an earlier document, or an identical fileBlocked, and shown beside the earlier document
MatchNo open purchase order, quantity above the receipt, or price outside toleranceReview, with the difference shown
Vendor detailsVendor missing from the master, or bank or remit-to details that differ from itAlways review. The pipeline never updates banking details.
Value limitTotal above the amount you setAlways review
ClassificationDocument type unclear, or pages missing from a batchReview before extraction

Payment redirection fraud can arrive as an invoice in a real supplier's layout with new bank details. The pipeline stops on any difference from the vendor master. Your staff make the callback to the number on file, and how payment redirection fraud works describes the callback rule.

A document can also carry hidden text written to mislead a language model. The model in this pipeline has no tools and returns values in a fixed schema, and the rules and the match run after it in code. We test for this, and we do not claim it cannot happen. AI security testing covers the method.

Example Processing log for 1 morning of supplier invoices
  1. 06:12PipelineInvoice 88213: classified as an invoice (0.99). All required fields above threshold. Matched to PO 24-118-0412 and the receipt of March 3. Queued as an unposted entry, job 24-118, cost code 03-300.Done
  2. 06:13PipelineInvoice 5521: total reads 18,430.00 at 0.71, below the 0.90 threshold. Lines and tax add to 18,480.00. Sent to review.Needs review
  3. 06:13PipelineInvoice 77140: same vendor, number and amount as a document posted on February 26. Blocked as a duplicate.Blocked
  4. 06:14PipelineInvoice 2093: remit-to bank details differ from the vendor master. Sent to review. Vendor master unchanged.Needs review
  5. 08:40AP reviewerInvoice 5521: total corrected to 18,480.00 from the page image. Approved.Note
  6. 08:44AP reviewerInvoice 2093: held. Callback to the vendor's number on file requested.Note
  7. 08:45Pipeline23 entries posted to the ERP batch for the controller's approval. 4 remain in review.Done

Illustrative data, not a client record.

Accuracy is measured for every field, before and after go-live

An invoice with 9 fields right and the total wrong is a wrong invoice, so accuracy is measured for each field. The report carries 4 measures for each document type.

Field accuracy
The share of extracted values equal to the value a reviewer confirmed, for each field.
Escaped errors
Errors found in a weekly sample of documents accepted without review. This figure decides how much authority the pipeline has.
Straight-through rate
The share of documents posted with no review.
Review time
Median seconds a reviewer spends on a document in the queue.
Example Monthly accuracy report for supplier invoices
Period
November
Invoices processed
1,412
Posted without review
58%
Accepted invoices sampled
41
FieldAccuracy before reviewAccepted without reviewErrors in sample
Vendor99.2%97%0 of 41
Invoice number98.6%93%0 of 41
PO or subcontract number94.1%81%1 of 41
Total99.4%96%0 of 41
Tax97.8%90%0 of 41
Job and cost code (proposed)88.3%With a matched PO only0 of 41

Illustrative figures. The 1 error in the PO number sample moved that field back to full review for the following week.

Illustrative data, not a client record.

During the supervised run a person reviews every document, so every field gets a measured accuracy. Fields and document classes move to acceptance without review 1 at a time, when accuracy has held above your target for the period written in the scope, typically 4 weeks in a row. After that, the pipeline still picks a weekly sample of accepted documents for your reviewers. You set the share, 5% in the example above, and a failed sample moves the field back to full review.

The report is weekly during the supervised run. After it, your team produces the monthly report from the same log, or we do as part of the optional operations service.

Every correction a reviewer makes is a candidate for the test set. The test set is rerun before any change to a prompt, a rule or a model goes live, and the results are kept with the change record.

The build in 6 steps, from baseline to wider authority

  1. Measure the process

    We count documents by type and source, time the keying and record the error and duplicate rates. You give access to the mailbox, the scan folder and 3 months of history. A recommendation not to build is a valid result.

    1 week

  2. Build the test set

    Your process owner and our engineer record the correct values for the sample documents. You decide the value where the document and the ledger disagree.

    1 to 2 weeks, overlapping

  3. Build extraction, checks and matching

    We run candidate models on the test set and build the rules, the queue and the posting interface against a test company. You set the tolerances, the value limit and the duplicate rule.

    2 to 4 weeks

  4. Accept on the test set

    We report accuracy for every field before a live document is posted. You set the accuracy target and approve the first thresholds.

    1 week

  5. Supervised run

    Live documents flow through the pipeline and your reviewers check every one. We adjust thresholds each week from the measured results.

    4 weeks or more

  6. Widen authority

    Fields that hold above target move to acceptance without review. You approve each widening in writing.

    Reviewed monthly

Example 10-week plan for a first document type
Week12345678910
Measure the process (week 1)
Collect and label the test set (weeks 1 to 2)
Build extraction, checks and matching (weeks 2 to 4)
Review queue and posting to a test company (weeks 3 to 4)
Acceptance on the test set (week 5)
Supervised run, every document reviewed (weeks 6 to 9)
First decision to accept without review (week 10)

Illustrative data, not a client record.

The scope lists the days when nothing is deployed, such as payroll cut-off, month-end close or bid day.

What you hold at handover: pipeline, test set, log and runbook

  • The working pipeline and review queue in your cloud tenant.
  • The test set, code, prompts, rules and thresholds in your repository, with a change record.
  • A design document that lists each service, where it stores and processes data, and its training and retention terms.
  • An audit log holding, for each document, the original file, the extracted values with confidence and page position, the result of each check, reviewer edits and the posting reference.
  • A weekly accuracy report during the supervised run, in the format shown above.
  • A runbook covering the off switch, the cost cap, the retry rules and who to call.

Files are stored with their metadata, so they can be found by vendor, job, load or date. SharePoint and document management covers libraries, retention labels and permissions.

A fixed fee for each document type, and the 8 factors that move it

The build of each document type is a fixed fee, quoted in writing before work starts. The quote lists the document types, the fields, the matching rules, the systems and the number of weeks of supervised run it covers.

Cloud usage (pages read, model tokens, storage) is billed by the cloud provider to your own subscription, because the resources are registered in your company's name. The monthly cost cap is set before go-live. Operation after the supervised run is a separate monthly service.

8 factors move the build fee. Layout variety and matching depth move it most.
FactorLower feeHigher fee
Document types1Several, mixed in the same inbox
Layout variety20 senders account for most of the volumeHundreds of senders with 1 document each
FieldsHeader fields onlyLine items and tables that run across pages
Matching2-way match to a clean purchase order list3-way match with partial receipts, job cost coding and holdback
PostingA system with a documented APIImport files, or an on-premises system reached through a gateway
Source qualityDigital PDFsPhone photos, faxes, stamps and handwriting
Languages1English, French and others in the same flow
ResidencyAny regionA Canadian region only, or a private deployment

What we need from your team before the build

Before the build starts

Platforms, data location and records

  • Azure Document Intelligence
  • Azure Content Understanding
  • AI Builder
  • Power Automate
  • Power Apps
  • SharePoint
  • Microsoft Foundry
  • Amazon Textract
  • Amazon Bedrock
  • Google Document AI
  • Claude
5 ways to read a document. We choose by running the candidates on your test set.
ToolSuitsLimits to know
SharePoint autofill columnsIndexing files in a library: a document type, a date or a party name saved to a columnNo matching and no review queue. Microsoft recommends no more than 10 columns in a library and files of 65 pages or fewer.
AI Builder invoice processing in Power AutomateInvoice header and line fields with confidence scores, inside a flowA fixed field list unless a custom model is trained.
Azure Document IntelligencePrebuilt models for invoices, receipts and contracts, custom models for your layouts, and a custom classifier that identifies the document type firstCustom models need labelled samples of each layout.
Azure Content Understanding, or a language model that reads page images, such as ClaudeVaried layouts and long contracts, with fields defined by a schemaResults vary more between runs than a trained model's, so the test set matters more.
Amazon Textract or Google Document AICompanies whose systems already run on AWS or Google CloudAs of December 2026, AWS lists Amazon Textract Insights, its generative extraction capability, in 2 US regions only: N. Virginia and Oregon.

Names as published by each vendor in December 2026. The 2 Azure services are part of Foundry Tools (formerly Azure AI Services).

Where documents are processed and stored

The pipeline, the files and the log sit in your own cloud tenant, in the region you choose. Data can be stored and processed in Canadian regions. We document where each service stores and processes data.

A pipeline can use 2 services in 2 places: an extraction service in 1 region and a language model that reads page images in another. The design document gives the region for each. Model availability differs by region, so we check each model before we promise residency.

Storing data in a Canadian region does not by itself remove exposure to foreign law when the provider is foreign-controlled. Where no hosted service meets a contract clause, private and sovereign AI hosting covers the options.

Delivery receipts, certificates and contracts carry names and signatures. Quebec's Law 25 requires a privacy impact assessment for an information system project involving personal information, and before personal information is communicated outside Quebec (ss. 3.3 and 17). We supply the data flow and the list of services. Your privacy officer or counsel writes the assessment. See Canadian privacy law.

For clients in the United States and other countries, the same design is deployed in your tenant, in a region in your jurisdiction. Our build work is remote, and deployment windows are agreed in your time zone.

Records and retention

The pipeline keeps the original file unaltered beside the extracted values, and the log is kept as long as the documents it describes. The Canada Revenue Agency says a business generally keeps records and supporting documents for 6 years from the end of the last tax year they relate to, and keeps them in Canada unless the agency gives written permission to keep them elsewhere (page dated August 3, 2026). The same page says records kept outside Canada and reached electronically from Canada are not treated as kept in Canada. Settle the storage region and the retention period with your accountant before the build.

Where the pipeline sits in your IT

The intake mailbox stays behind your existing email filtering, so attachments are scanned before the pipeline reads them. The service account is created in your directory, with read access to the lookup records and write access to the posting interface only, and its sign-ins appear in your own logs.

Where extraction falls short, and what the pipeline does when something fails

  • Extraction will be wrong on some fields. The design assumes it: thresholds, matching and review catch errors, and the weekly sample measures what gets through.
  • Faint thermal paper, stamps over text and skewed phone photos read worse than digital PDFs. We report their accuracy separately, and some stay manual.
  • A match depends on the records behind it. Duplicate vendors, purchase orders left open and receipts entered late all produce review items. We report them. Cleaning them up is separate work.
  • Reading a certificate of insurance records what the certificate says. Your broker or the insurer confirms that the policy is in force.
  • Contract extraction lists clauses and dates with their references. A clause missing from the summary may still be in the contract, so counsel reads the contract.
  • The pipeline does not reliably detect forged or altered documents. The vendor master check and your callback procedure remain the controls.
Each failure has a defined behaviour and a manual fallback.
When this happensThe pipelineYour team
The reading service is unavailableHolds documents in the intake folder, retries, and alerts after the period you setWorks urgent items by hand from the same folder
A supplier changes its invoice layoutScores drop and those invoices go to reviewReviews as normal while we add the layout to the test set
A model version is updated or retiredStays on a named version where the service allows it. We rerun the test set on the new version before the switch.Approves the switch if the results hold
A wrong entry is postedShows the file, the values, the check results and the posting reference in the logReverses the entry through the ERP's normal process
Usage approaches the monthly cost capAlerts before the cap. At the cap it stops reading and holds documents.Decides whether to raise the cap
You want it off1 setting stops processing and routes mail and scans to the manual folderCarries on with the manual process

Questions buyers ask

How is this different from the OCR we already have?

OCR turns an image into text. This pipeline adds the document type, named fields as typed values, checks against your records, a review step, posting to the business system and a measurement of how often each field is right.

What accuracy will we get?

We can't state a number before your documents are tested. It depends on your layouts, the scan quality and the fields. At the acceptance step you see measured accuracy for every field on your own documents, before anything is posted. Digital PDFs from repeat senders usually read best. Handwriting and phone photos read worst.

Will it post to our ERP without a person checking?

Only for the fields and document classes you approve in writing, after accuracy has held above your target through the supervised run, typically 4 weeks of full review. Entries arrive unposted or unapproved, so your existing approval step still applies. Payment release and vendor banking changes always stay with a person.

Does the AI vendor train its models on our documents?

It depends on the service and the plan, so we record each vendor's training and retention terms in the design document before a document is sent. As an example, Anthropic states: "By default, we will not use your inputs or outputs from our commercial products" to train models (page dated August 18, 2026). We check the terms again when a service changes.

Who owns the pipeline, and how do we leave?

The cloud resources and accounts are registered in your company's name. You own the code, prompts and test sets, delivered to your repository. If you leave, you get a handover of documentation, credentials and admin access, and the pipeline stays where it is, in your tenant.

Do we need to replace our ERP or our scanners?

No. Documents arrive the way they do now, by mailbox, scanner folder or phone. Posting uses the API or the import that your ERP, TMS or project system vendor supports. We do not write to a system's database tables directly, so the system's own validation still runs.

Sources

  1. Microsoft Learn: Azure Document Intelligence in Foundry Tools overview
  2. Microsoft Learn: accuracy and confidence scores in Document Intelligence
  3. Microsoft Learn: Azure Content Understanding in Foundry Tools overview
  4. Microsoft Learn: AI Builder invoice processing prebuilt model
  5. Microsoft Learn: overview of autofill columns in SharePoint
  6. AWS: What is Amazon Textract
  7. Google Cloud: Document AI overview
  8. X12: transaction sets
  9. Canada Revenue Agency: where to keep your records and for how long
  10. Anthropic: is my data used for model training

Last reviewed December 2026. Written and reviewed by Muon Solutions staff.

Tell us the document and where it ends up

Send the document type, the monthly volume and the system it is keyed into. We reply within 1 business day, and the reply comes from a technical person.

  1. We reply by email within 1 business day.
  2. A 30-minute call with someone technical.
  3. A written scope and a fixed price, if there is a fit.
Book a 30-minute callIncident