Any inbound PDF — vendor invoices, sales orders, RFQs, freight bills, etc. — extracted and posted to your ERP.
Comparatio's AI Document Intake reads any inbound PDF — vendor invoice, sales order, RFQ, freight bill, credit memo, order acknowledgement — extracts the structured data, validates it, and posts it directly to your ERP. In production today.
- No per-vendor templates
- Handles PDFs from vendors that don't do EDI
- Posts to P21, Infor SX.e, NetSuite & more
- Multi-step
- automated detection, validation, and fail-safe handling
- ~8 sec
- average end-to-end processing time per document
- 100%
- accuracy so far in production
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, zero manual touchpoints
Every PDF follows the same production pipeline. Steps 4 and 5 are where AI does the extraction — Claude reads the document 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). Images and 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 · Auto-create vendor
No match in the vendor table? The pipeline can auto-create the vendor record and sends an email to your operations team with a new-vendor banner.
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.
10 · Classify document
The document type is determined from the content itself — vendor invoice, sales order, quote, carrier invoice, credit memo, order acknowledgement, or flagged as spam.
11 · Route by type
Each document type takes its own ERP path: vendor invoice → ReceiveP21VendorInvoice, customer PO → CreateP21SalesOrder, RFQ → CreateP21Quote, freight → ReceiveP21CarrierInvoice, credit memo → CreateP21ReturnAuthorization, order ack → UpdateP21PurchaseOrderAck.
12 · ERP post & notify
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
Every inbound PDF your team receives
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 open POs when a PO number is present.
Customer Sales Orders
Customer-submitted orders converted to sales orders in the ERP, with delivery instructions and special notes preserved.
Email-Attached Invoices
Multi-line invoices embedded in email bodies or attached as PDFs — extracted and posted the same way as any other invoice.
RFQs → Quotes
Requests for quote with no pricing filled in. The pipeline creates a draft quote in the ERP and matches requested items against your inventory.
Freight / Carrier Invoices
Carrier bills with no PO reference. Routed directly to the carrier-invoice path — no 3-way match required.
Credit Memos & Order Acknowledgements
Credit memos are posted as return authorizations. Order acknowledgements update the PO with confirmed quantities, substitutions, and backorder dates.
FAQ
PDF Import, in practice
What document types does PDF Import handle?
Vendor invoices, customer sales orders, email-attached invoices, RFQs (converted to quotes), freight/carrier invoices, credit memos, and order acknowledgements. An AI classifier identifies the document type and routes each one to the correct ERP path — documents that are ambiguous or unrecognized land in a Needs Review queue rather than passing through unchecked.
Which ERPs does it post to?
P21 (Prophet 21), several Infor systems (including Infor SX.e), NetSuite, and others. Each document type routes to the correct API call for that ERP — for example, a vendor invoice on P21 posts via ReceiveP21VendorInvoice, while a customer order creates a sales order via CreateP21SalesOrder.
Do I need to build a template for each vendor?
No. AI Document Intake uses Claude 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. Documents with no vendor match are flagged and an email is sent to your operations team — the pipeline does not silently create phantom vendors.
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.
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 them 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, sales order, carrier invoice, or something else entirely.
Stop keying PDFs by hand.
Bring a vendor invoice or customer PO and watch the pipeline extract and post it to your ERP in under 10 seconds.