Extract structured data from Gmail attachments to Google Sheets, GPT vision
Ready for 3.0What 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).
- Gmail: get many
- Domain Filter (Code): runs custom JavaScript code
- Filter: keeps only the items that match a condition
- Gmail: get
- Detect File Types (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Extract from Excel (Extract from File): extracts data from a file (xlsx)
- If: checks a condition and branches into true / false
- Parse Excel Data (Code): runs custom JavaScript code
- ConvertAPI to PNG (HTTP Request): calls an HTTP API (POST)
…plus 29 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Gmail
n8n-nodes-base.gmail - Code
n8n-nodes-base.code - Filter
n8n-nodes-base.filter - If
n8n-nodes-base.if - Extract from File
n8n-nodes-base.extractFromFile - HTTP Request
n8n-nodes-base.httpRequest - AWS S3
n8n-nodes-base.awsS3 - Merge
n8n-nodes-base.merge - Google Sheets
n8n-nodes-base.googleSheets
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…