Tutorial
Bring AI assistance to your Slack workspace. OpenClaw can respond to mentions, DMs, and integrate with Slack workflows.
Prerequisites
- OpenClaw installed and configured
- Slack workspace admin access
- Your LLM API key (Anthropic Claude or OpenAI)
Step 1: Create Slack App
- Go to api.slack.com/apps
- Click "Create New App"
- Choose "From scratch"
- Name your app (e.g., "OpenClaw Assistant")
- Select your workspace
Step 2: Configure OAuth Scopes
Under "OAuth & Permissions", add these scopes:
- Bot Token Scopes:
chat:write- Send messageschannels:read- View public channelsgroups:read- View private channelsim:read- View DMsim:write- Send DMsreactions:write- Add reactions
Step 3: Install App to Workspace
- Scroll to "OAuth Tokens for Your Workspace"
- Click "Install to Workspace"
- Slack will show permissions; click "Allow"
- Copy the Bot User OAuth Token (
xoxb-...)
Save your token: Store it securely. You'll need it for OpenClaw configuration.
Step 4: Enable Events (Optional)
To receive real-time message events:
- Go to "Event Subscriptions" in your app
- Enable events:
message.channels,message.groups,message.im - Set the Request URL to your OpenClaw webhook endpoint
Step 5: Configure OpenClaw
# ~/.config/openclaw/config.yaml
integrations:
slack:
enabled: true
botToken: "xoxb-your-bot-token-here"
signingSecret: "your-signing-secret" # Optional, for webhooks
Step 6: Start OpenClaw
# Start the daemon
openclaw daemon start
# Check status
openclaw integrations status slack
Using OpenClaw in Slack
Direct Messages
Open the app and DM your bot. Any message will trigger an AI response.
Channel Mentions
In any channel, mention the bot:
@OpenClawBot help me understand this code
Thread Replies
The bot can reply in threads for contextual conversations:
# config.yaml
integrations:
slack:
replyInThread: true
Advanced Configuration
Channel Filtering
# Only respond in specific channels
integrations:
slack:
allowedChannels:
- "ai-help"
- "general"
blockedChannels:
- "announcements"
Custom Bot Name
# Override display name
integrations:
slack:
displayName: "ClawBot"
iconEmoji: ":claw:"
Troubleshooting
Bot Not Responding
- Verify bot token in config is correct
- Check bot is invited to the channel
- Ensure daemon is running
- Review logs:
openclaw daemon logs
Webhook URL Verification Fails
- Ensure URL is publicly accessible
- Use ngrok for local testing:
ngrok http 3000 - Verify firewall allows incoming connections
Use Cases
- Team Support: AI answers common questions in support channels
- Code Review: AI provides feedback on posted code snippets
- Knowledge Base: Query documentation from Slack
- Task Management: Create and update tickets via conversation
Related Articles
References
- OpenClaw Official Documentation - https://docs.openclaw.ai/ - Accessed February 2026
- OpenClaw GitHub Repository - https://github.com/openclaw/openclaw - Accessed February 2026
- Slack API Documentation - https://api.slack.com/ - Accessed February 2026
- Slack App Manifest Guide - App Configuration - Accessed February 2026
Reference Trail
External sources surfaced from the underlying article content
- api.slack.com/appsapi.slack.com
- https://docs.openclaw.ai/docs.openclaw.ai
- https://github.com/openclaw/openclawgithub.com
- https://api.slack.com/api.slack.com
- App Configurationapi.slack.com