First, the honest part: is Slack an OpenClaw channel?
Slack is a native OpenClaw channel, and the documented setup uses Socket Mode — OpenClaw opens an outbound websocket to Slack, so no inbound public URL and no ngrok tunnel are required.
Most “OpenClaw + X” write-ups online get this wrong: they paste a channels: block for a tool OpenClaw has no adapter for. OpenClaw accepts that key silently (its config schema allows extra channel keys) and then nothing happens — no token, no webhook, no error. That is the single most common reason a “connected” agent stays silent.
What you can actually build with Slack
- Answer questions in a support channel with the agent's replies threaded back to the asker
- Turn a Slack thread into a durable agent session with the thread as the unit of context
- Post a daily standup digest into a channel, from a cron you control
- Route escalations from Slack into Feishu or Telegram when the team spans time zones
- Give the bot an assistant view so people can open a private thread with it
How OpenClaw connects to Slack
With mode: "socket" OpenClaw holds one outbound websocket using your app-level token and authenticates as the bot with the bot token. That means the whole integration lives behind your firewall.
Whichever path you take, the agent still needs a personality and a job description. A bare API key tells OpenClaw it may call Slack; a SOUL.md tells it when to call it and what a good answer looks like. Skipping that step is why most integrations produce impressive demos and nothing else.
Credentials
SLACK_APP_TOKEN— app-level token (xapp-) created for Socket Mode with the connections:write scopeSLACK_BOT_TOKEN— bot user OAuth token (xoxb-) for the app's bot user
Setup
Step 1 — Create the Slack app with Socket Mode on
From the Slack app manifest, OpenClaw's own example manifest is the fastest path: enable bot_user, app_home and an assistant view, turn Socket Mode on, and set event subscriptions to the events you actually want (app_mention, message.im, message.channels).
Step 2 — Write the two tokens to the environment
Slack issues two different tokens and confusing them is the most common setup error. The xapp- token starts Socket Mode; the xoxb- token signs API calls as the bot. Neither belongs in openclaw.json.
Step 3 — Point OpenClaw at them and restart
Patch channels.slack with the two SecretRefs, restart the gateway, and invite the bot to the channel you want it in (/invite @yourbot).
Copy-paste config
{
channels: {
slack: {
enabled: true,
mode: "socket",
appToken: {
source: "env",
provider: "default",
id: "SLACK_APP_TOKEN",
},
botToken: {
source: "env",
provider: "default",
id: "SLACK_BOT_TOKEN",
},
},
},
}
The raw API call underneath
Slack's Web API is a plain bearer-token API, so the agent can also read workspace data directly:
curl -s https://slack.com/api/users.list \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
| head -c 200
Gotchas that cost people an afternoon
- xapp- vs xoxb-. Swapping the two produces a channel that connects and then fails every message with
invalid_auth. Check the prefix before you restart anything. - Socket Mode needs a paid plan in some workspaces, and it counts against a daily connection limit — a long-lived OpenClaw instance holds one connection open per workspace.
- The bot must be invited to the channel. A workspace-level install is not enough;
/invite @yourbotinside the target channel is what grants access. - Event subscriptions are opt-in per event. Unsubscribing from
message.channelssilently stops channel replies while DMs keep working — which reads as “it half works”. - Thread replies need the thread's timestamp. Posting into a thread without
thread_tscreates a new top-level message instead of answering in place.
FAQ
Do I need a public URL for Slack?
No, with Socket Mode. If you switch to HTTP event delivery you do need one, plus request signing with your signing secret.
Can the agent read private channels it was invited to?
Yes, but only with the right scopes (channels:history, groups:history). Keep those scoped narrowly and never on a workspace-wide install.
How do I keep one agent per channel?
Use channel routing so each channel maps to its own session and agent, then give each agent a different SOUL.md personality.
Where to start
Three paths, cheapest first. The free pack is the fastest way to see the whole agent workflow end to end; the bundle is where the multi-channel setup patterns live.
🔥 Ready to Build Your AI Agent?
SOUL.md Mega Pack Complete Bundle ($29) Get SOUL.md Mega Pack → Download 5 Free TemplatesBefore you wire anything up, work through the free deployment checklist — it is the rollout order that keeps a half-configured agent from eating your quota.