Save starred Gmail emails as Markdown notes in an Obsidian Google Drive folder
Ready for 3.0What this workflow does
This workflow has 7 nodes and runs on a schedule (every day at 07:00). Along the way it connects Gmail and Google Drive.
How it runs
Trigger: On a schedule (every day at 07:00).
- ⚙️ Your settings (Edit Fields (Set)): sets 2 fields: searchQuery, noteTag
- Find starred emails (Gmail): get many
- Build the note (Code): runs custom JavaScript code
- One email at a time (Loop Over Items (Split in Batches)): loops over the items in batches
- Save note to vault (Google Drive): create from text
- Mark email saved (Gmail): add labels
Services it uses
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (6)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Drive
n8n-nodes-base.googleDrive
From the author
Quick overview This workflow runs daily, finds starred Gmail emails that are not yet labeled as saved, converts each email into a Markdown note with YAML frontmatter, uploads the note to a Google Drive folder synced with your Obsidian vault, and then labels…