Slack Setup
Slack Setup
Section titled “Slack Setup”The Slack adapter (BoltSlackAdapter) uses @slack/bolt in Socket Mode — no public webhook URL required.
1. Create a Slack app
Section titled “1. Create a Slack app”- Go to api.slack.com/apps → Create New App → From scratch
- Name it and pick the workspace
2. Add bot scopes
Section titled “2. Add bot scopes”Under OAuth & Permissions → Bot Token Scopes, add:
chat:writeapp_mentions:readchannels:historyim:historyfiles:read
3. Enable Socket Mode
Section titled “3. Enable Socket Mode”- Sidebar → Socket Mode → toggle Enable
- When prompted, generate an App-Level Token with the
connections:writescope. Save thexapp-…token
4. Install to workspace
Section titled “4. Install to workspace”OAuth & Permissions → Install to Workspace. After install, copy the Bot User OAuth Token (xoxb-…).
5. Find your team ID
Section titled “5. Find your team ID”The workspace ID looks like T0XXXXXXX. You can grab it from slack.com/account/team in the URL.
6. Configure Ptah
Section titled “6. Configure Ptah”Open Settings → Messaging → Slack:
- Paste both tokens (
xoxb-…andxapp-…) — the UI encrypts before persisting - Add the team ID to Allowed team IDs (
gateway.slack.allowedTeamIds) - Enable Slack (
gateway.slack.enabled = true) - Enable the global Messaging Gateway (
gateway.enabled = true)
7. Pair the binding
Section titled “7. Pair the binding”- In any allowed workspace, DM the app or @-mention it in a channel
- It replies with a 6-digit pairing code
- Approve the binding in Settings → Messaging → Bindings