PostEphemeral PostEphemeral
PostEphemeral Certified

Send an ephemeral Slack message

yaml
type: "io.kestra.plugin.slack.app.chats.PostEphemeral"
yaml
id: slack_ephemeral_message
namespace: company.team

tasks:
  - id: post_ephemeral
    type: io.kestra.plugin.slack.app.chats.PostEphemeral
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "#general"
    user: "U1234567890"
    messageText: "This message is only visible to you"

yaml
id: slack_ephemeral_notification
namespace: company.team

tasks:
  - id: notify_user
    type: io.kestra.plugin.slack.app.chats.PostEphemeral
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "#general"
    user: "U1234567890"
    payload: |
      {
        "text": "Task completed",
        "blocks": [
          {
            "type": "section",
            "text": {
              "type": "mrkdwn",
              "text": ":white_check_mark: Your task has been completed successfully"
            }
          }
        ]
      }
Properties