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.
- IntakeShared mailbox, scanner folder, phone photo or portal upload
- Classify and extractDocument type, then fields with a confidence score and a page location
- Check and matchArithmetic and duplicate rules, then your ERP, TMS or project records
- Review queueA person confirms the fields that failed a check
- 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.
| Your situation | Better route | Why |
|---|---|---|
| A few large suppliers or customers send most of the volume | Ask them for EDI or a data file | Structured 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 module | Buy the module | It already connects to your vendor master and approval workflow. |
| Several document types, job cost coding, or matching rules a packaged product cannot express | A built pipeline, which is this service | The fields, rules and destinations are written for your documents and systems. |
| A document type that takes a few hours a month to key | Keep it manual | 200 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 dispute | Keep a person on each one | Extraction 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
| Document | Fields read | Checked against | Result |
|---|---|---|---|
| Supplier invoice and credit note | Vendor, invoice number, date, PO number, subtotal, tax, total, line items | Vendor master, open PO or subcontract, receipt, earlier invoices | Unposted entry coded to a GL account or to a job and cost code |
| Purchase order from a customer | Customer, PO number, ship-to, lines, quantities, prices, required date | Customer master, item master, price list | Draft sales order for a person to release |
| Bill of lading | Shipper, consignee, BOL and PRO numbers, pieces, weight, freight class | The load or shipment in the TMS | Load updated and the image attached |
| Proof of delivery | Delivery date and time, receiver name, whether a signature is present, shortage or damage notes | The load and its bill of lading | Load set to delivered, exceptions flagged, invoice released for billing |
| Submittal | Project, specification section, subcontractor, revision, submittal type | The submittal register in the project system | Register entry with the file attached, routed to the reviewer |
| Contract or subcontract | Parties, dates, value, payment terms, holdback, insurance requirements, notice periods, each with its clause number | Your contract checklist and the commitment in the ERP | Summary sheet with renewal and notice dates. No legal opinion. |
| Certificate of insurance | Insured name, insurer, policy numbers, coverage types and limits, effective and expiry dates | The vendor record and the limits your contract requires | Vendor 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.
| Check | What triggers it | What happens |
|---|---|---|
| Field confidence | A required field scores below its threshold | Review, with that field flagged |
| Arithmetic | Lines plus tax differ from the total by more than your tolerance | Review, with both figures shown |
| Duplicate | Same vendor, invoice number and amount as an earlier document, or an identical file | Blocked, and shown beside the earlier document |
| Match | No open purchase order, quantity above the receipt, or price outside tolerance | Review, with the difference shown |
| Vendor details | Vendor missing from the master, or bank or remit-to details that differ from it | Always review. The pipeline never updates banking details. |
| Value limit | Total above the amount you set | Always review |
| Classification | Document type unclear, or pages missing from a batch | Review 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.
- 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
- 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
- 06:13PipelineInvoice 77140: same vendor, number and amount as a document posted on February 26. Blocked as a duplicate.Blocked
- 06:14PipelineInvoice 2093: remit-to bank details differ from the vendor master. Sent to review. Vendor master unchanged.Needs review
- 08:40AP reviewerInvoice 5521: total corrected to 18,480.00 from the page image. Approved.Note
- 08:44AP reviewerInvoice 2093: held. Callback to the vendor's number on file requested.Note
- 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.
| Field | Accuracy before review | Accepted without review | Errors in sample |
|---|---|---|---|
| Vendor | 99.2% | 97% | 0 of 41 |
| Invoice number | 98.6% | 93% | 0 of 41 |
| PO or subcontract number | 94.1% | 81% | 1 of 41 |
| Total | 99.4% | 96% | 0 of 41 |
| Tax | 97.8% | 90% | 0 of 41 |
| Job and cost code (proposed) | 88.3% | With a matched PO only | 0 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
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
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
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
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
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
Widen authority
Fields that hold above target move to acceptance without review. You approve each widening in writing.
Reviewed monthly
| Week | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| 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.
| Factor | Lower fee | Higher fee |
|---|---|---|
| Document types | 1 | Several, mixed in the same inbox |
| Layout variety | 20 senders account for most of the volume | Hundreds of senders with 1 document each |
| Fields | Header fields only | Line items and tables that run across pages |
| Matching | 2-way match to a clean purchase order list | 3-way match with partial receipts, job cost coding and holdback |
| Posting | A system with a documented API | Import files, or an on-premises system reached through a gateway |
| Source quality | Digital PDFs | Phone photos, faxes, stamps and handwriting |
| Languages | 1 | English, French and others in the same flow |
| Residency | Any region | A Canadian region only, or a private deployment |
What we need from your team before the build
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
| Tool | Suits | Limits to know |
|---|---|---|
| SharePoint autofill columns | Indexing files in a library: a document type, a date or a party name saved to a column | No 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 Automate | Invoice header and line fields with confidence scores, inside a flow | A fixed field list unless a custom model is trained. |
| Azure Document Intelligence | Prebuilt models for invoices, receipts and contracts, custom models for your layouts, and a custom classifier that identifies the document type first | Custom models need labelled samples of each layout. |
| Azure Content Understanding, or a language model that reads page images, such as Claude | Varied layouts and long contracts, with fields defined by a schema | Results vary more between runs than a trained model's, so the test set matters more. |
| Amazon Textract or Google Document AI | Companies whose systems already run on AWS or Google Cloud | As 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.
| When this happens | The pipeline | Your team |
|---|---|---|
| The reading service is unavailable | Holds documents in the intake folder, retries, and alerts after the period you set | Works urgent items by hand from the same folder |
| A supplier changes its invoice layout | Scores drop and those invoices go to review | Reviews as normal while we add the layout to the test set |
| A model version is updated or retired | Stays 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 posted | Shows the file, the values, the check results and the posting reference in the log | Reverses the entry through the ERP's normal process |
| Usage approaches the monthly cost cap | Alerts before the cap. At the cap it stops reading and holds documents. | Decides whether to raise the cap |
| You want it off | 1 setting stops processing and routes mail and scans to the manual folder | Carries 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
- Microsoft Learn: Azure Document Intelligence in Foundry Tools overview
- Microsoft Learn: accuracy and confidence scores in Document Intelligence
- Microsoft Learn: Azure Content Understanding in Foundry Tools overview
- Microsoft Learn: AI Builder invoice processing prebuilt model
- Microsoft Learn: overview of autofill columns in SharePoint
- AWS: What is Amazon Textract
- Google Cloud: Document AI overview
- X12: transaction sets
- Canada Revenue Agency: where to keep your records and for how long
- Anthropic: is my data used for model training
Last reviewed December 2026. Written and reviewed by Muon Solutions staff.