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

# Connect Slack

> Connect a Slack workspace, authorize your Slack account, or set up your own Slack app.

Connecting Slack lets agents use tools in a workspace and run [Slack automations](https://docs.labelbox.com/recursion/automations.md). **Slack · User** lets agents read and, when selected, post as your Slack member instead; it has no Slack event source.

> [!NOTE]
>
> Connecting the default Slack app or Slack · User requires the organization developer or admin role. Slack · User authorization must be started by a signed-in member, not an API key. Setting up your own Slack app requires an organization admin. You also need permission to authorize the app in the Slack workspace.

## Connect Slack

From **Integrations → Add integration → Slack**, choose the workspace and approve the installation. Choose the connection's tools, then grant it in the agent's **Integrations** section. Under **Access level**, choose **Read and reply in the triggering thread** (`trigger_thread`) for sessions started from a Slack thread, or **Use Slack tools across the workspace** (`workspace_tools`) for tools in any channel the bot can reach. See [Grant apps to an agent](https://docs.labelbox.com/recursion/integrations.md#grant-apps-to-an-agent).

The message deletion tool is opt-in: select it on the connection and again for each agent that needs it. `slack_update_message` and `slack_delete_message` change only messages the agent posted. `slack_update_canvas`, included by default with **Use Slack tools across the workspace**, replaces the whole content of a canvas tabbed in a channel the bot has joined, including people's edits. Remove it from the connection or the agent if that isn't wanted.

## Connect your Slack account

Use **Slack · User** to let an agent read your conversations, including DMs, and optionally post as you. The connection belongs to the organization where you add it, whether personal or shared.

> [!WARNING]
>
> Members with the relevant organization role, and API keys with that role, can grant this connection to agents and change its selected tools, including enabling posting as you. Anyone who can trigger an agent with the connection, including a participant in a connected Slack channel, can ask it to read and share your private conversations and DMs. Text from other Slack participants can also steer an agent to copy private content through a posting tool, another outbound tool, or rendered output such as links and images. Use a personal organization when other members should not be able to configure agents with the connection; review the agent's triggers, tools, and transcript access before granting it. A personal organization does not make a Slack-triggered agent private.

1. In **Integrations → Add integration**, choose **Slack · User**. Sign in to Slack and authorize your member account in the intended workspace.
2. Choose the connection's tools. Posting as you requires selecting `slack_user_post_message` on the connection.
3. Open the agent's **Configuration → Integrations**, add the connection, and choose its tools. Select `slack_user_post_message` here too if the agent may post, then click **Use this access** and **Save new version**.
4. From the connection's row menu on **Integrations**, run **Test connection** before a session depends on it.

Connecting grants no access to an agent until you grant the connection. Slack · User creates no Slack event source and does not replace the bot connection used for automations. You can also grant it through a [vault](https://docs.labelbox.com/recursion/vaults.md#grant-an-integration-through-a-vault), but vault grants provide read tools only.

> [accordion] Slack User grant fields and MCP tools
>
> Slack · User uses provider ID `slack_user` and access level `user_tools`. Its provider reports `presetFixedAtAuthorization`, but there is no other level to switch to; change the connection's and agent's selected tools instead.
>
> For [API agent grants](https://docs.labelbox.com/recursion/agents.md#integration-grants-in-the-api), select `slack_user_post_message` in the grant's `tools` and on the connection to allow posting. Slack · User has no **tools via MCP** checkbox. Saving its grant in the console turns MCP tools back on; to stop the agent using this connection, remove its grant. See [Withhold integration tools](https://docs.labelbox.com/recursion/tools.md#withhold-integration-tools).
>
> If a deployment stops offering Slack · User, sessions skip its grant. Before saving a new agent version, remove its Slack · User grant and any `slack_user` entry in `disabledIntegrationMcpProviders`; a version that still names either cannot be saved until the integration is available again. Existing connections can still be disconnected.

## Test, reconnect, or disconnect Slack

For the Slack bot or a custom app, follow [integration recovery](https://docs.labelbox.com/recursion/integrations.md#reconnect-an-app) and the custom-app steps below. For Slack · User, use the test result to choose the recovery step.

### Test and reconnect your Slack account

**Active** describes the organization's connection, not whether Slack still accepts its authorization. If Slack revokes the shared authorization, the connection can remain **Active** while tests and tool calls fail. Read the test's failure rather than relying on the row's state. In API test results, use `ok` and `failure`; `state` can remain `active` with `ok: false`.

* **Reconnect** if the test says access was revoked or changed, or reports `token_revoked`, `invalid_auth`, `account_inactive`, `invalid_refresh_token`, or `invalid_grant`.
* **Test again later** for temporary failures such as `ratelimited`, `http_error`, a transport error, or `context deadline exceeded`.

From the connection's row menu, choose **Reconnect**. Slack · User goes directly to Slack rather than showing a **Continue to sign-in** dialog. Authorize the same Slack member and workspace; to use another account, add a separate connection. Reconnecting keeps the connection ID, selected tools, and agent grants. It clears previous verification and the saved test result, so run **Test connection** again to resume automatic daily checks.

> [accordion] Authorization shared across organizations
>
> Removing the member from a Recursion organization does not disconnect its Slack · User connection; someone in that organization must disconnect it.
>
> Revoking Recursion in Slack stops access in every organization until the member successfully adds or reconnects Slack · User in any organization. That restores access in every organization that has not disconnected. Disconnecting removes only that organization's access. The final disconnect also revokes the shared authorization at Slack. It does not uninstall Recursion's Slack app or disconnect the organization's Slack bot.

### Disconnect your Slack account

From the connection's row menu on **Integrations**, choose **Disconnect** and confirm. Agents and automations lose access through that connection. Adding the member again creates a new connection, so grant the new connection to agents. An organization that has disconnected is not restored by another organization's reauthorization.

An API disconnect normally returns `204 No Content`. It can instead return [`503 slack_user_revoke_failed`](https://docs.labelbox.com/recursion/errors) when revocation or local removal cannot be confirmed; retry the disconnect. If the retry returns `404 not_found`, the connection was already removed.

## Use your own Slack app

The regular **Slack** choice installs Recursion's app. Choose **Slack · custom app** when you administer a Slack app and want to select its bot token scopes. Create a new Slack app dedicated to this connection: its Events, Interactivity and any slash command request URLs will point to Recursion. An organization admin sets it up:

1. In your Slack app's **OAuth & Permissions**, choose the bot token scopes you need and enable token rotation. Do not add user token scopes. `users:read` is required to verify the installation and send platform replies; every Slack tool also needs it. For basic public channel use, try `app_mentions:read`, `channels:history`, `channels:read`, and `chat:write` in addition. You can choose fewer or different additional bot scopes; Recursion shows tools that need missing scopes as disabled.
2. In **Basic Information**, copy the **Client ID**, **Client Secret**, and **Signing Secret**. Create an app-level token with `authorizations:read`. In **Manage Distribution**, copy the **Sharable URL**. In Recursion, open **Integrations → Add integration → Slack · custom app → Configure app**, enter those values, then click **Save app configuration**. Keep the Signing Secret limited to trusted maintainers: anyone with it can produce requests that appear to come from your Slack app, including approval clicks.
3. Copy the **Redirect URL** shown by Recursion after saving into Slack's **OAuth & Permissions → Redirect URLs** and save. Then click **Continue to Slack**, choose the workspace, and approve the installation. Recursion receives the bot and rotating refresh tokens automatically. If you leave before authorizing, click **Finish setup** on the pending connection to see the redirect URL again.
4. After authorization, open the connection's **App setup URLs**. Put its **Events API request URL** in Slack's **Event Subscriptions → Request URL**, subscribe to `app_uninstalled`, `tokens_revoked`, and the bot events your automations need, and save. Put the **Interactivity request URL** in **Interactivity & Shortcuts → Request URL** and save. The URLs must be reachable by Slack over public HTTPS.
5. Optional, for slash commands and shortcuts: add the `commands` bot scope and `chat:write` (to post where they are used), plus `im:write` and the app's Messages tab if runs may start in a person's DM with the app (follow-up replies there also need the [DM setup](https://docs.labelbox.com/recursion/automations.md#make-an-agent-available-in-slack-dms): `im:history`, `im:read` and the `message.im` event), then choose **Update bot scopes** on the connection. Create each slash command in Slack's **Slash Commands**, using the connection's **Slash command request URL** for every command. Create shortcuts in **Interactivity & Shortcuts**; they use the Interactivity request URL, and each has a callback ID (up to 255 characters, matched exactly) that a trigger can name. See [Slash commands and shortcuts](https://docs.labelbox.com/recursion/automations.md#slash-commands-and-shortcuts).
6. Choose the connection's tools, [grant it to an agent](https://docs.labelbox.com/recursion/integrations.md#grant-apps-to-an-agent), and create [Slack automations](https://docs.labelbox.com/recursion/automations.md).

A custom Slack app connects to one Recursion organization and one Slack workspace. Use a separate app for another organization because Slack gives each app one Events API request URL.
To move the app to another workspace, disconnect its Recursion connection and uninstall it from the old workspace. Set it up again for the new workspace, then update the Slack request URLs (Events, Interactivity and every slash command), agent grants, and automations to use the new connection and event source.
If that app already has a connection or pending setup in your organization, open the existing connection. Finish a pending setup or use **Update bot scopes** to change scopes; disconnect the existing connection first to replace its credentials.
Reauthorizing a custom Slack app requires an organization admin in the console; an API key cannot start that flow.

> [accordion] Bot scopes needed by each Slack tool
>
> Every tool needs `users:read` for installation verification. The table lists additional bot scopes. “History” means at least one of `channels:history`, `groups:history`, or `im:history`; “channel list” means both `channels:read` and `groups:read`.
>
> | Tool | Additional bot scopes |
> | - | - |
> | `slack_read_thread` | History |
> | `slack_read_channel` | `channels:history` or `groups:history` |
> | `slack_read_file` / `slack_read_image` | `files:read` and history |
> | `slack_lookup_user` | None |
> | `slack_lookup_channel` | Channel list |
> | `slack_read_user_profile` | `users.profile:read` |
> | `slack_post_message`, `slack_post_blocks`, `slack_update_message`, `slack_delete_message` | `chat:write` and history |
> | `slack_prepare_file_upload`, `slack_complete_file_upload` | `files:write`, `files:read`, and history |
> | `slack_create_canvas` | `canvases:write` and channel list |
> | `slack_update_canvas` | `canvases:write`, `canvases:read`, `files:read`, and channel list |
> | `slack_read_canvas` | `canvases:read`, `files:read`, and channel list |
>
> Workspace-granted posts, updates, and completed uploads with Slack file images also need `files:read` and the relevant `channels:read` or `groups:read` scope. Text-only posts do not. The channel picker needs `channels:read` for public channels and `groups:read` for private channels. `@handle` and user-group tags in `slack_post_message` and `reply` need `usergroups:read`; without it they post as plain text. A custom reply name or picture needs `chat:write.customize`. Choose **Update bot scopes** to add these to an existing custom app connection.

> [accordion] Change a custom app's bot scopes
>
> Choose **Update bot scopes** on the existing connection, paste the current Sharable URL, and authorize the app in the same workspace. Reinstalling directly from Slack's app settings can revoke the Recursion connection when refreshed scopes differ. To remove existing grants, uninstall the app in Slack first, then choose **Update bot scopes** on the revoked connection. Recursion preserves the connection id used by agents and automations.
>
> Private-channel message triggers need `groups:history`, and DM message triggers need `im:history` and `chat:write` so the app can reply. Buttons that start automations need `channels:read`, `groups:read`, or `im:read` in public channels, private channels, or DMs, respectively, to verify Slack Connect sharing; without the matching scope, the click is ignored. A feedback card or comment still posts without that scope, but thumbs-down wakes and scheduled-report comment investigations are skipped. Report investigations need the matching read scope for both the report channel and the feedback collection channel; if either is shared, the trigger must also allow shared channels. Slash commands and shortcuts need `commands`; to check sharing they need the same read scopes, and without them only triggers that allow shared channels answer. A slash command used in a one-to-one DM reads no sharing: it needs no read scope and no `allowSharedChannels`, because it runs in the person's own DM with the app with only their words. Starting a run in a person's DM needs `im:write` and the app's Messages tab. The **Stop** button on a live status and **Continue** on a stop note need `channels:read` and `groups:read` in a channel (a C id can be public or private), `groups:read` in a private channel with a G id, and `im:read` in a DM; without them, the status shows no Stop and the note no Continue: stop the session from Recursion, and continue it from Recursion or with the mention the note names.

> [accordion] Rotate credentials or recover a rejected custom app
>
> To rotate the Signing Secret, Client Secret, or app-level token, disconnect the integration and set it up again. This creates a new connection: replace the Events, Interactivity and slash command request URLs in Slack, grant the new connection to agents again, and select its new event source in each automation's Slack trigger.
>
> When a custom app shows **Credentials rejected**, **Finish setup**, **Reconnect**, and **Update bot scopes** are unavailable; disconnect it and set it up again with current credentials.
>
> For an active custom app, **Test failed** shows a reauthorization step instead of the failure reason. Run **Test connection** again from the row menu; if it keeps failing, choose **Update bot scopes** or ask an organization admin to reauthorize the app.
>
> If Slack rejects credentials during setup, **Disconnect** the pending connection and start again with corrected values. A rejected Client ID or Client Secret also prevents a later token refresh; disconnect and set up the app again with current credentials. If Slack rejects the app-level token after an event arrives, the connection check records the failure and new Slack messages stop reaching automations and sessions; bot tools and button clicks can still work. Disconnect the old connection, set up the app again with a valid token and `authorizations:read`, then update Slack's Events, Interactivity and slash command request URLs, grant the new connection to agents again, and select its new event source in each automation's Slack trigger. A bot-only **Test connection** before an event cannot verify the app-level token. A custom app's credential failure remains in **Status** until the app is set up or authorized again; a later manual or automatic connection check does not replace it.
>
> If Slack cannot verify the Events API request URL after authorization, check the Signing Secret first. A wrong Signing Secret requires disconnecting the connection, setting up the app again with the correct value, authorizing again, and replacing the Events, Interactivity and slash command request URLs in Slack.
