Templates / Extract structured data from Gmail attachments to Google Sheets, GPT vision

Extract structured data from Gmail attachments to Google Sheets, GPT vision

Ready for 3.0

by Masaki Go ✓ · 167 views · created 2026-01-26 · Document Extraction, 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 40 nodes and runs on a schedule (every 30 minutes). Along the way it connects Gmail, AWS S3 and Google Sheets. It also calls api.openai.com and gmail.googleapis.com over HTTP.

How it runs

Trigger: On a schedule (every 30 minutes).

  1. Gmail: get many
  2. Domain Filter (Code): runs custom JavaScript code
  3. Filter: keeps only the items that match a condition
  4. Gmail: get
  5. Detect File Types (Code): runs custom JavaScript code
  6. If: checks a condition and branches into true / false
  7. Extract from Excel (Extract from File): extracts data from a file (xlsx)
  8. If: checks a condition and branches into true / false
  9. Parse Excel Data (Code): runs custom JavaScript code
  10. ConvertAPI to PNG (HTTP Request): calls an HTTP API (POST)

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

Services it uses

GmailAWS S3Google Sheets

HTTP calls to: api.openai.com, gmail.googleapis.com

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (10)

From the author

Automatically extract structured information from emails using AI-powered document analysis. This workflow processes emails from specified domains, classifies them by type, and extracts structured data from various attachment formats. Who is this for…

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