Skip to content
FlowHubFluxonLab
C
Gmailfree

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

by 43 Sunsetsadapted from n8n official workflow galleryUpdated Aug 2026
RequiresCCodeGmailGmailGoogle DriveGoogle Drive
Share Post Share
ScEvery day at 7amSe⚙️ Your settingsFind starred emailsFind starred em…CoBuild the noteSIOne email at a timeOne email at a …Save note to vaultSave note to va…Mark email saved1234567
1/5
STEPS · 7
Runs on a schedule

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).

Tags

n8nreference-onlygmailgoogle-drive
Connects
CCodegmailGmailgoogledriveGoogle Drive
CategoryGmail
Triggermanual
Complexitymedium
Nodes7
AddedJul 17, 2026

Related workflows

See all Gmail
Cgmailgoogledrivesheets
free

Generate and email PDF invoices from Google Sheets with Acrewity and Gmail

Quick overview This workflow watches for new order rows in Google Sheets, generates a styled HTML invoice, converts it to a PDF using Acrewity, emails the PDF via Gmail, archives it in Google Drive, and updates the order row status so successful and failed rows are clearly tracked. How it works Triggers every minute when a new row is added to the selected Google Sheets Orders worksheet. Applies your invoice settings (company name, logo URL, tax rate, currency, and email subject prefix) and builds invoice HTML from the row data. Validates required fields (including a valid customer email and a JSON array in the Items column) and writes an error message back to the sheet for invalid rows. Converts valid invoice HTML to a PDF using the Acrewity HTML-to-PDF API and turns the result into a binary file attachment. Sends the PDF invoice to the customer using Gmail. Uploads the PDF to a chosen Google Drive folder and updates the corresponding Google Sheets row with Status = Invoiced. Setup Install the community node package @acrewity/n8n-nodes-acrewity and add an Acrewity API credential. Add Google Sheets, Gmail, and Google Drive credentials in n8n. Create an Orders sheet with headers that

by Acrewity
gmailgoogledrive
free

Upload invoices from Gmail to Google Drive

Upload invoices from Gmail to Google Drive daily

by Jason
gmailgoogledrive
free

Get an mp4 attachment from Gmail to Google Drive

This simple workflow allows you to get an mp4 attachment from gmail email and then upload it to Google Drive to get attachment webview link.

by Wilbert Muza