# Slack

## Configuration

### **Connecting the data source**

1. On the **Data sources** page, click **Connect**, and select *Slack* in the Data sources list.
2. Give the data source a name and provide the **Hook URL**.

{% hint style="info" %}
Refer to [Slack documentation](https://api.slack.com/messaging/webhooks) for details on creating an incoming webhook.
{% endhint %}

3. Click **Test connection** to check whether the data source can be connected, and then click **Connect Datasource** to complete the setup.

<figure><img src="/files/OuQ6bqQgIUbrx9IAywxO" alt=""><figcaption></figcaption></figure>

## Usage

Once you've established the connection between UI Bakery and Slack, you can start sending messages from your actions to a predefined channel webhook.\
Check out [this page](/reference/working-with-actions/slack-message-action.md) for more details.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.uibakery.io/reference/data-sources/slack.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
