Templates / Process emailed PDF invoices into QuickBooks bills with OpenAI

Process emailed PDF invoices into QuickBooks bills with OpenAI

Ready for 3.0

by Codez & AI ✓ · 555 views · created 2026-03-16 · Invoice Processing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 22 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model and QuickBooks Online.

How it runs

Trigger: On Gmail events.

  1. Config (Edit Fields (Set)): sets 4 fields: realmId, apTeamEmail, sendConfirmation…
  2. Extract Text from PDF (Extract from File): extracts data from a file (pdf)
  3. AI Extract Invoice Data (Information Extractor): extracts structured fields from text with AI, with model: OpenAI Chat Model
  4. Is Invoice? (If): checks a condition and branches into true / false
  5. Validate Extracted Data (Code): runs custom JavaScript code
  6. Is Valid? (If): checks a condition and branches into true / false
  7. Search vendor (QuickBooks Online): get many (vendor)
  8. Error: Extraction Failed (Gmail): uses Gmail
  9. Vendor Found? (If): checks a condition and branches into true / false
  10. Prepare Bill Data (Code): runs custom JavaScript code

…plus 10 more steps. See the full node list below.

Services it uses

GmailOpenAI Chat ModelQuickBooks Online

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).

Nodes used (11)

From the author

AI Invoice Processor for QuickBooks - Email to Bill with PDF Attachment Automatically processes vendor invoices received by email, creates QuickBooks bills with full details, and attaches the original PDF. Who is this for? - Small/medium businesses using…

Excerpt from Codez & AI's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.