Slack Update

Slack Update

Certified

Update a Slack message

Replaces text, blocks, or attachments of an existing message by channel and timestamp. Requires chat: write.

yaml
type: io.kestra.plugin.slack.app.chats.Update

Update a message

yaml
id: slack_update_message
namespace: company.team

tasks:
  - id: post_message
    type: io.kestra.plugin.slack.app.chats.Post
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "#general"
    messageText: "Processing..."

  - id: update_message
    type: io.kestra.plugin.slack.app.chats.Update
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "#general"
    timestamp: "{{ outputs.post_message.timestamp }}"
    messageText: "Processing complete!"

Update with custom blocks

yaml
id: slack_update_custom
namespace: company.team

tasks:
  - id: update_message
    type: io.kestra.plugin.slack.app.chats.Update
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "#general"
    timestamp: "{{ outputs.previous_task.timestamp }}"
    payload: |
      {
        "text": "Updated status",
        "blocks": [
          {
            "type": "section",
            "text": {
              "type": "mrkdwn",
              "text": "*Status:* :white_check_mark: Completed"
            }
          }
        ]
      }
Properties

Thread timestamp to reply to

Slack ts value for replying in a thread; must belong to the same channel.

Slack token

Channel to send message

Channel ID or name; can also be set inside the payload.

Message icon emoji

Emoji code (e.g., : wave: ) that overrides iconUrl.

Message icon URL

HTTPS image used as icon when iconEmoji is not provided.

Message Text or JSON String

The message content as a raw string. It can be plain text with markdown, or a JSON object. If not a valid JSON object, it is automatically wrapped in {"text": "..."}. This property is ignored if the payload property is set.

Slack message payload

Display username

Overrides the bot's default display name for this message.

Timestamp of updated message