Skip to content

Google Drive trigger#

Google Drive is a file storage and synchronization service developed by Google. It allows users to store files on their servers, synchronize files across devices, and share files.


You can find authentication information for this node here.

Examples and templates

For usage examples and templates to help you get started, refer to n8n's Google Drive Trigger integrations page.

Manual Executions vs. Activation

On manual executions this node will return the last event matching its search criteria. If no event matches the criteria (for example because you are watching for files to be created but no files have been created so far), an error is thrown. Once saved and activated, the node will regularly check for any matching events and will trigger your workflow for each event found.

Example Usage#

This workflow sends out email notifications when a new file has been uploaded to Google Drive. It uses two nodes:

The final workflow should look like the image below.

A workflow using the Google Drive Trigger and Send Email node

1. Google Drive Trigger node#

  1. Enter valid credentials for the Google Drive Trigger node. You can find out how to do so here.
  2. Select the Changes involving a Specific Folder option in the Trigger On field.
  3. Paste the URL of a Google Drive folder in the Folder URL or ID field.
  4. Select File Created in the Watch For field.
  5. Click on Execute Node to execute the node.

In the screenshot below you can see the file returned by the node.


2. Send Email node#

  1. Enter valid credentials for the Send Email node. You can find out how to do so here.
  2. Enter valid emails in the From Email and To Email fields.
  3. Enter File Created in the Subject field.
  4. Click on the gear icon next to the Text field and choose Add Expression.
  5. Enter A file in your Google Drive file folder has been created: {{$json["name"]}} and close the expression editor.
  6. Click on **Execute Node to execute the node.