Configuration
| Field | Type | Required | Description |
|---|---|---|---|
type | "slack" | Yes | Channel type |
webhookUrl | string | Yes | Slack Incoming Webhook URL |
apiKey | string | No | Slack Bot Token — enables real file uploads via files.upload |
webhookUrl and apiKey support ${ENV_VAR} syntax:
Message Format
Messages use Slack’s rich attachment format with a color-coded sidebar:| Severity | Color |
|---|---|
info | Green (#36a64f) |
warning | Goldenrod (#daa520) |
critical | Red (#ff0000) |
Attachments
When a notification rule hasincludeOutcomes: true, task outcomes (files, logs) are attached to the Slack message.
Without Bot Token — attachments are rendered as follow-up text messages. File content is shown in code blocks (truncated to 2800 characters). File metadata (name, size) is included.
With Bot Token — binary files are uploaded to Slack via the files.upload API as real downloadable files, each with a title and comment.
Connectivity Test
Thetest() check validates that the webhook URL hostname contains slack.com or hooks.slack.com. It does not make a network call — to verify end-to-end delivery, use the Send Direct API.
Setup
- Create a Slack App at api.slack.com/apps
- Enable Incoming Webhooks in the app settings
- Add a webhook to your target channel — copy the webhook URL
-
Add to Polpo config:
-
(Optional) For file upload support, add a Bot Token with
files:writescope