
Slack Add
CertifiedAdd a Slack reaction
Slack Add
Certified
Add a Slack reaction
Adds an emoji reaction to a message by channel and timestamp. Requires reactions: write.
yaml
type: io.kestra.plugin.slack.app.reactions.AddExamples
Add a reaction to a message
yaml
id: slack_add_reaction
namespace: company.team
tasks:
- id: add_reaction
type: io.kestra.plugin.slack.app.reactions.Add
token: "{{ secret('SLACK_TOKEN') }}"
channel: "#general"
name: "thumbsup"
timestamp: "{{ outputs.previous_task.timestamp }}"
Post message and add reaction
yaml
id: slack_post_with_reaction
namespace: company.team
tasks:
- id: post_message
type: io.kestra.plugin.slack.app.chats.Post
token: "{{ secret('SLACK_TOKEN') }}"
channel: "#general"
messageText: "Task completed successfully"
- id: add_reaction
type: io.kestra.plugin.slack.app.reactions.Add
token: "{{ secret('SLACK_TOKEN') }}"
channel: "#general"
name: "white_check_mark"
timestamp: "{{ outputs.post_message.timestamp }}"
Properties
channel *Requiredstring
Channel containing the message
Channel ID or name where the target message lives. To get the channel ID, right click on the channel name in Slack and select 'Copy Link'. The ID is the last part of the URL.
name *Requiredstring
Emoji name
Name without colons (e.g., thumbsup, white_check_mark, heart).
timestamp *Requiredstring
Message timestamp
Slack ts of the message to react to.
token *Requiredstring
Slack token
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.