Skip to content

Slack Message

Slack Message posts the text it receives from the flow to a Slack channel, for example an alert or a summary prepared by an agent. If you also pass it an image, the message goes out with it.

It sends messages through a Slack app installed in your workspace.

When to use it

  • Alerting the sales team in their channel when a large order comes in.
  • Posting a summary of the previous day’s incidents every morning.
  • Sharing a chart or image produced by the flow in a channel.

Configuration

This component is linked to the Slack bot API service. See Credentials.

FieldWhat it does
CredentialThe Slack bot API credential of your app.
Slack App OAuth token (required)The token of your Slack app. It is used to send the message and to load the list of channels.
Input (required)The text of the message.
Media filesThe image that goes with the message. Connect an image in markdown format with its web address, for example ![chart](https://…/sales.png). Leave it empty to send only the text.
Channel Name (required)The channel to post to. The list shows the public and private, non-archived channels your app can reach; press the refresh button if they do not appear.

Output

Slack Message returns a message with the result. If the message has an image, it contains the text sent and the image reference.

Example

An online shop alerts its team about large orders:

  1. The flow receives each new order from the shop.
  2. A component checks whether the amount is above the threshold the shop has set.
  3. Slack Message sends the text “New €1,250 order from López Furniture” to the #sales channel.

Good practices

  • Invite your Slack app to the private channels you want to post to; otherwise they do not appear in the list.
  • For new flows, Messages offers more actions on Slack messages.
  • Messages: sends and manages Slack messages.