preview
We're still working on this feature, but we'd love for you to try it out!
This feature is currently provided as part of a preview program pursuant to our pre-release policies.
This page provides a comprehensive reference for slack chat actions available in the workflow automation actions catalog. These actions enable you to slack messaging operations.
Prerequisites
Before using communication actions in workflow automation, ensure you have:
- A Slack workspace with appropriate permissions.
- A Slack bot token configured as a secret in workflow automation.
- Access to the Slack channels where you want to send messages.
See Add Slack configuration for information on how to set up Slack integration.
Slack actions
Sends a message to a slack channel, with an optional file attachment.
Input Field | Optionality | Type | Description | Example |
|---|---|---|---|---|
token | Required | Secret | The Slack bot token to use. This should be passed as a secret syntax. Refer to Add Slack configuration for instructions on setting up a token. |
|
channel | Required | String | The name of the channel, or a channelID, to send the message. See Slack API for more information. |
|
text | Required | String | The message to be posted to Slack in the specified |
|
threadTs | Optional | String | Timestamp belonging to parent message, used to create a message reply in a thread. |
|
attachment | Optional | Map | Allows attaching a file with a message onto the specified | |
attachment.filename | Required | String | Specify the filename for the uploaded file in Slack. |
|
attachment.content | Required | String | The content of the file to upload as UTF8. |
|
selectors | Optional | List | The selectors to get the only specified parameters as output. |
|
Output Field | Type | Description | Example |
|---|---|---|---|
threadTs | String | Timestamp of the message thread. May be used in future |
|
channelID | String | Id of the channel where message is posted. |
|
success | Boolean | Status of the request |
|
errorMessage | String | Failure reason as message |
|
Example 1: Send slack message
Workflow example |
|---|
Inputs: Expected output: |
Example 2: Attach a file
Workflow example |
|---|
Expected output: |
Get a reaction of a message from Slack channel.
Input Field | Optionality | Type | Description | Example |
|---|---|---|---|---|
token | Required | Secret | The Slack bot token to use. This should be passed as a secret syntax. Refer to Add Slack configuration for instructions on setting up a token. |
|
channelID | Required | String | The channelID, to get the message reactions. See |
|
timeout | Optional | Int | The time in seconds for how long to wait for any reaction. Default is 60s, maximum allowed is 600s (10min). | 60 |
threadTs | Required | String | Timestamp belonging to message, used to get reaction of that message. |
|
selectors | Optional | List | The selectors to get the only specified parameters as output. |
|
Output Field | Type | Description | Example |
|---|---|---|---|
reactions | List | List of elements with all the reactions captured or an empty list if timeout occurred. |
|
success | Boolean | Status of the request |
|
errorMessage | String | Failure reason as message |
|
Example 1: Slack get reactions
Workflow example |
|---|
Inputs: Outputs: |