Find the email context behind a Slack DM
Ask in Slack. Get the matching email context from Gmail, ready for your next step.
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
Fetch emails
Fetches a list of email messages from a gmail account, supporting filtering, pagination, and optional full content retrieval.
Why this helps
A DM can refer to an email thread you have to hunt down manually, interrupting the work you were doing.
- Look up relevant emails while the request is still in front of you.
- Reduce manual Gmail searches and context switching.
- Keep the result tied to the Slack request that prompted it.
Setup
Build it in a few focused steps.
- 1Connect Slackbot and Gmail once in the Notis portal.
- 2Create a new automation in the portal or tell Notis in plain language.
- 3Describe how to find Gmail messages relevant to the DM and where to report the results.
- 4Pick Direct Message Received as the trigger and choose a report channel.
- 5Test with one real DM and confirm the matches are useful.
Questions about this workflow
Does this run for channel messages too?
No. This workflow uses the Direct Message Received event, which catches DMs. Choose a channel message trigger for channel posts.
Can it find a specific email if the DM mentions a person or topic?
Tell Notis what clues to use, such as a sender, subject, or phrase. The workflow can only search using information available in the DM and Gmail.
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.