Templates / Process AP invoices from Gmail and Drive with Gemini, Sheets and QuickBooks

Process AP invoices from Gmail and Drive with Gemini, Sheets and QuickBooks

Ready for 3.0

by Intuz ✓ · 16 views · created 2026-08-14 · 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 19 nodes and runs on Google Drive events (file created) (plus 1 other trigger). Along the way it connects Gmail, Google Drive, Google Gemini and Google Sheets and 1 more. It also calls sandbox-quickbooks.api.intuit.com over HTTP.

How it runs

Trigger: On Google Drive events (file created) (plus 1 other trigger).

  1. Extract Drive File Metadata (Code): runs custom JavaScript code
  2. Parse Gmail Attachment (Code): runs custom JavaScript code
  3. Download Invoice from Drive (Google Drive): download
  4. Route by File Format (Switch): routes items into 2 branches
  5. Verify PDF Text Presence (Extract from File): extracts data from a file (pdf)
  6. Parse Invoice Image Fields (Google Gemini): analyze (image)
  7. Check PDF Text (If): checks a condition and branches into true / false
  8. Refine Image Fields Data (Code): runs custom JavaScript code
  9. Analyze PDF Text and Regex (Code): runs custom JavaScript code
  10. Check AI Confidence Level (If): checks a condition and branches into true / false

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

Services it uses

GmailGoogle DriveGoogle GeminiGoogle SheetsSlack

HTTP calls to: sandbox-quickbooks.api.intuit.com

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.

Nodes used (11)

From the author

Quick overview This workflow monitors Gmail and a Google Drive folder for new invoice attachments, extracts invoice data using Google Gemini (text or vision), validates confidence scores, logs results to Google Sheets, creates vendor bills in QuickBooks…

Excerpt from Intuz '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.