Slack bot quickstart
Six steps from Slack app to a working OpenClaw bot in your workspace
Six steps from Slack app to a working OpenClaw bot in your workspace
This is the fast path for Slack workspaces—Socket Mode means you usually do not open inbound firewall ports on the Gateway. Channel policies, streaming replies, and advanced Bolt options are in the full Slack channel guide. Confirm exact config keys in official docs.
Time: about 15 minutes if OpenClaw is already installed. Running 24/7? See VPS hosting or managed hosting.
Slack assistant threads (beta): Assistant view, suggested prompts, and thread-scoped sessions may ship in beta trains ahead of stable—confirm on GitHub Releases (current beta: v2026.6.6-beta.*). Stable v2026.6.5 covers standard bot install (DMs, mentions, Socket Mode). For pre-release features, use openclaw update --channel beta and see Releases → beta.
OpenClaw) and pick your workspace.chat:write — send messagesapp_mentions:read — respond to @mentionsim:history, im:read, im:write — direct messagesAdd channel scopes later if the bot must read public channels—see the full Slack guide.
Socket Mode avoids exposing a public HTTP URL—good for home labs and many VPS setups.
connections:write.xapp-).xoxb-...).During openclaw onboard, enable Slack and paste bot token and app token when prompted—or add under channels.slack in configuration (see Slack reference for JSON shape).
Keep DM policy on pairing until you have reviewed security basics.
openclaw gateway start
openclaw doctor
doctor should report Slack healthy. For always-on bots, run the Gateway on a small VPS or managed host—pick a region close to you and your LLM API.
hello. With pairing enabled, approve: openclaw pairing list slack then openclaw pairing approve slack <code> (pairing guide).Recent releases improve Slack streaming replies—see releases after upgrades.
| Symptom | Likely cause | Fix |
|---|---|---|
| Bot never replies in DM | Messages Tab off / missing scopes | Enable App Home; add im:* scopes; reinstall |
| not_authed / invalid_auth | Wrong or revoked token | Reinstall app; update xoxb token in config |
| Socket Mode disconnects | Bad xapp token or Gateway down | Regenerate app token; restart Gateway; check logs |
| Works in DM, not in channel | Bot not invited / missing mention scope | /invite @bot; add app_mentions:read; reinstall |
| “Sending messages to this app has been turned off” | App Home Messages Tab disabled | Slack app → App Home → enable Messages Tab |
| Only pairing messages | User not approved | pairing approve |
| Enterprise Grid / multiple workspaces | Installed in wrong workspace | Reinstall to target workspace; check token workspace ID |
More detail: Slack guide · troubleshooting