How to automatically add label to Gmail emails every time a document is added to a folder in Google Docs

Relay.app is an automation tool that lets you automate actions across Gmail, Google Docs, and many other apps. In this guide, we'll show you how to automatically run the “add label to email” action in Gmail for each document added to folder in Google Docs using Relay.app.
Google Docs logoGoogle Docs > Gmail
Trigger
Last triggered
Google Docs logoDocument added to folder
Gmail logoAdd label to email
1

Set the Google Docs trigger as “Document added to folder”

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

Add the Google Docs trigger to initiate your playbook's actions every time a document is added to a folder. Click "Add trigger" in your playbook and choose "Document added to folder" from the dropdown menu under Google Docs.

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

2

Add the “Add label to email” step in Gmail

Integrate the Gmail automation into your playbook to ensure the prompt addition of labels to Gmail emails every time a document is added to a folder in Google Docs.

Click the "Add step" button, locate the “Add label to email” automation for Gmail, and input the mandatory and relevant details.

If your Gmail 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 Gmail account.

3

Activate your playbook

Activating your playbook is the last step in the process. Once you turn it on, it will automatically add a label to Gmail emails whenever a document is added to a folder in Google Docs 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 Docs

See all how-to guides ➔

What will you automate?

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