How can distributors automate AP invoices on a legacy ERP?
By Yury Primakov ·
You don't need a new ERP or an API. An AI invoice agent reads vendor invoices from your AP inbox, matches each one to the vendor, entity and purchase order, checks the lines and writes the batch into your ERP through the import it already accepts. People only see the invoices it can't match. At a multi-entity distribution company, MadeFire's agent handled 799 invoices in its pilot and sent 131 of them, about 16%, to a person for review.
Why distributors feel AP pain first
A distributor's AP inbox is unusually messy. Hundreds of vendors send invoices in their own layouts: clean PDFs, scanned pages, spreadsheets, statements with several invoices stacked together. Many invoices run to dozens of lines, freight and fuel surcharges show up as separate charges, and credit memos arrive on their own schedule. If the business runs more than one entity or warehouse, someone also has to decide which books each invoice belongs to.
None of that is hard for an experienced AP clerk. It is just slow, and it scales with the number of vendors, not with how well the business is run. That makes it a good first job for an agent, for the reasons in our guide on which processes to automate first.
You don't need to replace the ERP
Older ERPs rarely have a modern API, and that is the usual reason AP automation gets put off until after an ERP upgrade. It doesn't have to be. Almost every ERP already accepts invoices some other way, and an agent can use the same door your team or your EDI vendor uses today. In rough order of preference:
- The ERP's own import file, such as a CSV or fixed-width batch your team already loads for EDI or month-end work
- Staging tables in the ERP database that a scheduled job picks up and validates
- An API or web service, if the ERP has one
- Screen automation that types into the ERP like a person would, only as a last resort, because it breaks when a screen changes
How the agent works, step by step
The agent picks up each invoice where it already arrives, usually a shared AP mailbox. It reads every page, including scans, and pulls out the vendor, invoice number, dates, PO number, lines, freight and totals. It matches the vendor against your vendor master, decides which entity the invoice belongs to, and checks the lines against the purchase order and, where you have them, the receipts. Then it writes the batch in the ERP's own import format, ready for the posting step your team already trusts.
At the distribution company, that is the whole job: invoices read straight from the accounting inbox, classified by entity and vendor, checked line by line and imported in the ERP's own format. In testing on the company's own invoices, the agent matched 1,602 of 1,605 invoice lines. The full write-up is in the AP invoice case study.
What still goes to a person
An invoice agent should never guess. Anything outside your rules goes to one review queue with the reason attached, so the person who opens it knows what to check. Typical reasons:
- A vendor that isn't in the vendor master yet
- No purchase order, or a PO that is already fully billed
- A price or quantity outside the tolerance you set
- A likely duplicate of an invoice already posted
- Lines that don't add up to the invoice total
- A scan too poor to read with confidence
What it saves
In the pilot, 131 of 799 invoices went to manual review and the rest went through without anyone retyping them. We estimate that returns about 49 hours a month to the AP team. That number stays an estimate until it is measured in production over the first 60 days, and we report it that way. Your figure depends on your volume, how many lines each invoice has and how clean your vendor and PO data is, which is why we measure it on your own invoices before quoting. Our guide on measuring an agent's ROI in 90 days shows how.
What it costs
A single AP agent in production is a fixed-price build of $15,000 to $30,000 at MadeFire. Every build starts with a two-week Blueprint, from $3,500 for a single process, that maps the workflow, takes a baseline from your data and builds a working prototype on your own invoices. The Blueprint fee is credited to the build. Keeping the agent running costs from $1,500 a month per system on a Run plan. Full details are on the pricing page, and the wider picture is in back-office automation.
To get the most out of a Blueprint, have three things ready: a few months of real invoices, an export of your vendor master and open POs, and the spec or a sample of the import file your ERP accepts.
Common questions
Do we need to upgrade our ERP before automating AP?
No. The agent writes invoices into the ERP through an import it already accepts, such as a batch file or staging tables, so the ERP stays as it is. If you upgrade later, only the last step changes.
Will the agent post invoices without anyone checking?
Only the ones that pass your rules, and only after you have seen it work. Many teams start with a person approving each batch, then let clean batches through once the results match what the team would have done.
Can it read scanned or badly formatted invoices?
Yes, most of the time. Scans and unusual layouts are read like any other invoice. When a page is too poor to read with confidence, the invoice goes to a person instead of being guessed.
How long until an AP agent is live?
MadeFire aims to have a first automation running in under 30 days. The two-week Blueprint comes first and builds a prototype on your own invoices, so the build starts from something that already works.
Want a second opinion on your own process? Book a free 30-minute review, or start the free intake and see MadeFire pricing.