Prerequisites
- A Slack workspace where you have admin access
- A Claw instance (create one here)
Setup Guide
Create a Slack App
- Go to Slack API and click Create New App
- Choose From scratch
- Enter an app name (e.g., “AI Assistant”) and select your workspace
- Click Create App
Enable Socket Mode
- In the left sidebar, go to Socket Mode
- Toggle Enable Socket Mode to ON
- Give the token a name (e.g., “claw-socket”) and click Generate
- Copy the App-Level Token (starts with
xapp-) — you’ll need this
Configure Bot Permissions
- Go to OAuth & Permissions in the sidebar
- Under Bot Token Scopes, add these scopes:
chat:write— Send messagesim:history— Read DM historyim:read— View DMsim:write— Start DMsapp_mentions:read— Detect @mentions
- Click Install to Workspace at the top
- Authorize the app
- Copy the Bot User OAuth Token (starts with
xoxb-)
Enable Events
- Go to Event Subscriptions in the sidebar
- Toggle Enable Events to ON
- Under Subscribe to bot events, add:
message.im— Messages in DMsapp_mention— @mentions in channels
- Click Save Changes
Configure in LemonData Dashboard
- Go to your Claw Dashboard
- Click the settings icon on your instance
- Open the IM Integrations tab
- Expand the Slack section
- Paste your App Token (
xapp-...) and Bot Token (xoxb-...) - Click Save
Access Control
Group Settings
Configure channel access in the IM Integrations tab of your Dashboard:| Setting | Options | Description |
|---|---|---|
| Group Policy | Open (default) / Allowlist / Disabled | Controls which channels the bot responds in |
| Require @mention | On / Off | Bot only responds when @mentioned |
| Group IDs | List of channel IDs | Restrict to specific channels (empty = all channels) |
| Group Allowed Users | List of user IDs | Only these users can trigger the bot (allowlist mode) |
Troubleshooting
Bot doesn't respond to DMs
Bot doesn't respond to DMs
- Verify both tokens are correct (App Token starts with
xapp-, Bot Token withxoxb-) - Check that
message.imevent is subscribed - Make sure the app is installed to your workspace
Bot doesn't respond to @mentions
Bot doesn't respond to @mentions
- Check that
app_mentions:readscope andapp_mentionevent are configured - The bot must be invited to the channel first (type
/invite @botname)
'not_allowed_token_type' error
'not_allowed_token_type' error
- Make sure you’re using the App-Level Token (
xapp-) for the App Token field, not the Bot Token - The Bot Token (
xoxb-) goes in the Bot Token field