Get Started
Screenshot of n8n workflow
FREE TEMPLATE
Automate Gmail to Google Sheets Data Import
3
Views
0
Downloads
14
Nodes
Download Template
Free
Preview Template
Utility Rating
6 / 10
Business Function
Operations
Automation Orchestrator
n8n
Integrations
Google Sheets
Gmail
Trigger Type
Approx setup time ≈ 35 min
Need help setting up this template?
Ask in our free Futurise community
About
Community
Courses
Events
Members
Templates

How to Automate Gmail to Google Sheets Data Import?

Leon Petrou
FREE TEMPLATE
Automate Gmail to Google Sheets Data Import
3
Views
0
Downloads
14
Nodes
Download Template
Free
Preview Template
Utility Rating
6 / 10
Business Function
Operations
Automation Orchestrator
n8n
Integrations
Google Sheets
Gmail
Trigger Type
Approximate setup time ≈ 35 minutes
Need help setting up this template?
Ask in our free Futurise community

Description

Gather fresh user records, save them in files, share by email, and log them into a spreadsheet with one run. Ideal for operations teams that need quick test data, contact lists, or simple data pipelines without coding.

The flow pulls sample users from an API, maps clean fields like full name and country, and writes rows to Google Sheets. It also creates a CSV file, turns that CSV back into JSON, saves the JSON to disk, and emails it as an attachment with Gmail. The email attachment is then read back into the workflow and added to Google Sheets again. Key parts include HTTP Request, Set for field mapping, Google Sheets append, two Spreadsheet File steps for format changes, Move Binary Data for file handling, Write Binary File for storage, and Gmail to send the file.

Plan on using Google accounts for Sheets and Gmail plus OAuth in n8n. Replace the sample sheet settings with your own sheet and range. Expect faster list building and fewer copy paste errors. Good fits include seeding demo data, sharing lists with teammates, or testing file based import steps. Run it as needed from n8n and verify rows appear in your sheet and the email arrives with the JSON file.

Copy link

Tools Required

n8n
Sign up
$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.
Google Sheets
Sign up
Free: $0 (Google Sheets API usage has no additional cost; quota limits apply)
Gmail
Sign up
No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)

What this workflow does?

  • Fetch sample user data using HTTP Request from a public API.
  • Map clean fields like full name and country with the Set node.
  • Append rows to Google Sheets with OAuth2 and a defined range A to C.
  • Convert JSON records to a CSV file using Spreadsheet File.
  • Turn the CSV back into JSON for reuse and downstream steps.
  • Write a JSON file to disk for storage or audits.
  • Send the JSON file as an email attachment with Gmail.
  • Read the email attachment back into the flow with Move Binary Data.
  • Append the parsed file contents into Google Sheets again for tracking.

What are the benefits?

  • Reduce manual list building from 60 minutes to 5 minutes
  • Automate 90% of copy paste work between email and sheets
  • Improve data accuracy by 95% by removing retyping
  • Connect Gmail and Google Sheets in one simple flow
  • Handle hundreds of rows per run without extra effort

How to set this up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You’ll need accounts with Google Sheets and Gmail. See the Tools Required section above for links to create accounts with these services.
  3. In n8n, open the Google Sheets node, click Credential to connect with, select Create new credential, and follow the on screen steps to sign in with Google and approve access.
  4. Open the Gmail node, click Credential to connect with, select Create new credential, and complete the Google sign in and permission prompts.
  5. In the Google Sheets nodes, replace the sample sheet reference with your own spreadsheet. Pick the target sheet and confirm the range A:C. Keep Use path for key row enabled if your header row should be set from mapped fields.
  6. Open the HTTP Request node and run it once to confirm you receive user data. Check the Execution data to see result fields like name and location.
  7. In the Set node, confirm the field mappings for name and country. Adjust or add fields to match your sheet headers.
  8. In the first Spreadsheet File node, set operation to To file and file format to CSV. This creates a CSV from the mapped JSON rows.
  9. In the second Spreadsheet File node, set it to parse the CSV back into JSON. Keep the default delimiter unless your data requires a different one.
  10. In Write Binary File, keep the default file name or change it to a path that your n8n setup can write to. The default works in most cases.
  11. In the Gmail node, set the To address, subject, and message. Under attachments, ensure the binary property matches the Move Binary Data output property name.
  12. In Move Binary Data after Gmail, set source key to attachment_0 and mode to convert the attachment into JSON so it can be appended to the sheet.
  13. Run the workflow. Verify a new row appears in Google Sheets, the email arrives with the JSON file, and that the second Google Sheets node appends data from the email attachment.
  14. If a Google Sheets step fails, check the sheet ID, selected tab, and range. If the email has no attachment, confirm the binary property name matches and that the Move Binary Data nodes point to the correct keys.

