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

# Connect Slack

> Put your squad or one teammate in Slack as an app that answers direct messages and @mentions in channels.

Each Slack app is a direct line to one teammate. People on the app's list can send it direct messages. When channels are on, the app also answers when someone @mentions it in a channel that it was invited to. The app connects from your squad's computer with Slack's Socket Mode, so nothing needs a public URL.

This page is about the Slack app that you chat with. A note at the bottom of the **Slack** tab says so too: "Slack shows up in two places on purpose. Here, you connect the Slack you talk to your teammates in. Under Apps, you give your teammates Slack as a tool they can act with." To give teammates Slack as a tool for their work, connect Slack on the **Apps** page. See [Connect apps](https://squad.so/docs/integrations.md). For how channels compare, see [Talk to your squad from Telegram, Discord, or Slack](https://squad.so/docs/channels.md).

## Before you start

* You need permission to create and install apps in your Slack workspace.
* Get your Slack member ID. In Slack, open your profile, select **⋯** (More), and select Copy member ID. The ID starts with U.

## Open the Slack screen

Select **Settings** at the bottom of the sidebar, then **Apps**, then the **Slack** tab. You can also press ⌘K (Ctrl+K on Windows) and type Slack.

The owner and Administrators can open it. A Collaborator or a Viewer cannot.

## Connect an app

**1. Choose who answers**

On the **Put a teammate in Slack** card, in **Who is this app?**, select **The whole squad (your chief of staff answers)** or one teammate.

**2. Copy the manifest**

Select **Copy the @Squad manifest**. If you selected a teammate, the button shows the teammate's name instead of Squad. Slack uses this name for the app. The button shows **Copied** when the manifest is copied.

**3. Start a new Slack app**

Select **Open Slack apps**, or open api.slack.com/apps, and select Create New App.

**4. Paste the manifest**

Select From a manifest, pick your Slack workspace, and paste the manifest.

**5. Create the app**

Create the app.

**6. Generate the app-level token**

In the app's Basic Information page, under App-Level Tokens, generate a token with the `connections:write` scope.

**7. Paste the app-level token**

On the Squad **Slack** tab, paste the token into **Generate the app-level token**. It starts with `xapp-`.

**8. Install the app**

In the Slack app settings, open Install App and select Install to Workspace.

**9. Paste the bot token**

Copy the Bot User OAuth Token and paste it into **Install it to your Slack workspace**. It starts with `xoxb-`.

**10. Add your member ID**

Under **Add yourself and connect**, type your Slack member ID.

**11. Connect**

Select **Connect app**.

The page shows "Connected @" and the app name and your Slack workspace, then "DM it in Slack to say hello."

The manifest sets everything that the app needs, including Socket Mode and the permissions. It cannot set an icon. To give the app an icon, add one on the app's Basic Information page in Slack.

> [!WARNING]
>
> Copy both tokens from the same Slack app. Squad refuses tokens from two different apps.

### Check that it works

* The app shows as a card with its name. A running app shows no status. **Offline** means the app is not running. While your squad finishes its current work, a new app shows "Your squad starts answering in Slack once it finishes what it’s working on." instead. See [How a channel works](https://squad.so/docs/channels.md#how-a-channel-works).
* On the card, select **Verify connection**. A green message says that the app has every permission Squad needs.
* Send the app a direct message in Slack. The teammate answers.
* In a channel, type `/invite @` followed by the app name, then @mention the app. The teammate answers.

## Set up the app

Each app card has these controls:

| Control | What it does |
| - | - |
| **Answered by** | The teammate that answers this app. The default is **Your chief of staff**. |
| **Who can message it** | The Slack member IDs that can send the app direct messages. Everyone else is refused. |
| **Channels** | A switch. On by default. The app answers when someone @mentions it in a channel that it was invited to. When off, the app answers direct messages only. |
| **Reply in threads** | On by default. Answers go in a thread under the message that asked. The card names channel mentions, but the switch covers channels, groups, and direct messages together. Each thread keeps its own working context. When off, answers post as new messages. |
| **Verify connection** | Checks the app's tokens and permissions, and tells you what is missing. |
| **Remove** | Removes the app. Select **Really remove? Messages stop once no teammate is working** to confirm, or **Keep it** to cancel. |

While a change saves, the card shows **Saving…**. A switch moves only after your squad's computer has the change.

To add a person to **Who can message it**:

1. Ask the person for their Slack member ID.
2. Type the ID into the field under **Who can message it**.
3. Select **Add**.

A list can hold up to 50 people. See [Limits and defaults](https://squad.so/docs/limits-and-defaults.md).

## Known limits

* In channels, the app does not check its list. Anyone in a channel where the app was invited can @mention it and get an answer. If only the people on the list may use the app, turn off the **Channels** switch.
* The list cannot be empty. You can remove yourself when someone else is on the list. Squad does not keep you on a Slack list.
* The first app that you connect is the primary app. Its card shows **Primary** next to the app's @name. A primary app card without a bot name is titled **Primary app** and shows no **Primary** mark. On Squad for Mac, that card shows **Primary** too. You cannot remove the primary app while other apps are connected. Remove the other apps first.
* The card has no field to replace a token. To use new tokens, see the troubleshooting entry below.
* If the card says that your squad's runtime limits the app to specific channels, the limit was set on your squad's computer. Ask your chief of staff to change it.

## Troubleshooting

**The teammate replies "⚠️ I hit a problem before I could finish replying." and a cause.**
Cause: the run failed, for example because of a usage limit or a model that your AI account cannot use. The cause after the first sentence says what went wrong, for example "The model \[model] is not available on the ChatGPT account I use. Choose another model for me, or connect a ChatGPT account that has it." Squad sends that only after your other ChatGPT accounts and the models under **When it can’t answer** could not answer. Fix: fix the cause that the reply names, then send your message again. See [Chat failure messages](https://squad.so/docs/agent-stuck.md#chat-failure-messages).

**The teammate replies with a sentence about Z.AI, for example "⚠️ Z.AI turned this away because too many teammates were working at the same time. Send it again in a minute."**
Cause: your squad uses a Z.AI GLM Coding Plan, and Z.AI refused the run under one of its plan's limits: too many requests at once, a used-up usage limit, an expired plan, a model that the plan does not include, or its Fair Usage Policy. Fix: do what the sentence says. See [Z.AI's own limits](https://squad.so/docs/agent-stuck.md#zai-limits).

**The app receives messages but does not reply.**
Cause: the app is missing permissions. Fix: select **Verify connection** and follow the steps that it shows. You add the missing scopes under OAuth & Permissions in the Slack app settings, then reinstall the app.

**Verify connection says Slack rejected the bot token or the app-level token.**
Cause: the token was reset, or the app was reinstalled and got a new token. Fix: connect the app again with the new tokens in the **Connect an app** form. Squad replaces an app whose old token Slack no longer accepts.

**Squad says the app is already connected to this squad.**
Cause: the app's current tokens still work, so the app is connected. Fix: nothing to do. To change to other tokens, remove the app and connect it again.

**Squad says the tokens belong to two different Slack apps.**
Cause: you copied the tokens from two apps. Fix: copy the app-level token from Basic Information and the bot token from Install App of the same app.

**Squad says that is the bot's own ID.**
Cause: you typed the app's member ID. Fix: type your own member ID from your Slack profile.

**The error says this is the primary Slack app and other apps are still connected.**
Cause: the primary app is removed last. Fix: remove the other apps first, then remove this one.

### Messages when you connect an app

| Message | Cause | Fix |
| - | - | - |
| "That doesn’t look like a Slack bot token — it starts with xoxb-." | The bot token field has another token. | Paste the Bot User OAuth Token from Install App. |
| "That doesn’t look like a Slack app-level token — it starts with xapp- (Basic Information → App-Level Tokens)." | The app-level token field has another token. | Paste the app-level token from Basic Information. |
| "Slack member IDs start with U, e.g. U0123ABCDEF." | The member ID is not valid. | Copy your member ID from your Slack profile. |
| "Slack rejected that bot token — reinstall the app to your workspace and paste the fresh xoxb- token." | The bot token is old or was revoked. | Reinstall the app, then paste the new bot token. |
| "That app-level token can’t open connections — generate it with the connections:write scope." | The app-level token has no `connections:write` scope. | Generate a new app-level token with that scope. |
| "Slack rejected that app-level token — make sure Socket Mode is ON and paste the xapp- token from Basic Information → App-Level Tokens." | Socket Mode is off, or the token is wrong. | Turn on Socket Mode in the Slack app settings, then paste the token again. |
| "Couldn’t reach Slack to verify the token — try again." | Squad could not reach Slack. | Wait a moment, then try again. |
| "This workspace has several Slack apps from an earlier setup and none of them is the primary. Remove the apps you don’t need in Settings, then connect this one." | Old apps are left over, and none is the primary app. | Remove the apps that you do not need, then connect again. |
| "Couldn’t check your existing Slack apps to make sure this one isn’t already connected. Try again in a moment." | Squad could not check the apps that are already connected. | Try again in a moment. |
| "Couldn’t connect the app." | The connection did not go through. | Try again. |

### Results of Verify connection

| Result | What to do |
| - | - |
| A green message that starts with "Connected" | Nothing. The app has every permission it needs. |
| "The Slack app is missing a permission Squad needs to reply:" (or "missing permissions") followed by the scopes | Follow the numbered steps below the message: add the scopes under OAuth & Permissions, reinstall the app, then select **Verify connection** again. **Open Slack app settings** opens your Slack apps. |
| "Slack rejected the app’s bot token (…)" | Copy a new Bot User OAuth Token and connect the app again. |
| "Slack rejected the app-level token (…), so the live connection can’t open." | Create a token with the `connections:write` scope and connect the app again. |
| "The two tokens belong to two different Slack apps, …" | Copy both tokens from the same app and connect it again. |
| "Slack couldn’t be reached from your squad’s computer just now. That is usually momentary." | Select **Verify connection** again. |
| "Couldn’t verify right now." | Select **Verify connection** again in a moment. |

When Slack rejects the bot token, the Verify message says to remove this app here and connect it again with the new token. The card has no token field. Use the **Connect an app** form, as the troubleshooting entry about rejected tokens above describes.

For list messages and messages that all channel screens share, see [Messages on every channel screen](https://squad.so/docs/channels.md#messages-on-every-channel-screen). The list messages are "Slack member IDs start with U, e.g. U0123ABCDEF." and, when you point to the x on the last ID, "Keep at least one person; an empty list answers nobody."


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