Slack AppendStream

Slack AppendStream

Certified

Append to a Slack stream

Adds markdown to an active streaming message started with StartStream. Requires the original channel and timestamp and chat: write; fails if the stream is already stopped.

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

Append to an existing stream

yaml
id: slack_append_stream
namespace: company.team

tasks:
  - id: start_stream
    type: io.kestra.plugin.slack.app.chats.StartStream
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "#general"
    markdownText: "Processing workflow..."

  - id: append_stream
    type: io.kestra.plugin.slack.app.chats.AppendStream
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "{{ outputs.start_stream.channel }}"
    timestamp: "{{ outputs.start_stream.timestamp }}"
    markdownText: "Step 1 completed successfully"

Multiple appends to a stream

yaml
id: slack_multi_append_stream
namespace: company.team

tasks:
  - id: start_stream
    type: io.kestra.plugin.slack.app.chats.StartStream
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "#general"
    markdownText: "Starting data processing..."

  - id: append_step1
    type: io.kestra.plugin.slack.app.chats.AppendStream
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "{{ outputs.start_stream.channel }}"
    timestamp: "{{ outputs.start_stream.timestamp }}"
    markdownText: "\\nFetching data from source..."

  - id: append_step2
    type: io.kestra.plugin.slack.app.chats.AppendStream
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "{{ outputs.start_stream.channel }}"
    timestamp: "{{ outputs.start_stream.timestamp }}"
    markdownText: "\\nProcessing 1000 records..."

  - id: stop_stream
    type: io.kestra.plugin.slack.app.chats.StopStream
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "{{ outputs.start_stream.channel }}"
    timestamp: "{{ outputs.start_stream.timestamp }}"
    markdownText: "\\nāœ… Processing complete!"

Stream progress updates

yaml
id: slack_stream_progress
namespace: company.team

tasks:
  - id: start_stream
    type: io.kestra.plugin.slack.app.chats.StartStream
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "#general"
    markdownText: "Starting long-running process..."

  - id: update_progress
    type: io.kestra.plugin.slack.app.chats.AppendStream
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "{{ outputs.start_stream.channel }}"
    timestamp: "{{ outputs.start_stream.timestamp }}"
    markdownText: "\\nProgress: {{ taskrun.value }}%"
Properties

Stream channel

Channel ID or name where the stream was started.

Markdown to append

Additional markdown content appended to the stream.

Stream message timestamp

Slack ts returned by StartStream.

Slack token

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

Stream channel

Stream message timestamp