Messaging connector

Gmail

Turn incoming Gmail messages into typed events that start workflows. Read attachments, reply in thread and apply labels so the inbox reflects what Tessel already handled.

Connect Gmail
Connect Gmail
See setup steps
See setup steps

Messaging

Category

Events

Sync mode

p95 850 ms

Latency

5 min

Setup time

What it can do

Triggers · 3
  • New email receivedWebhook
  • Label addedWebhook
  • Email matching a searchPoll
Actions · 5
  • Send an emailSend
  • Reply in a threadSend
  • Add a labelWrite
  • Create a draftWrite
  • Download an attachmentRead

Overview

The Gmail connector watches a mailbox through Gmail push notifications, so new mail starts a workflow within a second. Each message arrives as a typed event with sender, subject, labels and attachment metadata, and the full message is fetched only when a step needs it. Attachments up to 25 MB can be passed to an agent or stored in Google Drive.

Teams use it to parse vendor invoices from an accounts inbox into NetSuite, to route customer replies to Front or Zendesk and to send a summary when a Stripe dispute needs evidence.

Supported accounts

  • Google Workspace mailboxes, including shared and delegated ones

  • Personal Gmail accounts for testing

  • Domain-wide delegation for service accounts in Workspace

How push notifications work

Tessel calls users.watch on the labels you choose. Gmail publishes a notification to a Cloud Pub/Sub topic that Tessel owns, and Tessel reads the history since the last known historyId to find exactly which messages changed. Duplicate notifications are ignored.

POST /gmail/v1/users/me/watch
{
  "topicName": "projects/tessel-eu/topics/gmail",
  "labelIds": ["INBOX"],
  "labelFilterBehavior": "INCLUDE"
}
POST /gmail/v1/users/me/watch
{
  "topicName": "projects/tessel-eu/topics/gmail",
  "labelIds": ["INBOX"],
  "labelFilterBehavior": "INCLUDE"
}
POST /gmail/v1/users/me/watch
{
  "topicName": "projects/tessel-eu/topics/gmail",
  "labelIds": ["INBOX"],
  "labelFilterBehavior": "INCLUDE"
}

Watch renewal

A Gmail watch expires after seven days. Tessel renews it daily, and if a renewal fails it falls back to reading history so no message is skipped.

Permissions needed

Connect with OAuth or a Workspace service account. Choose read-only if workflows only react to mail. Sending and labeling need broader scopes, which you can add later.

  • gmail.readonly for triggers and attachment downloads

  • gmail.send to send and reply

  • gmail.modify to add labels and create drafts

Setup

Four steps. About five minutes.

Most of the time goes into choosing scopes. You can start read-only and widen access later.

  1. Sign in with Google and pick the mailboxGoogle2 min
  2. Choose scopes for read, send or modifyGoogle1 min
  3. Select the labels Tessel should watchTessel2 min
  4. Send yourself an email and watch the event arriveVerify850 ms

Your inbox, as a workflow trigger.

Connect Gmail on the free plan. Up to three builders and 10,000 runs a month, no card required.

Connect Gmail
Connect Gmail
All integrations
All integrations

One email a month. Only what shipped.

A1

Product

C1

Layouts

D1

Company

E1

Template

F1

All systems operational
fra41 ms
iad38 ms
sin52 ms

C2

Elsewhere

XLinkedInGitHubYouTube

E2

Move across the wordmark168 blocks · iso 30°

One email a month. Only what shipped.

A1

Product

C1

Layouts

D1

Company

E1

Template

F1

All systems operational
fra41 ms
iad38 ms
sin52 ms

C2

Elsewhere

XLinkedInGitHubYouTube

E2

Move across the wordmark168 blocks · iso 30°

One email a month. Only what shipped.

A1

Product

C1

Layouts

D1

Company

E1

Template

F1

All systems operational
fra41 ms
iad38 ms
sin52 ms

C2

Elsewhere

XLinkedInGitHubYouTube

E2

Move across the wordmark168 blocks · iso 30°

Create a free website with Framer, the website builder loved by startups, designers and agencies.