Send Slack
Send a message to a Slack channel.
Currently, this step is designed for internal Slack workspaces. If you need to send messages to external Slack channels (e.g., to your users), please reach out and let us know—this is on our roadmap!
The Send Slack step allows you to deliver real-time messages directly to a specific Slack channel of your choice. For instance, you can:
- alert the team about a high-value signup
- notify support of urgent issues
- broadcast a daily digest
- setup a #feed channel to track all key activity in your app
To add a Send Slack step, click the ”+” placeholder node in the builder or the ”+” button on any connection between two steps. Then click Send Internal Slack.
Breakdown
An example Slack step configuration. Sends a message to the #demo-feed channel when a new user signs up to the waitlist.
You can select a Slack channel and optionally add a description in the slideover. If you haven’t configured a channel yet, you can do so under Settings.
You’ll notice there’s also a live preview panel, where you can preview a fully rendered message based on the currently configured test data, which you can update by opening up the Test panel.
This step will send a message to the specified Slack channel for every input in the input data list. For each input, the step will:
Construct the JSON payload
Generate the JSON payload for the Slack message by substituting the input data fields into the template.
Send the message
Initiate Slack’s Incoming Webhooks API with the payload, which sends the message to the configured Slack channel.
Expected JSON payload structure
Slack’s Incoming Webhooks API expects a JSON payload with specific fields. The two primary components are:
-
text
A plain text fallback message that is displayed in notifications and in contexts where rich formatting is unavailable. -
blocks
An array of Block Kit components that provide rich, interactive formatting. Each block is an object with atype
(such as"section"
,"divider"
, or"actions"
) and additional properties based on the block type. For example, a section block might look like this:
Slack renders these blocks to display your message with enhanced formatting. You can include both a simple text
field and/or a detailed blocks
array to provide a rich notification experience.
Visit Slack’s Block Kit documentation for a deeper dive on how to build rich messages.
Using input data
The template editor supports Liquid, which lets you substitute input data fields to create
dynamic messages. You can use the {{ }}
syntax to insert the input data fields into your message.
Some examples:
Explore further
Was this page helpful?