Automatically rename Gmail attachments with GPT-4o and save to Google Drive
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs on a schedule (every hour). Along the way it connects OpenAI Chat Model, Google Drive and Gmail.
How it runs
Trigger: On a schedule (every hour).
- Get Unread Messages with Attachments (Gmail): get many
- Set Required Fields (Edit Fields (Set)): sets 4 fields: id, threadId, from.value[0].name…
- Download Attachments (Gmail): get
- Extract from Attachments (Extract from File): extracts data from a file (pdf)
- AI Agent: runs an AI agent, with model: OpenAI Chat Model
- Merge: merges the data from its input branches
- Upload file (Google Drive): uses Google Drive
- Mark message as read (Gmail): mark as read
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + Google Drive templates (628) · Other Gmail + Google Drive templates (465)
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 (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Drive
n8n-nodes-base.googleDrive - Gmail
n8n-nodes-base.gmail - Merge
n8n-nodes-base.merge - Edit Fields (Set)
n8n-nodes-base.set - Extract from File
n8n-nodes-base.extractFromFile
From the author
Automatically Rename Gmail Attachments with AI and Save to Google Drive Who is this for? This workflow is perfect for anyone who regularly receives important email attachments like reports, invoices, or PDFs and wants them: - Renamed using clean AI generated…