BaihuBaihu
Channels

slack

slack app integration

setup

  1. create a slack app at api.slack.com
  2. add bot scopes: chat:write, app_mentions:read, channels:history
  3. install to your workspace
  4. copy the bot token (xoxb-...) and app token (xapp-...)
[channels_config.slack]
bot_token = "enc2:..."
app_token = "enc2:..."
allowed_channels = ["C12345678"]

allowlist

# specific channels
allowed_channels = ["C12345678"]

# all channels
allowed_channels = ["*"]

how it works

uses the slack events API in socket mode. baihu listens for app_mention events and replies in the same thread.

On this page