Send automated alerts to Slack channels using Incoming Webhooks.
Configuration Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| WebhookUrl | Yes | string | Slack Incoming Webhook URL |
| Body | Yes | string | Message text content |
| BlocksJson | No | string | Optional Slack Block Kit JSON for rich formatting |
Example Configuration
WebhookUrl = https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
Body = 🚨 *Alert*: Temperature exceeded threshold at Line 1Advanced: Block Kit
For rich message formatting, use BlocksJson:
[
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Alert*: Temperature exceeded threshold"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "Device: Sensor_01 | Value: 85.5°C"
}
]
}
]Setup Instructions
- Go to your Slack workspace settings
- Navigate to Apps > Incoming Webhooks
- Create a new webhook and select the target channel
- Copy the Webhook URL
Internal Behavior
- Retry: Automatic retry on 5xx errors
- Rate Limiting: Respects Slack's rate limits