Process invoices from Gmail and Drive using Google Gemini, Slack, and Sheets
Ready for 3.0What this workflow does
This AI workflow has 31 nodes and runs on Gmail events (plus 2 other triggers). Along the way it connects Gmail, Google Drive, Google Gemini and Slack and 1 more.
How it runs
Trigger: On Gmail events (plus 2 other triggers).
- Email Attachment Is PDF or Image? (If): checks a condition and branches into true / false
- Download Drive File (Google Drive): download
- Alert Workflow Failure (Slack): uses Slack
- Extract Invoice Data (Email) (Google Gemini): work with document
- Mark Unsupported Email As Read (Gmail): mark as read
- Drive File Is PDF or Image? (If): checks a condition and branches into true / false
- Tag Source Email (Edit Fields (Set)): sets 1 field: source
- Notify Unsupported File Type (Slack): uses Slack
- Extract Invoice Data (Drive) (Google Gemini): work with document
- Combine Extraction Results (Merge): merges the data from its input branches
…plus 18 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)
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 (12)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Error Trigger
n8n-nodes-base.errorTrigger - Google Drive
n8n-nodes-base.googleDrive - If
n8n-nodes-base.if - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Edit Fields (Set)
n8n-nodes-base.set - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow monitors Gmail and a Google Drive folder for new invoice/receipt files, uses Google Gemini to extract structured invoice data and classify expense categories, logs results to Google Sheets, and routes higher-value invoices to…