Skip to main content

General

Slack Notifications

Send alerts to Slack channels via Incoming Webhooks.

Send automated alerts to Slack channels using Incoming Webhooks.

Configuration Parameters

ParameterRequiredTypeDescription
WebhookUrlYesstringSlack Incoming Webhook URL
BodyYesstringMessage text content
BlocksJsonNostringOptional 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 1

Advanced: 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

  1. Go to your Slack workspace settings
  2. Navigate to Apps > Incoming Webhooks
  3. Create a new webhook and select the target channel
  4. Copy the Webhook URL

Internal Behavior

  • Retry: Automatic retry on 5xx errors
  • Rate Limiting: Respects Slack's rate limits