Send a Slack Alert
When a run hits something your team should know about, such as a new high-value lead or a step that failed, a Slack message is the fastest way to tell them. You can post to a shared channel or send a direct message to one person.
Nodes involved
- Use Channel Message to post to a shared channel the whole team sees.
- Use Direct Message to message one person privately.
Before you start
Have the Slack Bot User OAuth Token for the bot that will send the message. Both nodes require that token as a saved workflow secret. You can save it from Secret Variables or create it directly in the node.
How to build it
Save and select the bot token
Add a Channel Message or Direct Message step and open its settings.
Open Bot Token, then select an existing secret or choose Create secret….
Enter slack_bot_token as Name, paste the bot token into Value, and click Create Secret.
The new secret is automatically selected.