Slack
The slack trigger posts rich message notifications to Slack channels using incoming webhooks.
⚙️ Configuration Variables
WUD_TRIGGER_SLACK_{trigger_name}_CHANNEL
Requiredstring
Target Slack channel name (without #) or channel ID
WUD_TRIGGER_SLACK_{trigger_name}_TOKEN
Requiredstring
Slack Bot or User OAuth access token
WUD_TRIGGER_SLACK_{trigger_name}_DISABLETITLE
Optionalbooleandefault: false
Disable the default title heading to allow full custom message formatting
Channel & Bot Membership
The target Slack channel must already exist, and the WUD bot must be invited to private channels (/invite @BotName) for messages to post successfully.
info
This trigger also supports all common trigger configuration options (such as thresholds, scheduling, and batching).
🚀 Examples
Post Notifications to a Slack Channel
- Docker Compose
- Docker
services:
whatsupdocker:
image: getwud/wud
environment:
- WUD_TRIGGER_SLACK_LOCAL_TOKEN=xoxb-123456789-abcdef
- WUD_TRIGGER_SLACK_LOCAL_CHANNEL=wud-notifications
docker run \
-e WUD_TRIGGER_SLACK_LOCAL_TOKEN="xoxb-123456789-abcdef" \
-e WUD_TRIGGER_SLACK_LOCAL_CHANNEL="wud-notifications" \
getwud/wud
📖 Setup Guide: Creating a Slack Bot Token
- Go to the Slack API Apps Console and click Create New App > From scratch.
- Under OAuth & Permissions > Scopes, add the
chat:writeandchat:write.publicbot token scopes. - Install the app to your workspace and copy the generated Bot User OAuth Token (
xoxb-...). - Set the token as
WUD_TRIGGER_SLACK_{trigger_name}_TOKEN.