Choose which Slack channel this site's alerts post to
set_slack_channelUse this when the user wants accessibility alerts for a site to go to a Slack channel, or to a different one than now. WRITES to this website's Inclusify configuration, never to the site itself. It CANNOT install Slack: that is a browser OAuth flow on the Inclusify panel's Integrations page and no assistant can do it, so this refuses until the workspace is connected. It also cannot list channels — ask the user for the channel, by name or by Slack channel ID. NOTE THAT THIS POSTS A MESSAGE to the channel before saving, on purpose: a binding that looks right and posts nowhere is worse than a refusal, because the customer believes they are covered. If the post fails — wrong channel, private channel the app was never invited to — nothing is saved and the reason is returned. REQUIRES CONFIRMATION, because it both writes to their Slack and redirects where alerts go. Changing the channel keeps the existing notification settings; only a first-time binding takes the defaults. Use set_slack_events to change which alerts fire. Needs the PRO plan, matching the panel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | The Slack channel: an ID like "C01ABCDEF" or a name like "#accessibility". A name is passed to Slack as given — if the app cannot reach it, the call is refused and nothing is saved. | |
| confirm | No | Leave this out on the first call to get a preview of exactly what would change, plus a confirmation token. Call again with the same arguments and that token to apply the change. The token lasts 10 minutes and works once. | |
| website | Yes | The website domain as registered in Inclusify, e.g. "example.com". |