Slack Add

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

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

Emoji name

Name without colons (e.g., thumbsup, white_check_mark, heart).

Message timestamp

Slack ts of the message to react to.

Slack token

Reference (ref) of the pluginDefaults to apply to this task.