Skip to content

Slack Setup

The Slack adapter (BoltSlackAdapter) uses @slack/bolt in Socket Mode — no public webhook URL required.

  1. Go to api.slack.com/appsCreate New AppFrom scratch
  2. Name it and pick the workspace

Under OAuth & Permissions → Bot Token Scopes, add:

  • chat:write
  • app_mentions:read
  • channels:history
  • im:history
  • files:read
  1. Sidebar → Socket Mode → toggle Enable
  2. When prompted, generate an App-Level Token with the connections:write scope. Save the xapp-… token

OAuth & Permissions → Install to Workspace. After install, copy the Bot User OAuth Token (xoxb-…).

The workspace ID looks like T0XXXXXXX. You can grab it from slack.com/account/team in the URL.

Open Settings → Messaging → Slack:

  1. Paste both tokens (xoxb-… and xapp-…) — the UI encrypts before persisting
  2. Add the team ID to Allowed team IDs (gateway.slack.allowedTeamIds)
  3. Enable Slack (gateway.slack.enabled = true)
  4. Enable the global Messaging Gateway (gateway.enabled = true)
  1. In any allowed workspace, DM the app or @-mention it in a channel
  2. It replies with a 6-digit pairing code
  3. Approve the binding in Settings → Messaging → Bindings