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.
Worth a look
- 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
What it does
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 text from PDF attachments and sends it to Google Gemini for classification 3. If Gemini identifies the document as an invoice or receipt, re-fetches the attachment and forwards it to freee's File Box email address Setup steps 1. Get freee receiving email: freee Accounting → File Box → Settings 2. Set environment variable: Set FREEEFORWARDINGEMAIL to freee's receiving address 3. Configure Credentials: - Gmail OAuth2 (read + send permissions) - Google Gemini API 4. Activate the workflow