Find email threads related to a Slack DM
Bring the email conversations behind a Slack request into view so you can pick up the thread with context.
Trigger
Direct Message Received
Triggered when a new direct message (DM) is sent to a user in Slack. Catches all DMs across all DM channels.
Action
List threads
Retrieves a list of email threads from a gmail account, identified by `user id` (email address or 'me'), supporting filtering and pagination.
Why this helps
Finding the right email conversation takes time when a Slack request gives only a person, topic, or project clue.
- Bring likely related email conversations into one report.
- Search from the wording and clues already in the DM.
- Review the thread list before taking action.
Setup
Build it in a few focused steps.
- 1Connect Slackbot and Gmail once in the Notis portal.
- 2Create an automation that searches Gmail threads based on the DM context.
- 3Pick Direct Message Received as the trigger.
- 4Choose where run reports go and test with one DM that refers to an email topic.
Questions about this workflow
How is this different from searching messages?
This workflow retrieves Gmail threads, which groups messages into conversations. Use it when reviewing conversation context is the goal.
Will it retrieve full email content?
The thread list action supports filtering and pagination. If full message content is needed, specify that requirement and use an appropriate Gmail retrieval action.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Slackbot to Gmail. A trigger fires from one place; an action lands in another.
Slackbot triggers
Gmail actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Modify email labels
Adds and/or removes specified gmail labels for a message; ensure `message id` and all `label ids` are valid (use 'listlabels' for custom label ids).
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Create email draft
Creates a gmail email draft, supporting to/cc/bcc, subject, plain/html body (ensure `is html=true` for html), attachments, and threading.
New Channel Created Trigger
Triggered when a new channel is created in Slack.
Create label
Creates a new label with a unique name in the specified user's gmail account.
Channel Message Received
Triggered when a message is posted in a Slack channel (public, private, or multi-party IM). Does NOT match direct messages.
Delete Draft
Permanently deletes a specific gmail draft using its id; ensure the draft exists and the user has necessary permissions for the given `user id`.
Direct Message Received
Triggered when a new direct message (DM) is sent to a user in Slack. Catches all DMs across all DM channels.
Delete message
Permanently deletes a specific email message by its id from a gmail mailbox; for `user id`, use 'me' for the authenticated user or an email address to which the authenticated user has delegated access.
Message Reaction Added
Triggered when a reaction is added to a message in Slack. Supports optional filtering by channel and emoji name.
Fetch emails
Fetches a list of email messages from a gmail account, supporting filtering, pagination, and optional full content retrieval.
Message Reaction Removed
Triggered when a reaction is removed from a message in Slack. Supports optional filtering by channel and emoji name.
Fetch message by message ID
Fetches a specific email message by its id, provided the `message id` exists and is accessible to the authenticated `user id`.
Reaction Added Trigger
DEPRECATED: use `SLACK_MESSAGE_REACTION_ADDED` instead. Triggered when a reaction is added to a message in Slack.
Fetch Message by Thread ID
Retrieves messages from a gmail thread using its `thread id`, where the thread must be accessible by the specified `user id`.
Connect any two apps with Notis in the middle.
Slackbot and Gmail, or any other combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Gmail.