Inbound PDFs (vendor invoices, purchase orders, order confirmations, ship notices) extracted and posted to your ERP.
Comparatio's AI Document Intake reads inbound PDFs (vendor invoices, customer purchase orders, order confirmations, ship notices), extracts the structured data, checks it, and posts it directly to your ERP. Anything that fails a check waits in a review queue instead. In production on Prophet 21; available for CloudSuite Distribution and NetSuite.
- No per-vendor templates
- Handles PDFs from vendors that don't do EDI
- In production on Prophet 21
- Multi-step
- automated detection, validation, and fail-safe handling
- Since Sept 2026
- in production on Prophet 21; available for CloudSuite Distribution and NetSuite
- 100%
- detection rate in production: every PDF that failed a check was held for review
Interactive demo
See what happens behind the scenes
Pick a document type and press Play to watch the automated pipeline run. This is what happens in the background every time a PDF arrives. Your team never sees these steps; they just see the document posted in the ERP.
How it works
Multi-step validation, with a person only where a check fails
Every PDF follows the same production pipeline. Steps 4 and 5 are where AI does the extraction: Anthropic’s Claude reads the document under your own API key and returns structured fields; if the result looks weak, an automatic failsafe retry with a more capable model kicks in.
1 · Intake
PDFs arrive via email attachments, drop folder, FTP, AS2, or HTTP upload, the same channels your EDI traffic already uses.
2 · Queue & pre-check
Each file is added to the import queue. Magic bytes are verified (%PDF- / %%EOF). Non-PDF files (raw images, executables, and other binaries) are rejected before anything reaches the AI.
3 · Batch processing
Files are processed in small batches with idempotency keys, so a network hiccup or retry never creates a duplicate post.
4 · AI extraction
Claude reads the PDF and returns structured XML: vendor, invoice number, PO reference, line items, totals, tax, and freight. No templates needed.
5 · Failsafe retry
If the extraction looks weak (spam classifier triggers, or invoice number and line items are missing), the pipeline automatically retries with a more capable model. Token cost is tracked per document.
6 · Normalize
Dates are standardized, empty line placeholders dropped, and unit-of-measure short forms converted (EACH → EA) before anything touches the ERP.
7 · Vendor lookup
Has a PO number? The pipeline looks up the PO header in the ERP. No PO? It runs a fuzzy name match using a 3-tier CleanVendorName search.
8 · Vendor check
No match in your ERP’s vendor table? The document is flagged and your operations team gets an email. The pipeline never creates a vendor in your ERP.
9 · Validate
Duplicate invoice check, PO line matching, item ID lookup, and arithmetic validation (lines + freight + tax = total), the checks your accounts payable team would otherwise run by hand. A document that fails one goes to the review queue instead of posting.
10 · Classify document
The document type is determined from the content itself (vendor invoice, credit memo, customer purchase order, order confirmation, ASN or order change), or the file is set aside as not a business document, or flagged as spam.
11 · Route by type
Each document type takes its own path into your ERP: vendor invoices that reference a PO post to accounts payable, customer POs (850) become sales orders, and order confirmations (855) update the matching purchase order. Freight and service bills without a PO post as non-PO vouchers in Prophet 21; in CloudSuite Distribution and NetSuite they are flagged for your team to enter. Credit memos are detected and an email is sent to your operations team; there is no automated ERP post for credit memos.
12 · ERP post & notify
Once it passes its checks, the document is posted to your ERP. A formatted HTML email goes to your operations team with the AI description, line items, validation results, and the original PDF attached.
Document types
The inbound PDFs it handles
The AI classifier identifies the document type from the content: you don't configure routing rules per vendor or document format.
Vendor Invoices
Scanned, text-PDF, and email-attached invoices from any supplier, matched against the open PO by its PO number. Bills without a PO are covered below.
Customer Sales Orders (850)
Customer-submitted purchase orders (850) converted to sales orders in the ERP, with delivery instructions and special notes preserved.
Order Confirmations (855)
Order acknowledgements and confirmations (855) update the matching purchase order with confirmed quantities, substitutions, and backorder dates.
ASNs (856)
Advance ship notices (856) extracted from PDF and posted to the ERP so your receiving team knows what is inbound before it arrives.
Credit Memos
Credit memos are recognized and emailed to your operations team to apply. They are not posted to the ERP automatically.
Freight & Service Bills
Freight and service bills without a PO post as non-PO vouchers in Prophet 21. In CloudSuite Distribution and NetSuite, bills without a PO, such as carrier bills, are flagged for your team to enter.
Order Changes (revised POs)
The classifier distinguishes a genuine change order from a new order ("REVISED PURCHASE ORDER", "CHANGE ORDER", "PO REVISION", "AMENDED", "QTY CHANGED", "REPLACES PO"), so a revision updates the existing order instead of creating a duplicate.
Multi-invoice PDFs
Vendors often send a single PDF containing multiple invoices. We detect and split them into separate documents automatically, no manual separation, no missed invoices.
Control and cost
Your team decides what posts, and sees what the AI costs
Nothing doubtful posts on its own, each document type goes live when you are ready, and the AI runs on your own account.
Review queue
A document that fails a check is held in the review queue. One that your ERP’s own import refuses is listed in your daily PDF summary with the reason, ready to fix and resend. Your team can approve a held document, change its type, reject it, or release it with an override.
Live/Test switch per document type
Each document type has its own Live/Test switch, so you can run vendor invoices live while another type is still in test.
Your own Anthropic account
AI usage is billed to your own Anthropic account; we report it monthly.
Daily cap on AI spend
A daily cap on AI extraction spend: if a flood of PDFs reaches it, imports wait until the next day and our team is alerted.
FAQ
PDF Import, in practice
What document types does PDF Import handle?
Vendor invoices, credit memos, order confirmations (855), ASNs (856), customer purchase orders (850), and order changes (revised POs). The classifier also detects multi-invoice PDFs and splits them automatically. An AI classifier identifies the document type and routes each one to the correct ERP path; documents that are ambiguous, unrecognized or fail a check land in a Needs Review queue rather than passing through unchecked. Freight and service bills without a PO post as non-PO vouchers in Prophet 21. Requests for quote are handled over EDI (X12 840), not through PDF Import.
Which ERPs does it post to?
In production on Prophet 21; available for Infor CloudSuite Distribution and NetSuite. Each document type routes to the matching record: a vendor invoice that references a PO posts as an AP voucher in P21, an AP invoice in CloudSuite Distribution or a Vendor Bill in NetSuite, and a customer purchase order becomes a sales order. Freight and service bills without a PO post as non-PO vouchers in Prophet 21; in CloudSuite Distribution and NetSuite, bills without a PO, such as carrier bills, are flagged for your team to enter. Running another Infor ERP? Talk to us about your setup.
Do I need to build a template for each vendor?
No. AI Document Intake uses Anthropic’s Claude, under your own API key, to read the PDF and return structured data (vendor name, invoice number, PO reference, line items, totals, freight, and tax) without any per-vendor template. If the AI extraction looks weak (spam classifier triggers, missing invoice number or line items), the pipeline automatically retries with a more capable model as a failsafe.
What validation happens before the document is posted?
The pipeline runs a duplicate invoice check, an arithmetic check (lines + freight + tax = total), PO line matching against the ERP, and item ID lookup. A document that fails a check is held in the review queue. One that your ERP’s own import refuses is listed in your daily PDF summary with the reason, ready to fix and resend. In the review queue, your team can approve a document, change its type, reject it, or release it with an override. Documents with no vendor match are flagged and an email is sent to your operations team; the pipeline never creates a vendor in your ERP.
What does the 100% detection rate mean?
Since PDF Import went live at its first customer site in September 2026, every PDF that failed a check (a duplicate, totals that don’t add up, a PO or vendor that doesn’t match) was caught and held in the review queue instead of being posted to the ERP. It measures what the checks catch, not whether the AI reads every field perfectly; that is why a doubtful document goes to a person.
Can we try a document type before it posts live?
Yes. Each document type has its own Live/Test switch, so vendor invoices can run live while, say, order confirmations are still in test. Either way, a document that fails a check is held in the review queue. One that your ERP’s own import refuses is listed in your daily PDF summary with the reason, ready to fix and resend.
Who pays for the AI?
AI usage is billed to your own Anthropic account; we report it monthly. What it comes to depends on your documents, so we don’t quote a per-document figure. There is also a daily cap on AI extraction spend: if a flood of PDFs reaches it, imports wait until the next day and our team is alerted.
What if our Anthropic credit runs out?
PDFs wait and are retried automatically for 48 hours, and nothing is written to your ERP while they wait. A PDF that still can’t be read after that is listed in your daily PDF summary, ready to resend.
How do PDFs arrive in the pipeline?
Via email attachments, a watched drop folder (PDFInvoiceDirectory), FTP, AS2, or HTTP upload, the same intake channels your EDI traffic already uses. There is no separate portal or manual upload step required.
Are e-mails without a PDF imported?
Not today. PDF Import reads the PDFs attached to an e-mail; an order typed into the body of an e-mail is entered by hand.
What are Suspended Records? Do we key the order again?
No. Suspended Records are documents that passed our checks but that P21’s own import refused; each one is listed in your daily PDF summary with the reason. Fix the field in P21’s Edit Import Suspended Records and reimport it from there. Keying the order again makes a duplicate.
Is PDF Import part of Comparatio EDI?
Yes. PDF Import is part of Comparatio EDI: the same monitoring, review queue and team.
How does this fit alongside our existing EDI setup?
It fills the gap EDI doesn't cover. EDI handles trading partners who exchange structured electronic transactions: 810 invoices, 850 purchase orders, 856 ship notices. But some vendors, particularly smaller suppliers, carriers, and international partners, send PDFs instead. PDF Import processes those PDFs through the same intake channels your EDI traffic already uses (AS2, FTP, email, drop folder) and posts what passes its checks to your ERP the same way. Your operations team sees a consistent flow of posted transactions regardless of whether the source was an EDI transaction or a vendor PDF.
How is this different from OCR or template-based extraction?
OCR reads text from a document but doesn't understand what that text means. Template-based systems require you to define where each field sits on each vendor's layout, and break when a vendor changes their format. PDF Import uses AI to understand the document semantically, extracting the right fields regardless of layout with no templates to build or maintain. Real examples where this matters: ship-to addresses spanning four or five lines; order lines that break across page boundaries; quantities appearing in non-standard positions; European number formats where a period is the thousands separator and a comma is the decimal point (e.g. 1.234,56); and date formats that vary by country or region. Each of these would require manual correction with OCR; the AI resolves them automatically.
Does it handle scanned or image-based PDFs?
Yes. Image-based PDFs (scanned documents where the pages are rasterized images rather than selectable text) are fully supported. The AI detection step identifies the document type and extracts data regardless of whether the PDF is text-based or image-based. No separate OCR pre-processing step is required; image handling is part of the same AI classification that checks whether a document is a vendor invoice, a purchase order, a ship notice, or something else entirely.
Can it read encrypted PDFs?
PDFs that are encrypted but open without a password are read.
Stop keying PDFs by hand.
Bring a vendor invoice or customer PO and watch the pipeline extract it, check it and post it to your ERP.