Gmail

Actions

The Gmail node allows you to automate work in Gmail, and integrate Gmail with other applications. n8n has built-in support for a wide range of Gmail features, including creating, updating, deleting, and getting drafts, messages, labels, thread.

On this page, you'll find a list of operations the Gmail node supports and links to more resources.

Credentials

Refer to Google credentials for guidance on setting up authentication.

Examples and templates

For usage examples and templates to help you get started, take a look at n8n's Gmail integrations list.

Operations#

  • Draft
    • Create
    • Delete
    • Get
    • Get Many
  • Label
    • Create
    • Delete
    • Get
    • Get Many
  • Message
    • Add Label
    • Delete
    • Get
    • Get Many
    • Mark as Read
    • Mark as Unread
    • Remove Label
    • Reply
    • Send
  • Thread
    • Add Label
    • Delete
    • Get
    • Get Many
    • Remove Label
    • reply
    • Trash
    • Untrash

Refer to Google's Gmail API documentation for detailed information about the API that this node integrates with.

n8n provides a trigger node for Gmail. You can find the trigger node docs here.

View example workflows and related content on our website.

 
 

Triggers

Gmail is an email service developed by Google.

Credentials

You can find authentication information for this node here.

Events#

  • Message Received

n8n provides an app node for Gmail. You can find the node docs here.

 
 

Credentials

This section contains:

OAuth2 and Service Account#

There are two authentication methods available for Google services nodes, OAuth2and Service Account. n8n recommends using OAuth. It's more widely available, and easier to set up. Refer to the Google documentation: Understanding service accounts for guidance on when you need service account.

Compatible nodes#

Once configured, you can use your credentials to authenticate the following nodes. Most nodes are compatible with OAuth2 authentication. Support for Service Account authentication is limited.

Node

 

OAuth

 

Service Account

 

G Suite Admin

 

✅

 

❌

 

Google Ads

 

✅

 

❌

 

Gmail

 

✅

 

✅

 

Google Analytics

 

✅

 

❌

 

Google BigQuery

 

✅

 

❌

 

Google Books

 

✅

 

✅

 

Google Calendar

 

✅

 

❌

 

Google Chat

 

❌

 

✅

 

Google Cloud Storage

 

✅

 

❌

 

Google Contacts

 

✅

 

❌

 

Google Cloud Firestore

 

✅

 

❌

 

Google Cloud Natural Language

 

✅

 

❌

 

Google Cloud Realtime Database

 

✅

 

❌

 

Google Docs

 

✅

 

✅

 

Google Drive

 

✅

 

✅

 

Google Drive Trigger

 

✅

 

✅

 

Google Perspective

 

✅

 

❌

 

Google Sheets

 

✅

 

✅

 

Google Slides

 

✅

 

✅

 

Google Tasks

 

✅

 

❌

 

Google Translate

 

✅

 

✅

 

YouTube

 

✅

 

❌