Reads each new email against a plain-English description of what matters to you, and posts the ones that do into a Slack channel.
Uses
Gmail
Slack
Post important emails to a Slack channel
Whenever a new email arrives in Gmail, it is read against a short description of what matters to you, written in plain English: who needs an answer, what counts as trouble, and what to leave out, such as newsletters and automatic replies. It ships with a starting description you can rewrite in your own words.
The emails that match are posted to your Slack channel with the subject, the sender and the first part of the message, and a link that opens it in Gmail. You can have each alert ping the channel or a named person. Everything else ends the run quietly. Only the decision to post involves AI, and nothing in Gmail is changed.
You need a Gmail connection, a Slack connection and the ID of the Slack channel to post into.
email.When an email arrives. Save it as email.slackChannelId to blank.Set slackChannelId to blank.whatMatters to:Set whatMatters to:Post an email when:
- a customer, partner or colleague needs an answer or a decision from us
- something is broken, down, overdue or at risk
- there is a problem with money: a failed payment, a refund, an invoice past due
- it has a deadline in the next few days
Don't post:
- newsletters, marketing and promotions
- automatic replies, and receipts or notifications sent by software
- anything that is only for information and needs nothing from usslackMention to blank.Set slackMention to blank.gmailAccountIndex to 0.Set gmailAccountIndex to 0.email, mention, and account_index and save it as alert.Run Python code on email, mention, and account_index and save it as alert.alert.has_email is noIf alert.has_email is noslackChannelId.Send a message to slackChannelId.alert.text