Operations, project execution, and service delivery
Contractor AP Invoice Processing
When a subcontractor or vendor invoice arrives by email, an agent extracts the header and line items, classifies each line to the right GL account and job site, routes it through approval, and stamps the approved job and cost codes and the approver onto the invoice itself, with an export for the books. Duplicates are flagged, and invoices that vendors staple together into one PDF are split apart instead of being keyed as one or lost. Manual invoice entry and hand-coded printouts go away. Runs in production on the RevenueAI platform.
Company
Regional general contractor
Trigger
Subcontractor or vendor invoice arrives via email or upload
Want this at your company? See it running and find out whether it fits, in 20 minutes.
Book a callHow it works
Trigger
Subcontractor or vendor invoice arrives via email or upload
Inputs
- PDF / image invoices from vendors and subcontractors
- Chart of accounts and active job sites
- Approval workflow configuration
Outputs
- Extracted invoice headers and line items
- GL account and job-site classifications
- Approved invoices with job and cost codes stamped on the PDF
- Excel export for the accounting system
- Duplicate and multi-invoice-bundle flags
Under the hood
- Email-native intake: invoices forwarded to the platform hit an inbound-email webhook, and the same extraction path serves direct uploads — one pipeline, two entry points
- Extraction is schema-forced — a structured header plus a flat line-items array — from which PO / cost-code mappings and an Excel export for the contractor's books are produced
- Handles the real-world case where vendors staple several invoices into one PDF: a fast model pass reads the raw PDF and returns per-invoice boundaries from reasoning alone (no templates, no regex), then a reconcile step snaps them into a gap-free partition and pdf-lib slices each into its own re-extracted invoice
- Boundary detection fails safe — it falls back to single-invoice extraction so it's never worse than the baseline, with an idempotency guard against re-splitting
- Validated on real customer data: a 21-page vendor bundle previously captured as a single $15,208 invoice was split into 12 invoices totaling ~$35,777 — recovering ~$20.6k of dropped AP — in 28 seconds
- Rotated and landscape scans are auto-oriented before extraction, so a phone photo of an invoice reads like a clean PDF
Running at
Regional general contractor
General contractor — production AP automation running on the RevenueAI (revenueai.app) platform
A backfill scan of 400 recent files found 14 stapled-together bundles hiding about 54 invoices that had been dropped; one 21-page bundle alone recovered about $20.6K of missed payables in 28 seconds.