Slack takes a bit more clicking than Discord or Telegram, but the flow is linear. You'll need a Slack workspace where you have permission to install apps.
1. Create the app
- Go to api.slack.com/apps → Create New App → From scratch.
- Name it (e.g. your agent's name).
- Pick your workspace → Create App.
2. Enable Socket Mode
Socket Mode lets the bot connect via WebSocket — no public HTTPS endpoint required.
- Left sidebar → Socket Mode → toggle Enable Socket Mode ON.
- When prompted, create an App-Level Token with scope
connections:write. - Copy the token — starts with
xapp-…. Save it.
3. Add bot scopes
- Left sidebar → OAuth & Permissions.
- Scroll to Bot Token Scopes, add:
app_mentions:readchat:writechannels:historyim:historyim:write
4. Enable event subscriptions
- Left sidebar → Event Subscriptions → toggle Enable Events ON.
- Under Subscribe to bot events, add
app_mentionandmessage.im. - Save changes.
5. Install to workspace
- Left sidebar → Install App → Install to Workspace → Allow.
- Copy the Bot User OAuth Token — starts with
xoxb-…. Save it.
6. Run sento init
npx sentoagent init
Pick Slack. Paste both tokens when prompted:
SLACK_APP_TOKEN=xapp-…SLACK_BOT_TOKEN=xoxb-…
Access control
~/.claude/channels/slack/access.json:
{
"dmPolicy": "allowlist",
"allowFrom": ["U01ABCD1234"],
"groups": {
"C01EFGH5678": { "requireMention": true, "allowFrom": [] }
}
}
allowFromholds Slack user IDs (start withU).groupskeys are channel IDs (start withCfor public,Gfor private).
Common gotchas
- No response in DMs:
im:historyandim:writescopes missing. Add them and reinstall the app. - No response when mentioned:
app_mentions:readmissing, orapp_mentionevent not subscribed. not_allowed_token_typeerror: you pasted the tokens in the wrong order —xappis the app token,xoxbis the bot token.