# Slack

The Slack API allows you to programmatically trigger messages to individual users or channels.

## Connecting to Slack Workspace

To connect your Slack workspace via its API, follow the steps below:

1. Go to **Data Management** and click on "**New source**" to create a new data source.&#x20;
2. Select **Slack** from the list of available data sources.
3. Click on "**Connect to Slack**" and confirm the access request to your workspace when redirected to Slack. This will allow you to send messages to the workspace. After clicking "**Allow**" you will be redirected back to the confirmation page.
4. Save your Slack connection with "**Connect**".

Note: You can configure the data source for two different environments, Staging and Production. You can find more information about it [here](broken://pages/FM88Izx8RDNtGtuF6cvH).&#x20;


---

# 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.uify.io/integrations/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.
