Channel Setup - Slack
Official Links
Token Provisioning
- Create app from scratch in target workspace.
- Enable Socket Mode.
- Create app token (
xapp-...) withconnections:write. - Under OAuth & Permissions, add bot scopes:
chat:writechannels:historygroups:historyim:historympim:historyapp_mentions:read
- Install app to workspace and copy bot token (
xoxb-...). - Enable events and add bot events:
message.channelsmessage.groupsmessage.immessage.mpimapp_mention
Single-token Single-bot
channels:
slack:
enabled: true
bot_token: "xoxb-..."
app_token: "xapp-..."
# Optional global channel filter
# allowed_channels: ["C123ABC456"]
Multi-token Multi-bot
channels:
slack:
enabled: true
default_account: "main"
accounts:
main:
enabled: true
bot_token: "xoxb-main..."
app_token: "xapp-main..."
support:
enabled: true
bot_token: "xoxb-support..."
app_token: "xapp-support..."
# Optional per-account channel filter
# allowed_channels: ["C123ABC456"]
Notes:
- One bot identity = one
xoxb+ onexapppair. - Multi-account is useful for env separation (
prod,staging,support).
Verify
microclaw start- DM each bot
/skills - Test
@mentionin allowed channels.