Say it's the 28th of the month. The shared AP mailbox has 900 invoices in it, and there are three people to key them. Each one takes a few minutes in the ERP: supplier, invoice number, date, GSTIN, every line against the purchase order, the tax split, the total. Nearly all of that time goes on typing what is already printed on the page, and then checking the typing.
AI invoice processing takes the typing away. AI document extraction reads each invoice into fields and runs the checks a careful clerk would run, before anyone opens it. What it can't do is decide for you which invoices to trust, or which fields are worth holding a payment over. Those decisions are most of the work. They're also why one rollout sticks and another ends as a pilot nobody mentions again.
So this is a project plan rather than a product tour, written for the AP lead who has to make it work. If you want to see what happens inside the system at each stage, our post on intelligent document processing from PDF to ERP follows one invoice all the way through.
What is AI invoice processing?
AI invoice processing uses AI document extraction to read supplier invoices into typed fields, check those fields against arithmetic, your vendor master and your rules, and send only the doubtful ones to a person. The invoice is then matched, approved and posted as usual. The AI replaces the keying and the first round of checking. Approvals and decisions about payment stay with your team.
How it differs from OCR and supplier templates
OCR turns the page into characters and leaves your team to work out which number is the total. Template tools add a map of each supplier's layout, and break when a supplier redesigns its invoice. AI extraction finds a field by the words and structure around it, so a new supplier usually works the first time, and every field comes back with its own confidence score. That score turns out to matter more than anything else in this post, for reasons step 4 gets into. The longer comparison is in agentic document extraction vs IDP vs OCR.
Before you start: measure the process you have
Six months from now someone will ask whether the project worked. You can only answer with a before number, and it's very hard to rebuild one afterwards. A week of counting is enough.
Count your invoices by type
Pull one month's invoice register out of the ERP and split it: PO-backed goods invoices, service invoices with no PO, rent and utilities, credit notes, and anything in a foreign currency. These behave so differently that one blended figure hides most of what you need to know. Our post on touchless invoice processing has a worked example of just how much.
Time twenty invoices from mailbox to posting
Follow twenty invoices through and write down two numbers for each. Elapsed time is the days from arrival to posting. Hands-on time is the minutes people spent working on it. They're different problems. Extraction cuts hands-on time. If most of the elapsed time is an invoice waiting for an approver or a goods receipt, extraction won't move it much, and you want to know that before the business case gets written.
List why invoices get stuck
Ask the team, then go through the AP mailbox to see whether their answers hold up. The usual suspects are a missing PO number, a goods receipt nobody posted, a price that differs from the order, a GSTIN that doesn't match the vendor master, and an approver on leave. Keep the list, because step 2 uses it. If you'd rather work through this with a structure, our finance workflow assessment scores intake, matching, approvals, exceptions, vendor data, GST and posting.
How to automate invoice processing in eight steps
Step 1. Pick the invoices to start with
Start where volume is high and the paperwork is orderly: PO-backed invoices from your largest suppliers. Sort last quarter's invoices by supplier and look at the top of the list. In most registers a fairly small group of suppliers sends a large share of the invoices, and starting with them puts the most volume through the fewest vendor records you'll have to clean up.
Leave a few things out of the first slice: foreign currency invoices, invoices split across many cost centres, and anything that still reaches a branch on paper. Not forever. Just until the first slice runs cleanly.
Why not start with the hardest invoices?
Some teams want to begin with their messiest invoices, on the theory that if the AI copes with those it'll cope with anything. We understand the instinct. But hard invoices are usually hard for reasons that have nothing to do with reading them. There's no PO, or the supplier billed before delivering. Start there and you end up testing your process instead of the extraction, and the pilot fails for reasons no AI can fix.
Step 2. Build a test set from real invoices
Around two hundred invoices is a sensible size for one entity. That's enough to see each important field go wrong a few times, which you need for setting thresholds later, and few enough to check by hand. Take them from the last three months as they arrived, not from a folder someone tidied up for a vendor demo.
What to put in it
- invoices from your top suppliers, roughly in proportion to their volume
- a few scans from each branch, including the worst-looking ones
- multi-page invoices where the line table runs onto a second or third page
- credit notes and a proforma or two, to see whether they get told apart from tax invoices
- invoices with stamps, signatures or handwritten corrections
- GST e-invoices that carry the signed QR code
- one or two examples of each problem on your "why invoices get stuck" list
Type up the answer key before you see any output
For each invoice, type the correct value of every field you care about into a spreadsheet. Yes, by hand. For two hundred invoices that's two or three days of one person's time. It's also the most useful thing in the whole project, because without it every accuracy figure you hear belongs to somebody else.
Do it before you look at anything a tool has extracted. If you build the key by checking the tool's output, you'll agree with the tool more often than you should. Everyone does, and finance people aren't immune.
Step 3. Decide which fields you need, and what "right" means for each
Write the field list down with a definition of right next to each one. It sounds pedantic. It saves an argument later, when the tool returns "INV/26-27/0042", the ERP holds "0042", and someone has to decide whether that counts as an error.
| Field | Used for | Counts as right when |
|---|---|---|
| Supplier GSTIN | Vendor match, input tax credit | All 15 characters are correct and it belongs to the vendor you matched |
| Invoice number | Duplicate check, payment reference | It matches the printed number exactly, before any clean-up |
| Invoice date | Posting period, due date | Day and month are both right, whatever the print format |
| PO number | Matching | The number alone, lifted out of text like "your PO 4500012345 dt 28.10" |
| Taxable value, tax, total | Posting, GST | Right to the paisa, with tax split into CGST and SGST, or IGST |
| Line items | Matching to the PO | Quantity, rate and amount right on every line, in printed order |
| Bank details | Fraud check only | Compared with the vendor master, and never used to pay from |
Header only, or line items too?
For service invoices without a PO (rent, professional fees, an annual maintenance contract) the header and the tax block are usually all you need. PO-backed goods invoices need the lines, because matching happens line by line. Lines are also where most extraction errors turn up, so don't ask for them where nobody will use them.
Fields that aren't printed on the invoice
Cost centre, GL account, project code and your ERP's tax code don't come off the page. They come from the purchase order, from coding rules, or from how the same vendor was coded last time. List them now so they don't ambush anyone in step 6. The mapping stage in our PDF to ERP post shows where each one comes from.
Step 4. Run the extraction and score it field by field
Run the whole test set through the tool you're evaluating and compare every extracted value with your answer key. Score per field, not per invoice. "The invoice was 94% right" doesn't tell you whether the other 6% was the supplier's phone number or the total.
Compare the errors with the confidence scores
Most evaluations skip this part, which is a pity, because it tells you more than the error count does. Every field comes back with a confidence score. You want to know how often the tool is wrong, and also whether it knows when it's wrong. Sort every field by two questions, right or wrong and high score or low, and you get four groups.
Confidently wrong is the number that matters
A wrong value with a low score goes to a reviewer and gets fixed. A right value with a low score costs a reviewer a few seconds. A wrong value with a high score posts with nobody looking at it. That group is the one to count, field by field, because it's the only one that ends up in your ledger.
| Field | Values checked | Wrong | Wrong and flagged | Confidently wrong |
|---|---|---|---|---|
| Invoice number | 200 | 3 | 3 | 0 |
| Invoice date | 200 | 6 | 4 | 2 |
| Supplier GSTIN | 200 | 2 | 2 | 0 |
| Invoice total | 200 | 1 | 1 | 0 |
| Line quantity | 2,480 | 37 | 26 | 11 |
What to do about confidently wrong values
In this example, both confidently wrong dates come from one supplier who prints the month first. That's a rule for one supplier and five minutes' work. The eleven line quantities are a different case. They scored high, so no threshold will catch them. A check will: recompute quantity times rate against the line amount, and all eleven fail the arithmetic. Thresholds deal with the errors the tool is unsure about, and checks deal with the ones it's sure about. You need both.
Step 5. Set review thresholds and hard stops
One threshold per field, not one per document
A doubtful read of the supplier's phone number can post. A doubtful total can't. Set the bar high on totals, tax amounts, GSTINs, invoice numbers and bank details, and lower on descriptions and remarks. The scoring sheet from step 4 tells you where: for each field, look at the scores the wrong values got and set the threshold above most of them. Then look at what that does to the review queue. If it sends half your invoices to a person, you've learnt something about the tool, or about your documents.
Checks that hold an invoice whatever the score says
- the lines don't add up to the subtotal, or the tax isn't rate times taxable value
- the supplier GSTIN isn't in your vendor master, or belongs to a different vendor
- the bank account printed on the invoice differs from the one in the master
- the same supplier and invoice number have been seen before, counting INV-0042 and INV42 as the same number
- the invoice date falls in a closed period, or in the future
- on an e-invoice, the signed QR code disagrees with the printed values
No confidence score should get an invoice past any of these. Be strictest about the bank account. A genuine invoice with one changed account number is a classic payment fraud, and it reads perfectly. We covered the permissions and controls around it in AI agent security.
Name who reviews, and how fast
Give the review queue an owner and a target for how long items wait in it. A queue nobody owns turns into the backlog you were trying to get rid of. Our guide to human-in-the-loop AI goes further into thresholds and who should review what.
Step 6. Connect intake and the route into your ERP
Intake: one mailbox, with rules
If AP doesn't have its own mailbox, set one up and ask your top suppliers to send invoices there. Nobody else has to change anything on day one. Statements of account, payment reminders and the odd sales pitch will land in it too, and the system has to set those aside rather than treat every attachment as an invoice. Branches that scan paper can drop files into a watched folder.
Output: approvals, then posting
Extraction doesn't change who approves what. Your approval bands stay as they are, and the extracted record goes into the same approval flow, only faster and with fewer blanks. For posting there are four routes into an ERP: its own import, its API, a scheduled import file, or custom orchestration across several systems. We compared them in how the record gets into your ERP. Ask IT to name the route for your ERP version in week one. It's the item most likely to slip, because it depends on people outside AP.
Step 7. Run in parallel through at least one month-end
For two to four weeks, process the same invoices both ways. The team keys as usual, the AI output is compared with what they posted, and nothing posts from the AI yet. Make sure the window takes in a month-end. That's when volume peaks, people rush, and the strange documents turn up.
Give every difference a reason: an extraction error, a missing rule, a master data problem, or a keying mistake by a person. The last one comes up more often than most teams expect. That's no reason to gloat, but it's a useful number to have when someone asks whether the machine is good enough.
Agree the exit criteria before the parallel run starts
Write down what has to be true to go live, and have the finance controller sign it. For example: no confidently wrong values on totals, tax or GSTIN across the whole run, every hard stop firing when it should, and a review queue one person can clear in a day. If you set the bar after seeing the results, it drifts to wherever the results landed.
Step 8. Go live one supplier group at a time
Switch your top suppliers over first, and add the next group once the first has run cleanly for a couple of weeks. Keep a person sampling. Each week, pick a handful of auto-posted invoices at random and check them against the PDF. It costs very little, and it's the only way to find confidently wrong values that the checks missed.
Read the correction log every week
Every reviewer correction should be logged against the field and the supplier. For the first two months, read that log weekly. Most of what it shows is duller than you'd expect, like one supplier's date format or a vendor with two records in the master. Each of those fixes takes a little work off the queue for good.
Then add invoices without a PO
Invoices without a PO need coding rules ("this vendor, with this description, goes to this GL account and cost centre") and, where the rules run out, suggestions based on how the vendor was coded before. Let the system suggest and a person accept until the suggestions have earned some trust. PO-backed invoices, meanwhile, can move on to fuller matching against goods receipts and contracts, which we wrote about in rethinking invoice matching beyond three-way.
What a realistic rollout looks like
Here's how the eight steps might fall for one entity, starting with PO-backed invoices. Treat it as an example, not a quote. More entities, more ERPs or more document types all add time.
| When | What happens | Who's involved |
|---|---|---|
| Weeks 1 to 2 | Baseline counts, first slice chosen, test set and answer key built | AP lead, one AP clerk |
| Weeks 2 to 3 | Test run, field scoring, thresholds and hard stops agreed | AP lead, vendor |
| Weeks 3 to 4 | Mailbox, review queue, approvals and ERP route set up | IT, vendor |
| Weeks 4 to 7 | Parallel run, including a month-end | AP team |
| Week 8 onwards | Live for the first supplier group, then wider | AP lead, reviewers |
The weeks teams most want to cut are the test run and the parallel run. They're also the weeks that tell you whether to trust the system with real money, so we'd look for time somewhere else.
Can you build this on a general-purpose AI model?
Someone in the room will ask, and it's a fair question. Paste an invoice into a general chatbot and it will usually pull out the supplier, number, date and total, and the answer will look convincing. For a one-off check on an odd invoice, that's fine. As the base of an AP process, it's missing most of what this post has been about.
There's no score to set a threshold on
A chatbot gives you an answer, not a calibrated confidence score for each field. Without one you can't do step 5. You either check every field on every invoice, which is the manual process with extra steps, or you trust every field, which is worse.
Gaps can get filled with plausible values
When a value is smudged, cut off or missing, a language model can produce something that looks right instead of leaving the field empty. A plausible GSTIN that isn't the supplier's is worse than a blank, because a blank gets noticed.
Everything around the model is still yours to build
That means the arithmetic checks, the vendor master lookup, duplicate detection, a review screen, the correction log, the route into the ERP, and a clear answer on where your suppliers' bank details and GSTINs are being sent. Teams with strong engineering do sometimes build all of it. If you go that way, budget for it as the project it is. The model ends up being the smallest part.
How PTAS AI handles invoice processing
The DocPro Invoice Agent does the reading. It finds fields by context, so a new supplier works on its first invoice. It keeps a line table together when it runs across pages, tells credit notes and proformas apart from tax invoices, and returns the GST detail (both GSTINs, place of supply, HSN or SAC on each line, and the CGST, SGST and IGST split) as separate values. Every field carries its own confidence score, and you set the threshold per field type. Before anyone sees the record, the agent recomputes the lines and the tax, checks the GSTIN format and looks for duplicates. Invoices come in through the API, a watched mailbox or upload, and the record goes back as JSON by webhook, with a marker on every field a reviewer corrected.
From there, FinSuite AP automation does the finance work: PO and goods receipt matching, approval bands, and posting into your ERP. We don't claim a packaged connector for any ERP. The route for each of your systems is named during assessment, once we've seen the version you run. A DocPro rollout typically takes 4 to 12 weeks, depending on the document types, integrations and deployment in scope. It can run in the cloud region you choose, or on-premise and air-gapped where supported. Our invoice automation page shows the workflow end to end.
If you'd like to see the reading on one of your own invoices first, the DocPro document test takes a JPG or PNG of an invoice and shows the fields it read beside the page, with no account needed. It doesn't show confidence scores or run the checks. Those come with a pilot on your own test set.
Frequently asked questions
What is AI invoice processing?
AI invoice processing uses AI document extraction to read supplier invoices into typed fields, check those fields against arithmetic, your vendor master and your rules, and send only the doubtful ones to a person. The invoice is then matched, approved and posted as usual. The AI replaces the keying and the first round of checking. Approvals and decisions about payment stay with your team.
How long does it take to automate invoice processing?
For one entity starting with PO-backed invoices, plan on about two months from the first count of your invoices to the first supplier group going live. Most of that time goes on the test run and a parallel run through a month-end. Each extra entity, ERP or document type adds time.
How accurate is AI invoice extraction?
Measure it yourself, field by field, on a test set of your own invoices, against an answer key you typed up before seeing any output. Headline accuracy figures come from someone else's documents. Also count the wrong values that came back with a high confidence score, because those are the ones that would post without anyone noticing.
Do suppliers need to change how they send invoices?
No. Most teams set up a dedicated AP mailbox, ask their largest suppliers to use it, and keep accepting invoices the way they arrive today. Cleaner scans help, and GST e-invoices with a signed QR code give the system a second source for the main fields, but neither is required.
Which invoices should we automate first?
PO-backed invoices from your largest suppliers. They carry the most volume, the purchase order supplies most of the coding, and there are only a few vendor records to clean up. Leave invoices without a PO, foreign currency invoices and invoices split across many cost centres until the first group runs cleanly.
Can we use ChatGPT or another general AI model to extract invoice data?
For checking a single invoice, yes. For an AP process, a general chatbot lacks the parts that make extracted data safe to post: a confidence score on each field, arithmetic and vendor master checks, duplicate detection, a review queue, a correction log and a route into your ERP. You can build those around a model, but that is most of the project.