Prerequisites
- A Slack workspace where you have admin permissions
- A running Suji instance
Create a Slack App
Go to the Slack API portal
Navigate to api.slack.com/apps and click Create New App. Choose From scratch.
Enable Socket Mode
Go to Socket Mode in the left sidebar and enable it. Give your app-level token a name (e.g.,
suji-connection) and click Generate.Copy the App-Level Token — it starts with xapp-.Enable Event Subscriptions
Go to Event Subscriptions and enable events. Under Subscribe to bot events, add:
message.channelsmessage.groupsmessage.immessage.mpimapp_mention
Set bot token scopes
Go to OAuth & Permissions. Under Bot Token Scopes, add:
chat:writechannels:historygroups:historyim:historympim:historyapp_mentions:read
Connect to Suji
Enter credentials
- botToken: Your Bot User OAuth Token (
xoxb-...) - appToken: Your App-Level Token (
xapp-...)
Verify the Connection
Invite your bot to a channel (type/invite @your-bot-name) and send a message. Your OpenClaw agent should respond.
Troubleshooting
Bot not responding in channels
Bot not responding in channels
- Make sure the bot is invited to the channel
- Verify
message.channelsevent subscription is enabled - Check that
channels:historyscope is granted
Socket Mode connection failing
Socket Mode connection failing
- Verify the App-Level Token (
xapp-) is correct - Make sure Socket Mode is enabled in the Slack API portal
- Check the instance logs for WebSocket connection errors
Permission errors
Permission errors
- Go to OAuth & Permissions and verify all required scopes are added
- Re-install the app to the workspace after adding new scopes