You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/content/docs/integrations/slack.md
+202Lines changed: 202 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,3 +33,205 @@ We provide a lot of information in the initial Slack message including links to
33
33
From the recovered Slack message, you can see the timestamp as well as a link to the check itself.
34
34
35
35

36
+
37
+
38
+
## Custom Slack Webhook Integration
39
+
40
+
For users who need more control over the Slack alert format and content, you can use a **Webhook Alert Channel** in Checkly to send fully customized messages to Slack.
41
+
42
+
This approach is ideal when the native Slack integration does not meet your formatting or dynamic content needs. You will be using a Webhook alert channel with a Slack Incoming WebHook URL and a custom payload template. This setup allows you to control Slack message formatting using Slack's [Block Kit](https://api.slack.com/block-kit).
43
+
44
+
### Steps
45
+
46
+
1.**Create a Slack Webhook**
47
+
-[Create an Incoming WebHook integration](https://my.slack.com/services/new/incoming-webhook/) in Slack by selecting a default channel for your alerts. You’ll see a WebHook URL generated by Slack. Copy it.
48
+
- Choose the bot name and icon for your alerts.
49
+
50
+
2.**Create a Webhook Alert Channel in Checkly**
51
+
- Go to [Alert Settings > Add More Channels > Webhook](https://app.checklyhq.com/alerts/settings/channels/new/webhook)
52
+
- Fill in the following:
53
+
-**Name**: e.g. `Custom Slack Alerts`
54
+
-**Method**: `POST`
55
+
-**URL**: Paste the Slack Webhook URL
56
+
-**Notification events**: Enable recovery, degraded, and failure. SSL expiry optional, but not supported in this template.
57
+
-**Body**: See template below
58
+
59
+
3.**Customize the Template**
60
+
61
+
The following template uses conditional logic (`{{#if}}`) to change the message depending on the alert type:
> Be sure to update or remove the placeholder button links to Runbooks, OTel provider and anything else that is not needed for your use case.
221
+
222
+
>[!NOTE]
223
+
> Be sure each check mapped in the runbook logic has a corresponding URL. If a match isn’t found, fallback to a default documentation page.
224
+
225
+
### Testing the Webhook Limitations
226
+
* You cannot use the Test Webhook button in Checkly for this template, as Slack requires valid payload structure and the test payload lacks real check data.
227
+
* To test, trigger a real alert by adjusting a check so it fails, degrades, and recovers.
228
+
229
+
### Examples of Alert Transitions
230
+
231
+

232
+
233
+

234
+
235
+

236
+
237
+

0 commit comments