Process Gmail invoices into QuickBooks bills with Gemini, Slack and Sheets
Ready for 3.0What this workflow does
This AI workflow has 33 nodes and runs on Gmail events. Along the way it connects Gmail, Slack, Google Gemini Chat Model and Google Sheets and 2 more. It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: On Gmail events.
- If: checks a condition and branches into true / false
- Extract Email Metadata (Edit Fields (Set)): sets 5 fields: invoiceSource, senderName, senderEmail…
- Extract PDF Text (Extract from File): extracts data from a file (pdf)
- Hash PDF Text (Crypto): hashes or encrypts values
- Check Text Readability (If): checks a condition and branches into true / false
- Post to Gemini API (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Notify Unreadable PDF (Slack): uses Slack
- Route by Invoice Confidence (Switch): routes items into 2 branches
- Extract Invoice with AI (AI Agent): runs an AI agent, with model: Use Gemini Chat Model; output parser: Parse Invoice Schema
- Alert Possible Invoice (Slack): uses Slack
…plus 19 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
HTTP calls to: generativelanguage.googleapis.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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (When Invoice Email Received).
Nodes used (16)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - If
n8n-nodes-base.if - Extract from File
n8n-nodes-base.extractFromFile - Crypto
n8n-nodes-base.crypto - Slack
n8n-nodes-base.slack - HTTP Request
n8n-nodes-base.httpRequest - Switch
n8n-nodes-base.switch - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets
n8n-nodes-base.googleSheets - Data table
n8n-nodes-base.dataTable - QuickBooks Online
n8n-nodes-base.quickbooks - Wait
n8n-nodes-base.wait - HighLevel
n8n-nodes-base.highLevel - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick overview Youtube Video: https://youtu.be/yiyI6JqCE4 This workflow monitors Gmail for unread emails with PDF, uses Gemini (Decisions API + Gemini chat) to classify and extract invoice data, routes uncertain cases to Slack for approval, creates vendors…