Templates / Classify Gmail invoice attachments with Google Gemini and forward to freee

Classify Gmail invoice attachments with Google Gemini and forward to freee

Ready for 3.0

by daisuke · 153 views · created 2026-02-06 · 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 9 nodes and runs on Gmail events. Along the way it connects Gmail and Google Gemini.

How it runs

Trigger: On Gmail events.

  1. Has Attachment (If): checks a condition and branches into true / false
  2. Extract Text from PDF (Extract from File): extracts data from a file (pdf)
  3. Classify Invoice/Receipt (AI) (Google Gemini): uses Google Gemini
  4. Is Invoice or Receipt (If): checks a condition and branches into true / false
  5. Get Attachment (Gmail): get
  6. Forward to freee (Gmail): uses Gmail

Services it uses

GmailGoogle Gemini

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)

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…

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