加入我们的 Telegram 社群 (clawdbotCN) 学习分享和了解更多 →
渠道集成
Slack

Slack 配置

通过 Bolt SDK 集成 Slack。

快速开始

配置

Socket Mode (默认):

{
  channels: {
    slack: {
      enabled: true,
      appToken: "xapp-...",
      botToken: "xoxb-..."
    }
  }
}

或使用环境变量:

export SLACK_APP_TOKEN="xapp-..."
export SLACK_BOT_TOKEN="xoxb-..."

Bot Token 权限

必需的 scopes:

  • chat:write
  • channels:history
  • groups:history
  • im:history
  • reactions:read/write
  • files:write

下一步