How to automatically upload Gmail attachments to Google Drive

Relay.app is an automation tool that lets you automate actions across Gmail, Google Drive, and many other apps. In this guide, we'll show you how to use Relay.app to automatically run the Google DriveUpload file” action for each GmailEmail received” event.
Gmail logoGmail > Google Drive
Trigger
Last triggered
Gmail logoEmail received
Google Drive logoUpload file

💡 About this workflow

When I was the product lead for Gmail, we were constantly trying to figure out ways to help users get the important information coming in through their email into other tools. Perhaps the most common example of this was the need to save attachments to Google Drive. People need to do this for a ton of reasons: uploading invoices and receipts to a finance folder, saving signed documents from e-signature tools to a legal folder, adding incoming resumes to a hiring folder, and much more. To make this easy, we built a little button that users could click on top of an attachment to store it in Drive in one click. This helped a bit, but it still fell short in a few ways. First, you’d have to open the email, scroll down, and remember to click it for each attachment. Second, to put the file in the right folder, you’d have to click many more times to find the right place. Third, you couldn’t change the title of the attachment before it was saved. We built Relay.app to do this better. Relay.app is a workflow automation tool that lets you automate actions across Gmail, Google Drive, and many other apps. Using Relay.app, you can automatically upload new attachments into the right folder in Google Drive. Unlike other automation tools, Relay.app lets you add human-in-the-loop steps, for example to edit the title of the document before it gets saved. This guide will walk you through how to set it up!
Jacob Bank
Jacob Bank
Founder/CEO
1

Add the Gmail trigger

Every playbook starts with a trigger. The trigger detects changes in your connected apps and runs your playbook in response.

Click "Add trigger" and select "Email received" under Gmail. Then, provide the necessary criteria like a certain sender, set of keywords, or labels. If this is your first time using a Gmail integration in Relay, you'll be prompted to connect your Gmail account.

Now, every time an email is received in Gmail that matches your criteria, your playbook will run automatically.

2

Add the Google Drive Upload files automation

Now you can add a new step to your playbook that will upload files to Google Drive. Select "Upload files" from the list of Google Drive automations.

Connect Google Drive to Relay if you haven't already, then specify which folder in Drive you want to receive the attachments.

3

Turn on the playbook

When you are finished setting up your playbook, it's time to activate it.

The playbook will now run automatically whenever an email is received in Gmail that matches your criteria.

More how-to guides featuring Gmail and Google Drive

See all how-to guides ➔
Gmail iconGoogle Drive icon
Automatically move a file from one folder to another in Google Drive whenever a new email with a specific label is received in your Gmail
Learn how to set up a Relay playbook that automatically moves a file from one folder to another whenever a new email with a specific label is received in your Gmail. Streamline your digital organization with this efficient workflow. When a new email with a specific label arrives in your Gmail, the specified file is moved to a designated location in your Google Drive. It's a seamless solution to ensure important documents are properly sorted and effortlessly accessible in your Google Drive, facilitating smoother operations.
Gmail iconHubSpot iconSmartSuite iconGoogle Drive iconGoogle Docs icon
Join or merge Paths in Zapier
Unfortunately joining or merging Paths is not possible in Zapier. This guide shows you how to merge paths in Relay.app, a modern and easy-to-use automation tool that lets you automate repeated workflows and add human approvals, data inputs or decisions where relevant
Gmail iconGoogle Drive icon
Send email notifications in Gmail for new files added to a specific Google Drive folder
Learn how to set up a Relay playbook that automatically sends an email in Gmail whenever a new file is added to a specific folder in Google Drive. Sometimes you need to know when a new file is added to Google Drive. Effortlessly alert yourself or a list of people with this Relay automation. This will automatically send a custom email in Gmail with the file attached whenever a new file is added to a specific folder in Google Drive.
Gmail iconGoogle Drive icon
Automatically share a folder in Google Drive for a new email received in Gmail
Automatically share a folder in Google Drive when a new email is received in Gmail. This integration streamlines your workflow and enhances file sharing efficiency. When you receive a new email in Gmail, a designated folder in Google Drive is automatically shared with the necessary recipients. This ensures that all relevant parties have access to the shared folder for seamless collaboration and information sharing.
Gmail iconGoogle Drive icon
Send email notifications in Gmail when a folder is created in Google Drive
Learn how to set up a Relay playbook that automatically sends an email in Gmail whenever a new folder is created in Google Drive. Want to get an email alert each time a new folder is created in Google Drive? Set up this integration. It automatically sends an email from your Gmail account whenever a new folder is created. Now you can keep track of changes and stay organized.
Gmail iconGoogle Drive icon
Create new folders in Google Drive for every new email received in Gmail
Learn how to set up a Relay playbook that automatically creates new folders in Google Drive whenever a new email is received in Gmail. Stay organized and save time with this efficient workflow. Whenever you receive a new email in Gmail, a corresponding folder will be created in your Google Drive. This way, you can effortlessly manage your digital files, creating a manageable and clutter-free working environment. Enjoy streamlined digital file management without lifting a finger.
Gmail iconGoogle Drive icon
Copy new emails in Gmail to Google Drive files
Learn how to set up a Relay playbook that automatically copies new emails in Gmail to Google Drive files. When you receive a new email in Gmail, this workflow will immediately replicate a specified file in Google Drive. It's a simple and efficient method to ensure the specified file is always saved in your Google Drive. This is especially useful to keep your files backed up or for ease of sharing and accessibility.
Gmail iconGoogle Drive icon
Automatically save Gmail attachments to Google Drive
Learn how to automatically save attachments from incoming emails in Gmail to Google Drive using Relay.app. Relay.app is a workflow automation tool that lets you automate actions across Gmail, Google Drive, and many other apps. Unlike other automation tools, Relay.app lets you add human-in-the-loop steps.
Gmail iconGoogle Drive icon
Share a file in Google Drive for a new email received in Gmail
Automatically share a file in Google Drive when a new email is received in Gmail. This integration streamlines your workflow and enhances file sharing efficiency. Upon receiving a new email in Gmail, a specified file in Google Drive can be automatically shared with the designated recipients. This ensures seamless access to the file and supports efficient collaboration and information sharing.

What will you automate?

Sign up and get started with your first Relay.app playbook today.
Background image