> For the complete documentation index, see [llms.txt](https://docs.telm.ai/telmai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.telm.ai/telmai/integrations/slack-integration.md).

# Slack Integration

This article explains how to integrate Slack for receiving alert notifications from Telmai.

## Overview

Setting up Slack notifications requires two steps:

1. Create a Slack app and obtain a Bot OAuth token
2. Add a Slack alert channel in Telmai and choose it in your monitors

***

## Step 1: Create a Slack App

1. Navigate to [Slack API apps](https://api.slack.com/apps)
2. Sign in and click **Create an App**
3. Set **App Name** to `Telmai Notifier`
4. Select the Slack workspace where the bot should post messages, then click **Create App**
5. In the left navigation, select **OAuth & Permissions**

   ![](https://604868671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkO3-a8YVu1iq1jP__S%2Fuploads%2FuB2ZHf4YDgB2MCEyYiIC%2F679378968.png?alt=media)
6. Scroll to the **Scopes** section. Under **Bot Token Scopes**, click **Add an OAuth Scope** and add:

   * `chat:write`
   * `chat:write.public`

   ![](https://604868671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkO3-a8YVu1iq1jP__S%2Fuploads%2F59vw3WGQc8GZkVQ87yVx%2F679477273.png?alt=media)
7. Scroll back to the top of the **OAuth & Permissions** page and click **Install App to Workspace**
8. In the confirmation dialog, click **Allow**
9. Navigate to Interactivity & Shortcuts in the left sidebar
10. Toggle Interactivity to On
11. Set a Request URL: `https://<your-telmai-host>/api/backend/slack/interactions` (replace `<your-telmai-host>` with your Telmai host)
12. Copy the **Bot User OAuth Access Token** — you will need it in the next step

    ![](https://604868671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkO3-a8YVu1iq1jP__S%2Fuploads%2FTKiKlePff04WDQgaESZO%2F692092947.png?alt=media)

***

## Step 2: Add a Slack Notification Channel in Telmai

Use the token from Step 1 to add a Slack alert channel in Telmai:

1. Open **Administration** and, under **Integrations**, select **Slack**. The **Set up** section repeats the setup steps above, with links to create the Slack app.
2. Under **Alert channels**, click **Add Slack channel**.
3. Enter the **Channel name**, the Bot User OAuth Token in **Token**, and the **Slack channel** to post to, then click **Save**.

To edit or remove channels, click **Manage channels** under **Alert channels**. You can also manage all alert channels with **Manage alert channels** in **Administration** > **Notification settings**.

Then choose the channel in the **Who gets notified** step of each monitor that should post to Slack. See [Configuring Notifications](https://docs.telm.ai/telmai/monitoring-data/monitors-management/configuring-notifications.md).
