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 typeWhat to expect
Digital PDF from a large supplierThe easy case. The PDF already contains text, and the layout is consistent from month to month.
Scan or phone photoThe 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.
HandwritingWeaker. 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 invoicesSupported, 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 itemsThe 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 invoicesAzure'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.

#DescriptionQtyUnit priceAmount
1Clamshell container 9 x 9, case of 20012$38.50$462.00
216 oz deli container with lid, case of 2408$41.25$330.00
3Nitrile gloves, large, case of 1,0005$64.00$320.00
4Kraft carry-out bag #8, case of 500 (top of page 2)6$29.75$178.50
5Sanitizer tablets, box of 1502$46.00$92.00
6Fuel surcharge1$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):

FieldValue readConfidenceCheckResult
VendorBayside Paper & Packaging Co.0.97Matches a QuickBooks vendorPass
Invoice numberBPP-204170.96Not entered before for this vendorPass
Invoice date11/03/20260.95Not in the futurePass
Due date(not printed)n/aCalculated by rule: Net 30, December 3, 2026Pass
PO number55210.91Open PO foundPass
Line 2 quantity30.92Lines add up to $1,194.25, total says $1,400.50Review
Total$1,400.500.98
Handwritten note(not captured)n/aSeen 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.

ServiceWhere it's processedWhat's kept, and for how longTraining
Azure Document IntelligenceIn the Azure region where you create the resourceInputs and results stored 24 hours after processing, then deleted; you can delete them sooner through the APINot covered on the service's privacy page; check Microsoft's product terms
Google Document AIIn 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 failsafeGoogle says it never uses customer data to train Document AI models
Amazon TextractIn the AWS region you call; without the opt-out below, content may be stored in another regionAmazon may store inputs to provide and improve the service; you can ask AWS Support to delete themMay 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:

  1. 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.
  2. 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.
  3. Run the same files through the tool, with your confidence threshold and checks switched on.
  4. Compare field by field. Treat "$1,400.50" and "1400.5" as a match; treat a wrong digit as a miss.
  5. 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

OptionWhat it doesPrice
QuickBooks Online ReceiptsForward 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 postsIncluded 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 paymentIncluded with QuickBooks Online Advanced, per Intuit
DextA pre-accounting app that reads receipts and invoices and publishes them to QuickBooks OnlineSubscription by users and document volume; line-item extraction is a paid add-on
Google Document AI, invoice parserHeader fields and line items, confidence per field, through an API$0.10 per document of up to 10 pages
Azure Document Intelligence, prebuilt invoiceHeader 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, AnalyzeExpenseInvoices 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 listUsage-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.

Which invoices are you still typing by hand?

We build tools that pull data out of invoices, forms and PDFs into your systems, flag the low-confidence results and keep a person reviewing before anything is used. We start with one repeatable task, agree data handling and reviewers with you before building, and test with your real examples before adding more. If the books are in QuickBooks, see our QuickBooks integration work too. We work in English and Spanish, on site in Tampa Bay, Miami and across Florida, and remotely across the US. Describe the documents and how a person checks the result today. We can start without sharing private files.

Tell us what you need: opens the form with RAG & applied AI selected