# 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:

```javascript
{
  text: 'Hello World!'
}
```

<figure><img src="https://837703843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUX6zPRMFFK0yrTghj7cY%2Fuploads%2FXjRBKzvdyHKvvQHmQjD7%2FCleanShot%202025-05-21%20at%2016.14.30%402x-min.png?alt=media&#x26;token=5bd05e3a-2aba-47e6-9938-972c2ecb5507" alt=""><figcaption></figcaption></figure>

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:

```javascript
{
  text: 'Hello ' + {{data.name}} + '!'
}
```

```javascript
{
  text: 'Hello ' + {{ui.input.value}} + '!',
}
```

***

You can also use Slack's [extended message formatting options](https://api.slack.com/messaging/webhooks#advanced_message_formatting), such as block & attachments.
