How to Connect Slack to OpenClaw
A complete guide to integrating Slack with OpenClaw using ClawLink. Send messages, manage channels, and automate your team communication.
What You Can Do
Once connected, your OpenClaw agent can:
- Send messages - Post to channels or DMs
- Read messages - Fetch recent messages from channels
- Manage channels - Create channels, manage settings
- React to messages - Add emoji reactions
- Thread replies - Reply in message threads
Prerequisites
- A Slack workspace where you have admin rights (or can create apps)
- A Slack account
Step 1: Create a Slack App
- Go to api.slack.com/apps
- Click Create New App
- Choose From scratch
- Select your workspace
- Name it “ClawLink”
Step 2: Add Bot Token Scopes
- Go to OAuth & Permissions
- Under Bot Token Scopes, add:
chat:write - Send messages
channels:read - List channels
channels:history - Read channel messages
groups:read - Read private channels
users:read - List users
reactions:write - Add reactions
Step 3: Install App to Workspace
- Scroll to the top of OAuth & Permissions
- Click Install to Workspace
- Review permissions and click Allow
Step 4: Get Your Bot Token
After installation, you’ll see a Bot User OAuth Token starting with xoxb-
Copy this token!
Never share this token publicly. It allows full access to your bot.
Step 5: Connect to ClawLink
- Go to your ClawLink dashboard
- Navigate to Integrations
- Find Slack and click Connect
- Paste your Slack Bot Token
- Click Save
Example Usage
Send a Message
“Post in #general that the daily standup is starting in 5 minutes.”
Read Channel Messages
“What were the main discussion points in #engineering yesterday?”
Send a DM
“Send a DM to @john about the new feature launch.”
Create a Thread
“Reply to the deployment notification in #devops with ‘Deploy successful!’”
API Reference
| Function | Description |
|---|
slack_send_message | Send a message to a channel or user |
slack_read_messages | Read recent messages |
slack_create_channel | Create a new channel |
slack_add_reaction | Add emoji reaction to a message |
Troubleshooting
”Invalid token”
- Make sure you copied the Bot User OAuth Token (starts with
xoxb-)
- Not the signing secret or webhook URL
”Channel not found”
- Make sure the bot is added to the channel
- Use channel ID instead of name
”Permission denied”
- Verify all required scopes are added
- Reinstall the app after adding scopes