AutomationMart
Home/Browse/Gmail to Google Drive email export workflow
n8n

Gmail to Google Drive email export workflow

n8nn8n7 modulesv1.0
GmailSlackGoogle SheetsGoogle Drive

Gmail to Google Drive Email Export Workflow (n8n) 🧩 Overview This n8n workflow automates the process of: 1. Retrieving all emails from a specific sender using Gmail. 2. Extracting essential fields like subject, message, and date. 3. Formatting the email date to the desired time zone (e.g., IST). 4. Exporting the parsed data as a CSV file. 5. Uploading the file to a specified folder in Google Drive. --- πŸ›  Nodes Breakdown 1. Start Workflow (Manual Trigger) - Type: Manual Trigger - Purpose: Initia

At a glance

Gmail to Google Drive email export workflow is a ready-made n8n workflow you import as a workflow JSON file β€” no build required. It connects Gmail, Slack, Google Sheets, Google Drive. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, Slack, Google Sheets, Google Drive
Modules
7
Price
Free
Version
v1.0
Gmail to Google Drive email export workflow workflow diagram

About this workflow

Gmail to Google Drive Email Export Workflow (n8n) 🧩 Overview This n8n workflow automates the process of: 1. Retrieving all emails from a specific sender using Gmail. 2. Extracting essential fields like subject, message, and date. 3. Formatting the email date to the desired time zone (e.g., IST). 4. Exporting the parsed data as a CSV file. 5. Uploading the file to a specified folder in Google Drive. --- πŸ›  Nodes Breakdown 1. Start Workflow (Manual Trigger) - Type: Manual Trigger - Purpose: Initiates the workflow manually. --- 2. Gmail Node (Get All Emails) - Type: Gmail - Operation: getAll - Filters: - sender: akhilgadiraju@gmail.com - Returns: All emails from the specified sender. - Credentials: Gmail OAuth2 - Akhil --- 3. Parse Data (Set Node) - Purpose: Extracts key fields from the email JSON. - Mapped Fields: - id: Email ID - subject: Email subject - message: Email text - time: Email date --- 4. Convert Time Field (Code Node) - Purpose: Converts the email time (ISO 8601) to a human-readable format. - Output Format: - Local time using Asia/Kolkata timezone. - Format: "Month Day, Year, Hour:Minute AM/PM" - Customizable: Change the timezone as needed: --- 5. Convert to File - Type: Convert to File Node - Purpose: Converts JSON data to a downloadable .csv file. - Output File: CSV containing id, subject, message, and time. --- 6. Google Drive - Type: Google Drive - Purpose: Uploads the generated CSV file to Google Drive. - Drive: My Drive - Folder: Root - File Name: Current timestamp + n8nexport.csv --- 7. End Workflow (NoOp) - Purpose: Final node to explicitly end the workflow. --- βœ… Use Cases - Personal Email Archiving: Back up or export emails from a specific sender (e.g., invoices, reports). - Audit Logs: Save conversations for compliance. - Team Reports: Aggregate project emails into a central file store. --- πŸ”§ Customization Guide | Customization | How to Do It | |---------------------------|------------------------------------------------------------| | Change Sender Email | Update the sender field in the Gmail node. | | Filter by Date/Subject | Add filters in the Gmail node settings. | | Change Time Zone | Edit timeZone in the Code node. | | Add More Email Fields | Modify the Set node to include more fields. | | Change File Format | Use a different format in the Convert to File node. | | Rename Output File | Adjust the name in the Google Drive node. | | Change Upload Folder | Set a different folderId in the Google Drive node. | --- πŸš€ Deployment Tips - Schedule the Workflow: Replace Manual Trigger with a Cron node. - Avoid Duplicates: Store email IDs and skip duplicates using conditional logic. - Security: Use environment variables for sensitive credentials. --- πŸ§ͺ Testing Steps 1. Manually trigger the workflow. 2. Verify email data is parsed and formatted. 3. Confirm CSV is generated correctly. 4. Ensure the file is uploaded to Google Drive. --- 🧰 Requirements - Connected Gmail and Google Drive OAuth2 credentials. - n8n instance (self-hosted or cloud). - Required nodes available in the n8n environment. --- > πŸ’‘ Need more features? You can add: > - Error handling > - Slack/Email notifications > - Conditional filters > - Google Sheets integration instead of Drive

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n β†’ click the menu β†’ Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Detect plagiarism in Google Sheets with Eden AI

Maintain high-quality, original content by detecting plagiarism in your Google Sheets. Simply enter your content and let Eden AI ensure your documentation process is plagiarism-free.

Free

Analyze texts with Google Natural Language and save the results in Google Sheets

This template helps you analyze texts with Google Natural Language. Then, Make will automatically save the result in Google Sheets. The template uses this [example spreadsheet](https://docs.google.com/spreadsheets/d/13b_XyTbUCR5zxJ_9C3kDEWwI8oSx_BEPISKmuHF1s3o/edit?usp=sharing).

Free

Send new Slack public channels messages to Databox

Every time a new message is sent to a public Slack channel, Make will automatically push that data to Databox.

Free

Generate text-to-speech audio from Google Sheets data using OpenAI and Eleven Labs

Automatically convert Google Sheets data into text-to-speech audio using OpenAI and Eleven Labs, then send via email with Google Email.

Free

Upload files from Google Drive to Ninox

When a new file is uploaded in Google Drive, a new record is created in Ninox and the file is uploaded to the record.

Free

Add new Digistore24 etickets to Google Sheets

Every time a new eticket has been created in Digistore24, Make will automatically add the information about customer and eticket to a specified spreadsheet in Google Sheets. The template uses this [example spreadsheet](https://docs.google.com/spreadsheets/d/1SgxSQ_tWbiwgHQGdfZPukeelxfSDUvLAHiyp9spJU2A/edit?usp=sharing).

Free

Enrich creator handles with cross-platform social data from influencers.club

How it works: Get multi social platform data for creators from one social handle. Step by step workflow to enrich influencer contacts with multi social (Instagram, Tiktok, Youtube, Twitter, Onlyfans, Twitch and more) profiles, analytics and metrics using the influencer.club API Set up: - Supabase (can be swapped for any DB) - Influencers.club

Free

Create & track LinkedIn posts with Google Sheets, GPT-5.1, Unsplash, and Sona

Automate LinkedIn content creation by managing ideas in Google Sheets, generating professional AI-written posts, intelligently selecting relevant Unsplash images, sending drafts for email approval, and publishing directly to LinkedIn. How it works Step 1: Scheduled Sheet Check - Workflow runs daily at midnight (customizable to hourly/weekly) - Fetches posts from Google Sheet marked with Status = "Ready" - Processes one post per run, updates status to "In Progress" Step 2: AI Cont

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint β€” instant download
  • Setup guide PDF included
  • 5 downloads Β· valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

β‚Ή2,499/ session
3 hrs Β· video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free