Slack Message

UI Bakery allows you to send Slack messages from your action to a predefined channel webhook.

By default, you can send plain text messages like this:

{
  text: 'Hello World!'
}

Slack API returns the "ok" string if the message was sent successfully.

In addition to sending text messages, you can also reference the data from the previous step or the data of the UI component:

{
  text: 'Hello ' + {{data.name}} + '!'
}
{
  text: 'Hello ' + {{ui.input.value}} + '!',
}

You can also use Slack's extended message formatting options, such as block & attachments.

Last updated

Was this helpful?