• /
  • EnglishEspañolFrançais日本語한국어Português
  • ログイン今すぐ開始

Get Slack message reactions

|View as Markdown (English)

Retrieves emoji reactions on a Slack message, waiting up to a configurable timeout.

For prerequisites, see Slack chat actions.

Get message reactions

The action identifier is slack.chat.getReactions.

Gets a reaction of a message from a Slack channel.

The following table describes all available input fields for this action.

Input

Type

Description

Example

token

Secret

Required. 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.

${{ :secrets:slackToken }}

channelID

String

Required. The channelID to get the message reactions from. See reactions.get method.

C063JK1RHN1

threadTs

String

Required. Timestamp belonging to the message, used to get the reaction of that message.

<digits>.<digits>

timeout

Int

Optional. The time in seconds to wait for any reaction. Default is 60s, maximum allowed is 600s (10 min).

60

selectors

List

Optional. The selectors to get only the specified parameters as output.

[{\"name\": \"reactions\", \"expression\": \".reactions \"}]

The following table describes all output fields returned by this action.

Output

Type

Description

reactions

List

List of elements with all the reactions captured, or an empty list if the timeout occurred.

success

Boolean

true on success, false on failure.

errorMessage

String

Failure reason as message. Example: Invalid slack token.

Example: Get Slack message reactions

Workflow example

name: GetReactions
steps:
- name: getReactions
type: action
action: slack.chat.getReactions
version: 1
inputs:
token: ${{ :secrets:dn_staging_slack_token }}
channelID: ${{ .steps.promptUser.outputs.channelID }}
threadTs: ${{ .steps.promptUser.outputs.threadTs }}
timeout: ${{ .workflowInputs.timeout }}
selectors: ${{ .workflowInputs.selectors }}

Inputs:

{
"inputs": [
{
"key": "channelID",
"value": "C063JK1RHN1"
},
{
"key": "threadTs",
"value": "1718897637.400609"
},
{
"key": "selectors",
"value": "[{\"name\": \"reactions\", \"expression\": \".reactions \"}]"
}
]
}

Outputs:

[
{
"name": "grinning",
"users": ["W222222"],
"count": 1
},
{
"name": "question",
"users": ["W333333"],
"count": 1
}
]

If the timeout expires before any reactions are added, the output is an empty list: []

Copyright © 2026 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.