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

# Connect Slack

> Let your CustomerGPT chatbot answer direct messages and @mentions in your Slack workspace.

Once connected, your chatbot answers people who message it directly in Slack or @mention it in a channel. It replies in a thread, from the same knowledge it uses on your website.

Slack is set up on the **Integrations** page, available on the Growth plan and above. You create a small Slack app in your workspace, then give CustomerGPT its token.

## 1. Create the Slack app

1. Go to [api.slack.com/apps](https://api.slack.com/apps), click **Create New App**, choose **From scratch**, name it after your chatbot, and pick your workspace.
2. Under **OAuth & Permissions → Scopes → Bot Token Scopes**, add `app_mentions:read`, `chat:write`, and `im:history`.
3. Under **App Home**, turn on the **Messages Tab** and allow users to send messages from it.
4. Click **Install to Workspace** and approve.

## 2. Connect it to CustomerGPT

1. In CustomerGPT, select your chatbot, open **Integrations**, and click **🔌 Configure** on **Slack Connect**.
2. Paste the **Bot User OAuth Access Token** from **OAuth & Permissions** in Slack. It starts with `xoxb-`.
3. Paste the **Signing Secret** from **Basic Information → App Credentials** in Slack.
4. Copy **Your Slack Event Webhook Link**, then click **Save Settings**.

## 3. Send Slack's events to CustomerGPT

1. Back in your Slack app, open **Event Subscriptions** and turn on **Enable Events**.
2. Paste the webhook link into **Request URL**. Slack checks it and shows **Verified**.
3. Under **Subscribe to bot events**, add `app_mention` and `message.im`.
4. Click **Save Changes**. If Slack asks you to reinstall the app, do so.

## Test it

Open a direct message with the app in Slack and ask a question, or invite the app to a channel with `/invite @YourApp` and @mention it. The answer arrives in a thread.

## How it works

* **One conversation per thread.** Each Slack thread becomes a conversation in **Chat History**, tagged `slack`. A new message outside a thread starts a new conversation, so ask follow-up questions in the thread where the chatbot answered. Every answer counts toward your monthly messages, as on your website.
* **Text only.** The chatbot reads the text of messages and ignores messages from other bots.
* **Sales Automation applies.** If it's on, the chatbot qualifies and collects contact details in Slack too. See [Collect leads](https://customergpt.ai/docs/leads/collect-leads.md).
* **You can reply yourself.** Click **Take Over Chat** on the conversation in **Chat History** to pause the chatbot in that thread. The app posts **🎧 A team member has joined and will reply here.**, then posts each reply you send. Click **Release Chat to AI** to hand the thread back. See [Take over a conversation](https://customergpt.ai/docs/conversations/take-over-a-conversation.md).

## Pause or disconnect

Click **Pause Bot** on the **Slack Connect** card to stop answering without losing the settings, and **Activate Bot** to resume. To disconnect for good, uninstall the app from your Slack workspace.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.