Send Message To Channel
This step sends a message to a specified channel in your Slack workspace. You provide the channel name or ID and the message text. Use this step in workflows that post automated notifications to team channels, share status updates, or send alerts for incidents and events. Prerequisite User must have the following permissions:
| Token Type | Permissions |
|---|---|
| Bot tokens | chat:write channels:read groups:read im:read mpim:read users:read.email |
| User tokens | chat:write chat:write:user chat:write:bot channels:read groups:read im.read mpim.read users:read.email |
Reference API documentation: https://api.slack.com/methods/chat.postMessage
Configurations
| No. | Field Name | Description |
|---|---|---|
| 1 | Step Name | Name of the step. This name has to be unique in a single workflow. |
| 2 | Bot/User Access Token | Specify the generated Bot or User Access Token. The data type is Secure String. This is a mandatory field. |
| 3 | Test Connection | Verifies whether the connection is established or not. |
Input Tab
| No. | Field Name | Description |
|---|---|---|
| Input Fields: | ||
| 1 | Channel | Specify the channel name to which you want to send the message. Data type: String. This field is mandatory. |
| 2 | Get | Click Get; if a connection is successfully established, it populates a list of channels. |
| 3 | Message | Specify the message you want to send to the channel. Data type: String. This field is mandatory. |
| 4 | API Request Delay | Provide an appropriate delay according to the rate limit of your Slack API. |
Output Tab
| Field Name | Description |
|---|---|
| Output Field: | |
| Message ID | Output field to hold the result of the successful plugin execution. The default label value for this field is “MessageID”. |