Skip to navigation

Send a Slack Alert

View as Markdown

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

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

1

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.

2

Pick the destination

Fill in Channel for a channel message or Recipient for a direct message. These fields also accept variables from earlier steps.

3

Write the message

Enter the text to send. Point parts of it at earlier steps so the alert carries real detail, for example the lead’s name or the reason a step failed.