diff --git a/docs/channels/slack.md b/docs/channels/slack.md index bb763f50839..7d4202ada0a 100644 --- a/docs/channels/slack.md +++ b/docs/channels/slack.md @@ -26,12 +26,13 @@ Status: production-ready for DMs + channels via Slack app integrations. Default - - In Slack app settings: + + In Slack app settings press the **[Create New App](https://api.slack.com/apps/new)** button: - - enable **Socket Mode** - - create **App Token** (`xapp-...`) with `connections:write` - - install app and copy **Bot Token** (`xoxb-...`) + - choose **from a manifest** and select a workspace for your app + - paste the [example manifest](#manifest-and-scope-checklist) from below and continue to create + - generate an **App-Level Token** (`xapp-...`) with `connections:write` + - install app and copy the **Bot Token** (`xoxb-...`) shown @@ -58,19 +59,6 @@ SLACK_BOT_TOKEN=xoxb-... - - Subscribe bot events for: - - - `app_mention` - - `message.channels`, `message.groups`, `message.im`, `message.mpim` - - `reaction_added`, `reaction_removed` - - `member_joined_channel`, `member_left_channel` - - `channel_rename` - - `pin_added`, `pin_removed` - - Also enable App Home **Messages Tab** for DMs. - - ```bash @@ -84,15 +72,17 @@ openclaw gateway - + + In Slack app settings press the **[Create New App](https://api.slack.com/apps/new)** button: - - set mode to HTTP (`channels.slack.mode="http"`) - - copy Slack **Signing Secret** - - set Event Subscriptions + Interactivity + Slash command Request URL to the same webhook path (default `/slack/events`) + - choose **from a manifest** and select a workspace for your app + - paste the [example manifest](#manifest-and-scope-checklist) and update the URLs before create + - save the **Signing Secret** for request verification + - install app and copy the **Bot Token** (`xoxb-...`) shown - + ```json5 { @@ -108,12 +98,20 @@ openclaw gateway } ``` + + Use unique webhook paths for multi-account HTTP + + Give each account a distinct `webhookPath` (default `/slack/events`) so registrations do not collide. + + - - Per-account HTTP mode is supported. + + +```bash +openclaw gateway +``` - Give each account a distinct `webhookPath` so registrations do not collide.