Skip to content

Gmail#

Use the Gmail node 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.

What to do if your operation isn't supported#

If this node doesn't support the operation you want to do, you can use the HTTP Request node to call the service's API.

You can use the credential you created for this service in the HTTP Request node:

  1. In the HTTP Request node, select Authentication > Predefined Credential Type.
  2. Select the service you want to connect to.
  3. Select your credential.

Refer to Custom API operations for more information.