SlackIncomingWebhook SlackIncomingWebhook

yaml
type: "io.kestra.plugin.notifications.slack.SlackIncomingWebhook"

Task to send a slack message to an incoming webhook.

See Sending messages using Incoming Webhooks.

Examples

Send a slack notification

yaml
id: "slack_incoming_webhook"
type: "io.kestra.plugin.notifications.slack.SlackIncomingWebhook"
url: "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
payload: |
  {
    "channel": "#my-chan",
    "text": "Flow <code v-pre>{{  flow.namespace }}.{{ flow.id  }}</code> started with execution <code v-pre>{{  execution.id  }}</code>"
  }

Properties

payload

  • Type: string
  • Dynamic: ✔️
  • Required:

Slack message payload

url

  • Type: string
  • Dynamic: ✔️
  • Required:

Slack incoming webhook URL

See Create an Incoming Webhook