packages/kilo-docs/pages/kiloclaw/chat-platforms/slack.md
This page covers everything you need to use KiloClaw with Slack: connecting your bot, controlling who can DM it, and adding it to channels.
{% youtube url="https://youtu.be/Q5bt-qH-_pY" title="Slack Setup Guide" caption="How to connect your KiloClaw agent to Slack" /%}
Create a Slack app from the OpenClaw manifest and link it to your KiloClaw dashboard.
/kiloclaw)You need two tokens from Slack:
App-Level Token
connections:write scopexapp-)Bot User OAuth Token
xoxb-)xapp- app-level tokenxoxb- bot user OAuth tokenBy default, KiloClaw can respond to any DMs and will not respond in Slack channels, even if added.
By default, KiloClaw will respond to DMs from any user in Slack.
Your user ID starts with U (e.g. U12345678).
Tell your KiloClaw agent:
"Set my Slack DM policy to allowlist with my user ID
U12345678and disable group/channel responses."
Or configure it directly in the OpenClaw Control UI config:
{
"channels": {
"slack": {
"dmPolicy": "allowlist",
"allowFrom": ["U12345678"],
"groupPolicy": "disabled"
}
}
}
This allows only your user ID to DM the bot and blocks it from responding in any channels.
By default, KiloClaw will not respond in Slack channels, even if added. To have KiloClaw participate in a Slack channel:
/invite @YourBotName (use whatever name you gave your app)Channel IDs are more reliable than names. To find a channel's ID:
C (e.g. C01234567)Tell your KiloClaw agent (via DM):
"Allow responses in Slack channel
C01234567. Require an @mention to respond."
Or configure it directly:
{
"channels": {
"slack": {
"groupPolicy": "allowlist",
"channels": {
"C01234567": {
"requireMention": true
}
}
}
}
}
Set requireMention: false if you want the bot to respond to every message in the channel without needing an @mention.
{% callout type="tip" %}
You can restrict which channel members can trigger the bot by adding a users allowlist inside the channel config entry. See the OpenClaw Slack documentation for advanced access control options.
{% /callout %}