Classify Gmail invoice attachments with Google Gemini and forward to freee
Ready for 3.0Ready 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 9 nodes and runs on Gmail events. Along the way it connects Gmail and Google Gemini.
How it runs
Trigger: On Gmail events.
- Has Attachment (If): checks a condition and branches into true / false
- Extract Text from PDF (Extract from File): extracts data from a file (pdf)
- Classify Invoice/Receipt (AI) (Google Gemini): uses Google Gemini
- Is Invoice or Receipt (If): checks a condition and branches into true / false
- Get Attachment (Gmail): get
- Forward to freee (Gmail): uses Gmail
Services it uses
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 (6)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Gmail
n8n-nodes-base.gmail - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Extract from File
n8n-nodes-base.extractFromFile
From the author
Classify and forward Gmail invoice attachments to freee with Google Gemini Automatically analyze email attachments with AI and forward invoices/receipts to freee's File Box. How it works 1. Polls Gmail for new emails with attachments every minute 2. Extracts…