Need help or want to customize this?

Similar Templates

n8n
Operations
Automate Gmail Flight Price Alerts
Get daily flight deal alerts sent straight to your inbox. It watches your route and only emails you when the ticket price is at or below your target. Ideal for travel coordinators, office managers, and anyone booking company trips. Each morning a schedule runs, loads your origin and destination, and fetches airline data from Amadeus to show real carrier names. A code step creates future dates to search, by default 7 and 14 days out. The system loops through each date and calls the Amadeus flight offers API, pausing briefly between calls to respect limits. Results are merged and cleaned, key fields like price, time, duration, and carriers are extracted, and only fares under your price move forward to Gmail for a clear, easy to read alert. Set your airports in the FromTo node, tweak the day offsets in Get Dates, and choose your price target in the Under Price filter. Expect to replace manual checks with one scheduled run and act quickly when good fares show up. Most teams save 20 to 30 minutes a day and avoid missing short lived price drops. Great for controlling travel costs without monitoring sites all day.
6 views
view
n8n
Operations
Automate Gmail to Todoist Task Management
Turn important emails into clear Todoist tasks without copy and paste. The flow watches your Gmail inbox, builds a task when a new or starred email appears, and adds a short summary with next steps and a draft reply. It also closes the task when you remove the star from the email, so your list stays clean. On a schedule or when new mail arrives, it reads unread and starred messages from Gmail. New unread items can be marked as read and starred to show they need action. The flow checks open Todoist tasks and matches them to email subjects. If no match exists, it pulls the full message, sends it to OpenAI to create structured fields content, description, actions, and answer, then creates a Todoist task with that detail. A guard step checks the AI output before creating the task. Another path detects emails that lost the star and closes the linked Todoist task. To run it, connect Gmail, your email IMAP inbox, Todoist, and an OpenAI key. Pick the Todoist project where new tasks should go and adjust the optional read and star actions if you prefer different inbox rules. Teams that triage support or sales email will cut manual entry and miss fewer follow ups, often saving an hour a day.
11 views
view
n8n
Operations
Automate Gmail Spam Cleanup Alerts
Keep your Gmail inbox clean without constant manual sorting. The flow reviews older messages, removes marketing and spam, and sends you quick updates in Telegram. It suits busy teams and solo users who get too much promo mail and want less noise. It runs on demand from n8n. Emails are pulled from Gmail in 14 day chunks using a smart date filter, so large inboxes are handled in manageable windows. Google Gemini scores each email with decimal confidence for unwanted, marketing, and spam, and returns a short reason plus the email ID and sender. If the scores signal unwanted content, the message is deleted and a Telegram alert shows the sender and reason. If it looks safe, a keep label is added in Gmail and you receive a skip notice. AI errors are also posted to Telegram, so you always know what happened. You need Gmail access, a Telegram bot, and a Google Gemini API key. Set your Telegram chat ID and tune the confidence thresholds to match your risk level. Expect weekly inbox cleanup time to drop from hours to minutes while staying in control through clear alerts. You can add a schedule later with a Cron trigger to run this clean up daily.
0 views
view
See More Templates

These templates were sourced from publicly available materials across the web, including n8n’s official website, YouTube and public GitHub repositories. We have consolidated and categorized them for easy search and filtering, and supplemented them with links to integrations, step-by-step setup instructions, and personalized support in the Futurise community. Content in this library is provided for education, evaluation and internal use. Users are responsible for checking and complying with the license terms with the author of the templates before commercial use or redistribution.Where an original author was identified, attribution has been provided. Some templates did not include author information. If you know who created this template, please let us know so we can add the appropriate credit and reference link. If you are the author and would like this template removed from the library, email us at info@futurise.com and we will remove it promptly.