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
Related resources#
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
Related resources#
n8n provides an app node for Gmail. You can find the node docs here.
Credentials
This section contains:
- OAuth2 single service: create an OAuth2 credential for a specific service node, such as the Gmail node.
- OAuth2 generic: create an OAuth2 credential for use with custom operations.
- Service Account: create a Service Account credential.
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 |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Google Cloud Realtime Database |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|