Table of contents
- Create a Slack App
- Enable Bot Token Scopes
- Install to Workspace
- Login Command
- Invite the Bot
- Next Steps
- FAQ
Create a Slack App
- Go to api.slack.com/apps
- Click “Create New App”
- Choose “From scratch”
- Enter an app name (e.g., “OpenClaw Bot”)
- Select your workspace
- Click “Create App”
Enable Bot Token Scopes
- In the app sidebar, go to “OAuth & Permissions”
- Scroll to “Scopes” > “Bot Token Scopes”
- Click “Add an OAuth Scope”
- Add:
app_mentions:read,chat:write,channels:history,users:read
Install to Workspace
- Scroll up to “OAuth Tokens for Your Workspace”
- Click “Install to Workspace”
- Review permissions and click “Allow”
- Copy the Bot User OAuth Token (starts with
xoxb-)
Login Command
Run the login command with your token:
openclaw channels login slack --token YOUR_TOKEN
Replace YOUR_TOKEN with the Bot User OAuth Token.
Invite the Bot
- DM: Open a direct message with
@YourBotName - Channel: Type
/invite @YourBotNamein any channel - Mentions: Mention
@YourBotNameto trigger
Next Steps
- Getting Started Overview
- Allowlists and Sender Policies
- Daily Brief Workflow
- Slack Setup Guide
- Slack Troubleshooting
FAQ
Q: Do I need both Bot and App tokens?
A: Only Bot token is required for basic use. App token enables Events API.
Q: How do I limit which channels the bot joins?
A: Configure channels.slack.allowChannels in openclaw.json.
Q: What if the bot doesn’t respond?
A: Ensure it’s invited and that you’re mentioning it. Check logs.
Q: Can I use slash commands?
A: Yes. Configure slash commands in the Slack app and map them to OpenClaw skills.
Q: How do I disconnect?
A: Run openclaw channels logout slack.