OpenClaw Slack Integration: Complete Workspace Setup Guide
Complete guide to integrating OpenClaw with Slack. Learn how to create a Slack app, configure workspace permissions, set up channels, and use OpenClaw for team-wide AI assistance.
Quick Answer
Set up OpenClaw Slack integration: Create a Slack app, configure OAuth scopes and bot permissions, install to workspace, get bot token, run `openclaw integrations slack`, enter token, and start using in channels or DMs.
Introduction
Slack is the go-to platform for team communication in many organizations, and OpenClaw’s Slack integration brings powerful AI assistance directly into your workspace. Whether you need help with email management, calendar coordination, or quick information retrieval, OpenClaw can assist your entire team.
This guide covers everything you need to integrate OpenClaw with Slack, from creating a Slack app to configuring team-wide usage.
For other chat app integrations, see our guides:
Why Slack?
Slack offers excellent features for workplace AI bots:
- Workspace Integration — Works across entire organization
- Channel Support — Assist in team channels
- Thread Support — Organize conversations
- Rich Formatting — Beautiful formatted messages
- File Sharing — Handle documents and media
- Enterprise Features — SSO, compliance, audit logs
Prerequisites
Before setting up Slack integration:
- OpenClaw Installed — See installation guide
- OpenClaw Configured — Run
openclaw onboardto set up your AI model - Slack Workspace — Admin access or permission to install apps
- Slack App — You’ll create this in the next step
Step 1: Create a Slack App
Create Application
- Go to Slack API: api.slack.com/apps
- Click “Create New App”
- Select “From scratch”
- Enter App Name (e.g., “OpenClaw Assistant”)
- Select Workspace where you want to install
- Click “Create App”
Configure OAuth & Permissions
-
Go to “OAuth & Permissions” in the left sidebar
-
Scroll to “Scopes” → “Bot Token Scopes”
-
Add the following scopes:
app_mentions:read— Listen for mentionschannels:history— Read channel messageschannels:read— View channel infochat:write— Send messagescommands— Use slash commandsfiles:read— Read files shared with botfiles:write— Upload filesgroups:history— Read private channel messagesgroups:read— View private channel infoim:history— Read direct messagesim:read— View DM infoim:write— Send direct messagesmpim:history— Read group DMsmpim:read— View group DM infousers:read— View user infousers:read.email— View user emails
-
Scroll to “User Token Scopes” (usually not needed for bots)
Install to Workspace
- Scroll to top of OAuth & Permissions page
- Click “Install to Workspace”
- Review permissions and click “Allow”
- Copy “Bot User OAuth Token” — Starts with
xoxb-:xoxb-1234567890-1234567890123-AbCdEfGhIjKlMnOpQrStUvWx
Important: Keep your bot token secret! Never share it publicly.
Configure App Settings
- Go to “Basic Information”
- Set Display Name — How bot appears in Slack
- Set Default Username — Bot username
- Upload Icon — Bot avatar
- Set Description — What your bot does
Step 2: Configure OpenClaw
Run Integration Setup
Start the Slack integration:
openclaw integrations slack
Or use the general integrations command:
openclaw integrations
# Select Slack from the menu
Enter Bot Token
When prompted, paste your bot token:
Enter your Slack bot token: xoxb-1234567890-1234567890123-AbCdEfGhIjKlMnOpQrStUvWx
OpenClaw will verify the token and connect to Slack.
Verify Connection
You should see:
✓ Slack bot connected successfully!
Workspace: Your Workspace Name
Bot user: @openclaw
Check your Slack workspace—the bot should now be available.
Step 3: Start Using the Bot
Direct Messages
DM the bot directly:
- Search for “@OpenClaw” in Slack
- Click to open DM
- Send a message like “Hello, can you help me?”
Channel Mentions
Mention the bot in any channel:
@OpenClaw can you check my email?
Slash Commands
Configure slash commands:
- Go to “Slash Commands” in Slack app settings
- Click “Create New Command”
- Configure:
- Command:
/openclaw - Request URL:
https://your-server.com/slack/commands - Short description: “Interact with OpenClaw AI assistant”
- Usage hint:
[your message]
- Command:
Note: For local OpenClaw, you’ll need to expose it via ngrok or similar:
ngrok http 3000
# Use the ngrok URL in Slack command configuration
App Home
Configure App Home for a custom interface:
- Go to “App Home” in Slack app settings
- Enable “Home Tab”
- Configure home view (optional)
Advanced Features
Event Subscriptions
Enable real-time events:
- Go to “Event Subscriptions”
- Enable Events
- Set Request URL (requires public endpoint)
- Subscribe to bot events:
app_mention— Bot mentionedmessage.channels— Channel messagesmessage.groups— Private channel messagesmessage.im— Direct messagesmessage.mpim— Group DMs
Thread Support
OpenClaw can reply in threads:
openclaw config set slack.threads.enabled true
openclaw config set slack.threads.autoReply true
Keeps conversations organized in busy channels.
Rich Formatting
OpenClaw sends formatted messages:
openclaw config set slack.format "mrkdwn"
Supports Slack’s markdown format.
File Handling
OpenClaw can handle files:
- Download files shared with bot
- Upload files as responses
- Process images and documents
Workspace-Wide Usage
Configure for team use:
openclaw config set slack.workspace.enabled true
openclaw config set slack.workspace.channels ["general", "ai-assistant"]
Configuration Options
Channel Restrictions
Limit bot to specific channels:
openclaw config set slack.allowedChannels ["general", "ai-assistant"]
User Restrictions
Limit to specific users:
openclaw config set slack.allowedUsers ["U123456", "U789012"]
Get user IDs from Slack API or user profile URLs.
Response Formatting
Configure message formatting:
openclaw config set slack.format "mrkdwn"
openclaw config set slack.embeds true
Rate Limiting
Control message rate:
openclaw config set slack.rateLimit 30
Limits to 30 messages per minute per user.
Privacy Settings
Configure privacy:
openclaw config set slack.privacy.dmOnly false
openclaw config set slack.privacy.allowedChannels ["general"]
Notification Settings
Control notifications:
openclaw config set slack.notifications.enabled true
openclaw config set slack.notifications.quietHours "18:00-09:00"
Troubleshooting
Bot Not Responding
If your bot doesn’t respond:
-
Check bot status:
openclaw status -
Verify token:
openclaw config get slack.token -
Check logs:
openclaw logs -
Test connection:
openclaw test slack
Token Invalid
If you see “token invalid” errors:
- Verify token — Check Slack API dashboard
- Regenerate token — Revoke and reinstall app
- Update token:
openclaw integrations slack
Bot Not Appearing
If bot doesn’t appear in workspace:
- Check installation — Ensure app is installed
- Check permissions — Verify bot has required scopes
- Reinstall app — Uninstall and reinstall
Events Not Working
If events aren’t being received:
- Check Event Subscriptions — Ensure enabled in Slack app
- Verify Request URL — Must be publicly accessible
- Check SSL — Slack requires HTTPS
- Use ngrok for local development:
ngrok http 3000
Permission Errors
If you see permission errors:
- Check scopes — Ensure all required scopes are added
- Reinstall app — Permissions updated on reinstall
- Check workspace settings — Some workspaces restrict apps
Security Best Practices
Bot Token Security
-
Keep token secret — Never share publicly
-
Use environment variables:
export SLACK_BOT_TOKEN="xoxb-..." -
Rotate token — Regenerate if compromised
Workspace Security
- Limit permissions — Only grant necessary scopes
- Restrict channels — Limit bot to specific channels
- User whitelist — Restrict to specific users
- Audit logs — Monitor bot usage
Data Privacy
- Local processing — All messages processed locally
- No cloud storage — Unless explicitly configured
- Secure storage — Data stored in
~/.openclaw - Compliance — Consider workspace compliance requirements
Advanced Use Cases
Team Productivity
Use OpenClaw for team productivity:
- Email management — Check and respond to team emails
- Calendar coordination — Schedule team meetings
- Task tracking — Manage team tasks
- Information retrieval — Quick answers for team
Customer Support
Use for customer support:
- FAQ bot — Answer common questions
- Ticket management — Create and track tickets
- Escalation — Escalate complex issues
Internal Tools
Use as internal tool:
- Documentation — Answer questions about docs
- Onboarding — Help new team members
- Training — Assist with training
Comparison with Other Platforms
Slack vs Discord
- Slack — Better for businesses, enterprise features
- Discord — Better for communities, free
See our Discord guide for comparison.
Slack vs Telegram
- Slack — Workspace integration, team features
- Telegram — Simpler, personal use
See our Telegram guide for details.
Next Steps
Now that Slack is connected:
- Explore Other Integrations — WhatsApp, Telegram, Discord
- Set Up Skills — Skills Library
- Configure Email — Gmail Integration
- Read FAQ — Common Questions
Conclusion
Slack integration brings powerful AI assistance to your workspace. With channel support, thread organization, and team-wide deployment, OpenClaw can help your entire team be more productive.
For more help, check our integrations page or FAQ. Happy automating with Slack!
Need help?
Join the OpenClaw community on Discord for support, tips, and shared skills.
Join Discord →