Templates / Extract Turkish invoice data from Gmail PDFs with Google Gemini and Sheets

Extract Turkish invoice data from Gmail PDFs with Google Gemini and Sheets

Ready for 3.0

by Onur Olgun · 19 views · created 2026-10-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 21 nodes and runs on Gmail events. Along the way it connects Gmail, Google Drive, Google Sheets and Google Gemini Chat Model.

How it runs

Trigger: On Gmail events.

  1. Merge: merges the data from its input branches
  2. Set Email Fields (Edit Fields (Set)): sets 2 fields: attachments, message_id
  3. Loop Over Attachments (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Split Attachments (Split Out): splits a list into separate items
  5. Upload to Google Drive (Google Drive): uses Google Drive
  6. Download from Google Drive (Google Drive): download
  7. Extract Invoice Data (Extract from File): extracts data from a file (pdf)
  8. AI Invoice Agent (AI Agent): runs an AI agent, with model: Google Gemini AI Chat; output parser: Parse Structured Details
  9. If: checks a condition and branches into true / false
  10. Read Invoice Data (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Assistant; output parser: Parse Structured Output

…plus 6 more steps. See the full node list below.

Services it uses

GmailGoogle DriveGoogle SheetsGoogle Gemini Chat Model

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 Email Received).

Nodes used (13)

From the author

Quick overview This workflow monitors Gmail for PDF attachments, uploads them to Google Drive, extracts invoice text from PDFs, uses Google Gemini to detect and parse Turkish invoice fields into structured data, and logs both invoice headers and line items…

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