Templates / Automatic email invoice archiving & data extraction with Gmail, Drive & AI

Automatic email invoice archiving & data extraction with Gmail, Drive & AI

Ready for 3.0

by Paolo Ronco ✓ · 971 views · created 2025-11-17 · 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 17 nodes and runs on a schedule (every hour). Along the way it connects Google Sheets, Google Drive, Gmail and OpenRouter Chat Model.

How it runs

Trigger: On a schedule (every hour).

  1. Get many messages (Gmail): get many
  2. Filter: keeps only the items that match a condition
  3. Check: Message already processed (Google Sheets): uses Google Sheets
  4. If: checks a condition and branches into true / false
  5. Gmail: get
  6. Google Drive: uses Google Drive
  7. downloadFile (HTTP Request): calls an HTTP API
  8. Extract from File: extracts data from a file (pdf)
  9. Code: runs custom JavaScript code
  10. AI Agent: runs an AI agent, with model: OpenRouter Chat Model

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

Services it uses

Google SheetsGoogle DriveGmailOpenRouter 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.

Nodes used (12)

From the author

Quick overview Automatically collect invoice PDFs from Gmail, archive them in Google Drive or an optional FTP/SFTP server, extract structured invoice data with AI, and record the results in Google Sheets. How it works 1. Scheduled inbox check — A Schedule…

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