← Back to Knowledge Base

How to Connect Slack to OpenClaw

Link your Slack workspace to OpenClaw to receive messages and control your agent from Slack channels.


Slack lets your OpenClaw agent reply in DMs and help with team workflows. This guide follows the exact setup flow in Molten.Bot.

Before You Start

  • A running OpenClaw workspace in Molten.Bot
  • A Slack workspace where you can create apps
  • About 5-10 minutes to complete setup

Step 1: Open Settings

In your workspace, use the bottom dock and click the Settings icon.

Bottom dock in Molten.Bot with the Settings icon selected.
Open Settings from the bottom dock.

Step 2: Open Channel Management

In Settings, open Channel Management, then find Slack and click Configure.

Channel Management panel in Molten.Bot showing Slack with a Configure button.
Go to Channel Management and click Configure on Slack.

Step 3: Configure Slack

In the Slack configuration dialog, complete the setup steps shown in the UI:

  1. Go to api.slack.com/apps and create a new app (from scratch).
  2. In OAuth & Permissions, add scopes: chat:write, app_mentions:read, and im:history.
  3. Install the app to your workspace and copy the Bot Token (starts with xoxb-).
  4. Enable Socket Mode and create an App Token (starts with xapp-).
  5. In Event Subscriptions, enable events and add: message.im and app_mention.
  6. Paste both values into Bot Token and App Token.
  7. Keep Enable this channel turned on, then click Save and restart now.
Configure Slack dialog in Molten.Bot with setup steps, Bot Token field, App Token field, and Save and restart now button.
Paste both Slack tokens, then save and restart.

Test Your Bot

  1. Open Slack and DM your bot (or mention it in a channel it is invited to).
  2. Send a message like Summarize today's unread messages.
  3. Confirm your OpenClaw agent responds.

Troubleshooting

  • No response: Re-check both token values in Molten.Bot.
  • Only works sometimes: Confirm Event Subscriptions include message.im and app_mention.
  • Connection error: Verify Socket Mode is enabled and the App Token is valid.

Need help? Check the OpenClaw documentation or join the community Discord.