Prerequisites
- A Slack workspace where you have admin access
- A Slack app with Socket Mode enabled
Create a Slack app
Go to api.slack.com/apps and create a new app from scratch.
Go to Socket Mode in the sidebar and enable it. This generates an app-level token starting with
xapp-.channels:history — read messages in public channelsgroups:history — read messages in private channelsim:history — read direct messagesmpim:history — read group direct messagesusers:read — read user profilesHow it works
The service uses@slack/socket-mode to maintain a persistent WebSocket connection. When a message is received:
- The message is normalized and stored in the conversations/messages tables
- The debounce timer resets for that conversation
- After the debounce period, the scheduler picks up the conversation for LLM processing
Channel selection
By default, OpenBunny listens to all channels the bot is invited to. Invite the bot to specific channels using/invite @OpenBunny in Slack.