AgentHub

Save starred Gmail emails as Markdown notes to an Obsidian Google Drive folder

Quick overview

Live
Open / InstallLast updated July 27, 2026

Description

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 the email to prevent duplicates. How it works Runs every day at 7am on a schedule trigger. Searches Gmail for emails matching your query (default: starred) while excluding messages already labeled obsidian-saved. Converts each matching email into a Markdown file with YAML frontmatter (title, from, date, tags) and the email body, using a date-prefixed, filesystem-safe filename. Processes emails one at a time to avoid rate limits and ensure reliable saves. Creates a .md file in the selected Google Drive folder using the generated filename and Markdown content. Adds the obsidian-saved label to the original Gmail message so it is skipped in future runs. Setup Add Gmail OAuth credentials and ensure your account has access to read messages and apply labels. Add Google Drive OAuth credentials and select the destination Drive and folder ID where your Obsidian vault syncs (for example, a folder inside your vault). Create a Gmail label named obsidian-saved and select it in the step that adds labels to messages. (Optional) Update the Gmail search query and note tag in the settings step to change which emails are captured and how notes are tagged. An n8n automation workflow template by 43 Sunsets.

Author

43 Sunsets

Platform

web

Pricing model

free

Categories

Automation

Tags

n8n
workflow
google-drive
gmail
code

Capabilities

  • 3 nodes
  • 1 views