Channels
slack
slack app integration
setup
- create a slack app at api.slack.com
- add bot scopes:
chat:write,app_mentions:read,channels:history - install to your workspace
- 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.