Pull data out of PDF invoices with AI, and keep a human check
Updated
Short answer: Invoice extraction services from Microsoft, Google and Amazon read the vendor, invoice number, dates, totals and line items from a PDF or photo, and return each field with a confidence score. Send low-confidence or inconsistent invoices to a person, post the rest to QuickBooks, a spreadsheet or your ERP, and test on your own past invoices before you let anything skip review.
This guide is for the owner, office manager or bookkeeper who types vendor invoices into the books by hand. Search for this topic and you'll find code tutorials. The questions here are the business ones: what the AI gets wrong, who checks it, where the files go and how to know it's working.
What AI reads well and what it gets wrong
Invoice models are trained to find the usual fields on a bill. Microsoft's invoice model, for example, pulls customer and vendor details, invoice ID, dates, totals and line items, and works on phone photos, scans and digital PDFs. How well it does depends on the document in front of it.
| Invoice type | What to expect |
|---|---|
| Digital PDF from a large supplier | The easy case. The PDF already contains text, and the layout is consistent from month to month. |
| Scan or phone photo | The service has to recognize the text first. Microsoft asks for one clear photo or good scan per document, and sets a minimum text size (about 8-point type at 150 dpi). Crooked, dark or faxed copies come back with lower confidence. |
| Handwriting | Weaker. Google lists handwriting support for the languages its invoice parser covers; Amazon Textract reads handwriting in English only. Notes in the margin, like "short 1 case", often aren't captured in any field. |
| Multi-page invoices | Supported, with limits. Azure handles PDFs up to 2,000 pages. Google's invoice parser takes short documents one at a time and longer ones in batches of up to 200 pages. A line item split across a page break is where mistakes cluster. |
| Line items | The hardest part. Header fields like the total are one value each. A table of 30 lines, with wrapped descriptions and missing column headers, gives the model 150 chances to slip. |
| Spanish-language invoices | Azure's invoice model lists Spanish with Spain as the region; Google's parser lists Spanish too. Test your Latin American suppliers, whose date and number formats differ. |
One more trap: the PDF that looks like text but is really a picture. A simple text-extraction step, such as n8n's Extract From File node, works on digital PDFs. On a scan there may be no text to pull, so the result comes back empty. Our AI document processing work tests scanned documents early for this reason.
Confidence scores and the human check
Microsoft and Google both return a confidence score with each extracted field, a number between 0 and 1. Microsoft explains it this way: 0.95 means the value is likely right 19 times out of 20. Its documentation suggests using the score to decide whether to accept a value automatically or flag it for human review.
That gives you the basic rule. Pick a threshold, say 0.90 for amounts and invoice numbers, and send anything below it to a person.
Confidence alone misses things, because the model can be confidently wrong. Add plain business checks that don't depend on the AI at all:
- The lines add up. Quantity times unit price for each line, the sum of the lines, plus tax and freight, should equal the printed total.
- The vendor exists. The vendor name matches one in your accounting system, or the invoice goes to review.
- It isn't a duplicate. The same invoice number from the same vendor hasn't been entered before.
- The PO matches. If you use purchase orders, the PO number exists and the amounts are within your tolerance.
- The dates make sense. An invoice dated next year, or a due date before the invoice date, goes to review.
The review step should show the original PDF next to the extracted fields, with the doubtful ones highlighted, so the reviewer corrects a field in seconds instead of re-reading the whole invoice. Name who reviews, and who covers when they're out. Our service page says it plainly: AI output can be wrong or incomplete, so review stays part of the process.
Where the data goes
Extraction is half the job. The other half is getting the fields into the system you keep the books in.
- QuickBooks Online. An automation can create a bill with the vendor, dates and lines. n8n's QuickBooks node can create bills, but it has no operation for attachments, so attaching the PDF to the bill takes a direct call to the QuickBooks API with the same connection. Our guide to connecting QuickBooks Online to n8n covers the connection, duplicate checks and API limits.
- A spreadsheet. Google Sheets or Excel, one row per line item, with the invoice number on every row. Good for job costing or for a first test before you touch the books.
- An ERP or industry system. Most accept an import file or have an API. Ask your vendor which fields are required and whether it can store the original file.
Wherever it lands, keep the original PDF attached to the record. Your accountant will want to see the source document.
Worked example: one invented vendor invoice
An illustrative company, not a client: a 20-person caterer in Tampa Bay that buys packaging and supplies from about 40 vendors, around 300 invoices a month. The bookkeeper types them all into QuickBooks Online. The vendor, invoice and numbers below are invented.
The invoice: Bayside Paper & Packaging Co. (fictional), invoice BPP-20417, dated November 3, 2026, terms Net 30, PO 5521. It arrived as a two-page scan. Someone in the kitchen wrote "only 11 cs clamshells rec'd" in pen on page 1.
| # | Description | Qty | Unit price | Amount |
|---|---|---|---|---|
| 1 | Clamshell container 9 x 9, case of 200 | 12 | $38.50 | $462.00 |
| 2 | 16 oz deli container with lid, case of 240 | 8 | $41.25 | $330.00 |
| 3 | Nitrile gloves, large, case of 1,000 | 5 | $64.00 | $320.00 |
| 4 | Kraft carry-out bag #8, case of 500 (top of page 2) | 6 | $29.75 | $178.50 |
| 5 | Sanitizer tablets, box of 150 | 2 | $46.00 | $92.00 |
| 6 | Fuel surcharge | 1 | $18.00 | $18.00 |
| Total due (no sales tax printed) | $1,400.50 |
The flow: invoices arrive at an accounts-payable inbox, an n8n workflow sends each PDF to an invoice extraction service, runs the checks above and either queues the invoice for a quick approval or flags it for a full review. What came back (the confidence numbers are illustrative):
| Field | Value read | Confidence | Check | Result |
|---|---|---|---|---|
| Vendor | Bayside Paper & Packaging Co. | 0.97 | Matches a QuickBooks vendor | Pass |
| Invoice number | BPP-20417 | 0.96 | Not entered before for this vendor | Pass |
| Invoice date | 11/03/2026 | 0.95 | Not in the future | Pass |
| Due date | (not printed) | n/a | Calculated by rule: Net 30, December 3, 2026 | Pass |
| PO number | 5521 | 0.91 | Open PO found | Pass |
| Line 2 quantity | 3 | 0.92 | Lines add up to $1,194.25, total says $1,400.50 | Review |
| Total | $1,400.50 | 0.98 | ||
| Handwritten note | (not captured) | n/a | Seen by the reviewer |
The smudged 8 on line 2 was read as a 3, with a confidence of 0.92, above the threshold. Confidence alone would have let it through. The math check caught it: 3 x $41.25 is $123.75, the lines came to $206.25 less than the printed total, and the invoice went to review.
The bookkeeper opened the review screen, saw the scan next to the fields, corrected the quantity to 8 and noticed the handwritten note. She approved the bill at $1,400.50 and asked Bayside for a credit of $38.50 for the missing case. The workflow created the bill in QuickBooks with six lines and the PDF attached, and logged who approved it.
Two lessons from one invoice. Rule checks catch errors that confidence scores miss. And a person still reads things no field was built for, like a note about a short delivery.
Privacy: where the files go and how long they stay
Vendor invoices carry bank details, account numbers, prices you negotiated and sometimes customer addresses. Before you send real ones to any service, know three things: where they're processed, how long they're kept and whether they train anyone's model.
| Service | Where it's processed | What's kept, and for how long | Training |
|---|---|---|---|
| Azure Document Intelligence | In the Azure region where you create the resource | Inputs and results stored 24 hours after processing, then deleted; you can delete them sooner through the API | Not covered on the service's privacy page; check Microsoft's product terms |
| Google Document AI | In the location you choose for the processor (options include us and eu) | Online requests are processed in memory and not written to disk; batch files are deleted after processing, with a one-day failsafe | Google says it never uses customer data to train Document AI models |
| Amazon Textract | In the AWS region you call; without the opt-out below, content may be stored in another region | Amazon may store inputs to provide and improve the service; you can ask AWS Support to delete them | May be used to improve AWS AI unless you set an AI services opt-out policy |
Your own tools keep copies too. n8n saves the data from each run so you can inspect it. On a self-hosted n8n, old runs are pruned after 14 days by default, and you can shorten that or stop saving successful runs. Shared mailboxes, spreadsheets and review queues hold the same data, so decide who can see them and how long they keep it.
These are general notes, not legal advice. If your invoices include health, payment card or other regulated data, talk to a lawyer about what applies. On our projects, providers, data settings and retention are agreed with you before we build, and we choose options that keep your data out of model training.
Test accuracy before you trust it
Vendors quote accuracy figures measured on their test sets. Yours will differ. Here's a test a small business can run in a week:
- Pick 50 to 100 past invoices. Cover your top vendors, plus the awkward ones: scans, phone photos, multi-page invoices, Spanish-language suppliers and anything handwritten.
- Write down the right answers. A person keys the fields you care about into a spreadsheet: vendor, invoice number, date, total, and the lines for at least 20 invoices. That sheet is your answer key.
- Run the same files through the tool, with your confidence threshold and checks switched on.
- Compare field by field. Treat "$1,400.50" and "1400.5" as a match; treat a wrong digit as a miss.
- Count four numbers. Fields right; invoices fully right; errors caught (low confidence or a failed check); errors that slipped through with high confidence and passing checks.
The fourth number is the one that matters. Our rule of thumb: until the test shows zero slipped errors on vendor, invoice number and total, every invoice gets a human look. When it's clean, let the passing invoices go straight to a quick approval, and keep spot-checking a sample each week. Rerun the test when a big vendor changes its invoice layout.
This is also how we work: we test with your real examples and refine before adding more tasks. We can start without sharing private files.
Build or buy: QuickBooks, Dext, cloud services or a custom flow
| Option | What it does | Price |
|---|---|---|
| QuickBooks Online Receipts | Forward or upload bills and receipts (PDF, JPG, PNG, GIF). QuickBooks pulls the date, amount, vendor and last four card digits; you review and match before anything posts | Included in QuickBooks Online subscriptions; check your plan |
| QuickBooks AI Bill Entry (Bill Pay Elite) | Intuit says it captures line-item detail, not just the header, and a person reviews and approves before payment | Included with QuickBooks Online Advanced, per Intuit |
| Dext | A pre-accounting app that reads receipts and invoices and publishes them to QuickBooks Online | Subscription by users and document volume; line-item extraction is a paid add-on |
| Google Document AI, invoice parser | Header fields and line items, confidence per field, through an API | $0.10 per document of up to 10 pages |
| Azure Document Intelligence, prebuilt invoice | Header fields and line items, confidence per field, 27 languages | $10 per 1,000 pages pay-as-you-go; free tier of 500 pages a month that reads only the first two pages of each file |
| Amazon Textract, AnalyzeExpense | Invoices and receipts, including line items without column headers | $0.01 per page (US West, Oregon example); 100 free pages a month for three months for new AWS customers |
| A general AI model (Claude, Gemini, GPT and others) | Reads the PDF and returns whatever fields you list, including odd ones like a job number in the notes. In n8n, an Extract From File node can feed an Information Extractor node with your field list | Usage-based; check the provider's price page and data terms |
For scale: 300 invoices a month at two pages each is 600 pages. At those list prices that's about $6 a month on Azure, $30 on Google and $6 on Textract. The service fee is the smallest line in the budget. Setup, upkeep and review time cost more.
Start with what you have. If your books are in QuickBooks Online and most bills are simple, try Receipts forwarding, and AI Bill Entry if you're on Advanced. If it does what you need, you're done.
A custom flow pays off when your checks are specific to your business (POs, job codes, the line math), when the data goes somewhere besides QuickBooks, when you want one review queue for every vendor, or when you need control over where the files are processed. That's the work our AI document processing service does: fields pulled from invoices into your systems, low-confidence results flagged, a review step before anything is used, connected through n8n. Model and hosting costs are billed by their providers.
QuickBooks, Intuit and Bill Pay are trademarks of Intuit Inc. Microsoft, Azure, Google, Amazon, AWS, Textract, Dext, n8n, Claude, Gemini and GPT are trademarks of their respective owners. They're mentioned here as product names only.
Common questions
Can AI read scanned or photographed invoices?
Yes, once text recognition (OCR) has turned the image into text. The invoice services from Microsoft, Google and Amazon do that step themselves. Quality matters: a crooked phone photo or a faint fax copy produces more low-confidence fields, so test your worst scans early.
How accurate is AI invoice extraction?
It depends on your invoices: clean PDFs from large suppliers usually come through better than scans, handwriting and long line-item tables. The only number worth trusting is the one you measure on 50 to 100 of your own past invoices, with a person checking the answers.
Will the AI provider keep or train on our invoices?
It depends on the provider and the settings. Microsoft deletes Document Intelligence inputs and results 24 hours after processing. Google says it never uses customer data to train Document AI models. Amazon may use Textract inputs to improve its services unless you set an AI services opt-out policy. Choose and configure this before sending real invoices.
Does QuickBooks already do this?
Partly. QuickBooks Online can pull the date, amount, vendor and card digits from receipts and bills you forward or upload, and you review them before they post. Intuit says its AI Bill Entry, part of Bill Pay Elite and included with QuickBooks Online Advanced, also captures line items. Try it before you build anything.
What does it cost per invoice?
For the cloud services, a few cents or less per invoice at list prices: Azure charges per 1,000 pages, Google per document of up to 10 pages, Amazon per page. The bigger costs are setting up the flow and the time a person spends reviewing.
Can it read invoices in Spanish?
Azure's invoice model lists Spanish (with Spain as the region) and Google's invoice parser lists Spanish too. Include invoices from your Latin American and Florida suppliers in the accuracy test, because date formats, tax labels and number formats vary.
