Slack - Send Message
Overview
Send a Slack message to any channel or DM, alerting any user in your company.
Variables
Name | Reference | Type | Required | Default | Options | Description |
---|---|---|---|---|---|---|
Destination Type | SLACK_DESTINATION_TYPE | Select | ✅ | channel | Channel: channel DM: dm | The type of location where you want your message to be sent. If Channel is selected, a message can be sent directly to a channel. If DM is selected, users can be sent messages directly from your app. |
Channel Name | SLACK_CHANNEL_NAME | Alphanumeric | ➖ | None | - | The name of the channel where you want your message to be sent, without the # prefix. This field will be ignored if the destination type is DM. |
Users to Notify | SLACK_USERS_TO_NOTIFY | Alphanumeric | ➖ | None | - | A comma separated list of case insensitive user emails, used to look up slack user IDs. This field is only required if the Destination Type is DM. |
Message | SLACK_MESSAGE | Alphanumeric | ✅ | None | - | The message that you want sent to a user. You can use all of the same markdown syntax that you would typically use in a Slack message. If you want to create a link in your message, you can use the format of |
YAML
Below is the YAML template
source:
template: Slack - Send Message
inputs:
SLACK_DESTINATION_TYPE: channel
SLACK_CHANNEL_NAME:
SLACK_USERS_TO_NOTIFY:
SLACK_MESSAGE:
type: TEMPLATE
guardrails:
retry_count: 1
retry_wait: 0h0m0s
runtime_cutoff: 1h0m0s
exclude_exit_code_ranges:
- 101
- 102
- 200
- 203