> ## Documentation Index
> Fetch the complete documentation index at: https://docs.precallai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Slack

<Info>
  This page explains the steps you need to follow to set up the Slack connection in PreCallAI. If any of the steps are outdated, please let us know!
</Info>

1. Go to the [link](https://api.slack.com/apps?new_app=1) to **create an app**
   on Slack API.
2. Select **From scratch**.
3. Enter **App name**.
4. Pick the workspace you would like to use with the Slack connection.
5. Click on **Create App** button.
6. Copy **Client ID** and **Client Secret** values and save them to use later.
7. Go to **OAuth & Permissions** page.
8. Copy **OAuth Redirect URL** from PreCallAI and add it in Redirect URLs. Don't forget to save it after adding it by clicking **Save URLs** button!
9. Go to **Bot Token Scopes** and add `chat:write.customize` along with `chat:write` scope to enable the bot functionality.

::: warning HTTPS required!

Slack does **not** allow non-secure URLs in redirect URLs. Therefore, you will need to serve PreCallAI via HTTPS protocol.

:::

10. Paste **Client ID** and **Client Secret** values you have saved earlier and paste them into PreCallAI as **Consumer Key** and **Consumer Secret**, respectively.
11. Click **Submit** button on PreCallAI.
12. Now, you can start using the Slack connection with PreCallAI.
