This gateway lets teams mention @runbookAI in Slack alert channels and route requests into Runbook.
@runbookAI infra <question>@runbookAI knowledge <question>@runbookAI deploy <service/environment>@runbookAI investigate <incident-id or summary>
- OAuth scopes (Bot Token Scopes)
app_mentions:readchannels:historychat:writegroups:history(if private channels are used)
- Event subscriptions
- Enable events
- Subscribe to bot events:
app_mentionmessage.channels(optional, for alert message context flows)message.groups(optional, for private channels)
- Socket Mode (recommended for local)
- Enable Socket Mode in Slack app settings
- Generate App-Level Token with
connections:write
export SLACK_BOT_TOKEN=xoxb-...
export SLACK_APP_TOKEN=xapp-...
runbook slack-gateway --mode socketexport SLACK_BOT_TOKEN=xoxb-...
export SLACK_SIGNING_SECRET=...
runbook slack-gateway --mode http --port 3001Set Slack Request URL to https://<your-domain>/slack/events.
incident:
slack:
enabled: true
botToken: ${SLACK_BOT_TOKEN}
appToken: ${SLACK_APP_TOKEN}
signingSecret: ${SLACK_SIGNING_SECRET}
events:
enabled: true
mode: socket
port: 3001
alertChannels: [C01234567]
allowedUsers: [U01234567]
requireThreadedMentions: true- Channel allowlist: restrict invocation to specific alert channels.
- User allowlist: only allow specific on-call responders.
- Thread-only mode: require mentions in threads to keep alert channels clean.
- Existing mutation approval path still applies for risky actions.