How to automatically upload a file to Google Drive every time an email is received in Gmail

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 automatically run the “upload file” action in Google Drive for each email received in Gmail using Relay.app.
Gmail logoGmail > Google Drive
Trigger
Last triggered
Gmail logoEmail received
Google Drive logoUpload file
1

Set the Gmail trigger as “Email received”

A playbook always starts with a trigger, which is responsible for detecting changes in your connected applications and responding accordingly.

Add the Gmail trigger to initiate your playbook's actions every time an email is received. Click "Add trigger" in your playbook and choose "Email received" from the dropdown menu under Gmail.

If you still need to connect your Gmail account to Relay.app yet, a prompt will guide you through the process.

2

Add the “Upload file” step in Google Drive

Integrate the Google Drive automation into your playbook to ensure the prompt upload of a file to Google Drive whenever an email is received in Gmail.

Click the "Add step" button, locate the “Upload file” automation for Google Drive, and input the mandatory and relevant details.

If your Google Drive account still needs to be connected to Relay.app, you will be prompted to complete that connection. Make sure to allow the necessary permissions for Relay.app to sync with your Google Drive account.

3

Activate your playbook

Activating your playbook is the last step in the process. Once you turn it on, it will automatically upload a file to Google Drive every time an email is received in Gmail without requiring manual intervention.

To activate your playbook, click the toggle button at the header. Before activating, we recommend performing a test run of your playbook to ensure all the steps work seamlessly together.

More how-to guides featuring Gmail and Google Drive

See all how-to guides ➔

What will you automate?

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