# Slack

[Slack ](https://slack.com/)is a messaging application for business, and we have integrated with slack to allow you to integrate your alerts directly into slack.

### What do I need to get started?

* Access to the platform
* A slack Incoming Webhook, you can see [here](https://api.slack.com/messaging/webhooks#getting_started) for more information on how to obtain this webhook

### Lets Begin

To start with, we need to create the slack webhook as a provider, to do this we need to go to the following:

#### Step 1:

Navigate to the providers page and go to add a new slack provider:\
Manage > Providers > Slack > +

<figure><img src="/files/xKNbU22NRH8tE2lxm5qE" alt=""><figcaption><p>Add slack integration</p></figcaption></figure>

#### Step 2:

Enter the following values in the fields and hit "Create"

* Name: Give this provider a name, it can be anything you want!
* Webhook URL: This is the webhook URL provided by Slack

Once the provider has been created, you are able to use it in your alerts.

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

#### Step 3:

Once you have the provider created, you can test your provider to ensure that it is configured properly. If it is configured properly, you should see a test message appear in the configured channel.

#### Step 4:

Now that we have the provider configured and working as expected, we are ready to create our alert. To do this navigate to Manage > Alerts > Add:

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

In the form fields, enter the following information:

* Name: The name you wish to give to the alert
* Criteria: Either Power Up or Power Down
* Alert Rule Type: Select Slack
* Slack Provider: Select the slack provider that you just added in the previous steps
* Sites: Select all the sites you want this alert to be configured for.

Once you are happy with the alert rule form, proceed to hit "Create" and the alert rule will now become active.


---

# 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.turnitoff.ai/integrations/messaging-providers/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.
