---
title: "Connect Slack"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/messaging/connect-slack/
type: task
application: integration_slack
last_updated: 2026-12-03
commit: 97a56b9c7df7
---


Connect Slack when people in your Slack workspace should reach Sofi from direct messages, group messages and channels. This task is for administrators of both Servicely and the Slack workspace.

<Callout type="warning">
  **Changed in 2027.1.** The upgrade removes the Conversation application and its Slack endpoint. A Slack connection set up as a conversation provider stops working. Set it up again on the "Slack" messaging account as this page describes.
</Callout>

## Before you begin

- You need the `administrator` role in Servicely.
- Switch to the Administration workspace with the **Workspace** selector at the foot of the menu.
- The Slack Integration application is installed. It adds an inactive messaging account named "Slack" and an outbound token named "Slack bot token". See [Applications](page:platform/applications-and-licences/applications).
- You can create and install apps in the Slack workspace.
- At least one AI assistant lists Slack, or All, in **Channels**. See [AI assistants](page:sofi/assistants/ai-assistants).

## Steps

<Steps>
  <Step>
    In Slack, create an app for your workspace on the [Your Apps](https://api.slack.com/apps) page.
  </Step>
  <Step>
    In Slack, open the app's **OAuth & Permissions** page and add these scopes under **Bot Token Scopes**.

    | Scopes | Used to |
    | --- | --- |
    | `chat:write`, `im:write`, `mpim:write` | Send replies. |
    | `im:history`, `mpim:history` | Read direct and group messages. |
    | `app_mentions:read`, `channels:history`, `groups:history` | Read mentions and thread replies in channels. |
    | `users:read`, `users:read.email` | Match the Slack user to a Servicely user. |
    | `commands` | Receive the slash commands. |
  </Step>
  <Step>
    In Slack, open **Basic Information** and copy the **Signing Secret**.
  </Step>
  <Step>
    In Servicely, go to **Messaging & notifications → Accounts & channels → Messaging accounts**.

    <Image src="asset:screenshots/admin/messaging-connect-slack/messaging-accounts-menu.png">The Messaging accounts item in the Messaging & notifications menu.</Image>
  </Step>
  <Step>
    Open the "Slack" account. Paste the signing secret into **App secret** and set **Active** to Yes. **Outbound API token** already holds "Slack bot token".

    <Image src="asset:screenshots/admin/messaging-connect-slack/slack-account.png">The default Slack messaging account, with the Slack bot token in Outbound API token, App secret under App Registration, and Copy endpoint URL.</Image>
  </Step>
  <Step>
    Select **Copy endpoint URL**. It saves the account and copies the events endpoint to the clipboard.
  </Step>
  <Step>
    In Slack, turn on **Event Subscriptions** and paste the events endpoint into **Request URL**. Under **Subscribe to bot events**, add `app_mention`, `message.im`, `message.mpim`, `message.channels` and `message.groups`.
  </Step>
  <Step>
    In Slack, turn on **Interactivity & Shortcuts**. In its **Request URL**, enter the events endpoint followed by `/interactivity`.
  </Step>
  <Step>
    In Slack, install the app to the workspace and copy the **Bot User OAuth Token**, which starts with `xoxb-`.
  </Step>
  <Step>
    In Servicely, go to **Integrations → API access → System API outbound tokens** and open "Slack bot token".
  </Step>
  <Step>
    Paste the bot token into **Access Key / Token** and select **Save & stay**.

    <Image src="asset:screenshots/admin/messaging-connect-slack/slack-bot-token.png">The Slack bot token record, with the empty Access Key / Token field.</Image>
  </Step>
  <Step>
    Select **Test Connection**. It shows whether the bot token reaches Slack.
  </Step>
</Steps>

## Result

A direct message to the Slack app reaches Sofi, and the reply comes back in the same conversation. Sofi answers as the Servicely user who matches the Slack user, and tells an unmatched user that their account is not recognised. In a channel, people mention the app to start a thread. The first mention in a channel adds it to **Messaging & notifications → Accounts & channels → Channel Subscriptions** for an administrator to approve.

## Options

| To | Do this |
| --- | --- |
| Let people start a new conversation with a slash command | In Slack, create the commands `/newchat`, `/clear` and `/endchat` under **Slash Commands**. For each **Request URL**, enter the events endpoint followed by `/commands`. Typing one of them as a message works without this. |
| Match Slack users by email address | Leave **Email Fallback Enabled** at Yes under **Identity Matching**. When no user holds the Slack user's ID in **Slack ID**, Servicely matches by email address. |
| Stop storing the matched Slack identity | Set **Persist Matched Identity** to No. At Yes, Servicely stores the Slack identity on the user after an email match, so later messages match directly. |
| Replace the signing secret | After you regenerate it in Slack, paste the new value into **App secret**. Servicely rejects every request that is not signed with the current secret. |

## Related

- [AI assistants](page:sofi/assistants/ai-assistants)
- [Outbound notifications](page:messaging/outbound-notifications)
- [Outbound credentials](page:integrations/outbound-credentials)
- [Create a messaging account](page:messaging/create-a-messaging-account)
