Slack Message Post Block

Post messages to Slack channels or threads

The Slack Message Post block enables users to send messages to specified Slack channels or threads within Scout workflows. This block integrates with Slack’s API to facilitate communication, supporting dynamic message content through Jinja templating.

Configuration (Required)

Channel ID
stringRequired

The ID of the channel to post the message to. Ensure the channel ID is correct to avoid posting messages to unintended channels.

Thread ID
string

The ID of the thread to post the message to. If not specified, the message will be posted as a new thread. This field supports Jinja templating for dynamic content generation. Default is an empty string.

Slack Message
codeRequired

The content of the message to be posted. This field supports Jinja templating for dynamic message content, such as including variables from the workflow state.

Username
string

The username to post the message as. Customize this to better identify the message sender. This field supports Jinja templating. Default is “Scout”.

Icon URL
string

The URL of the icon to post the message as. Customize this to change the message sender’s icon. This field supports Jinja templating. Default is an empty string.

See Workflow Logic & State > State Management for details on using dynamic variables in this block.

Outputs

The block outputs the response from Slack after posting the message, including message details and status. This response is in JSON format and can be used for further processing or logging within the workflow.

Usage Context

Use this block to automate message posting to Slack channels or threads within workflows. It is ideal for notifications, updates, or alerts.

Best Practices

  • Ensure the channel ID is correct to avoid posting messages to unintended channels.
  • Use Jinja templating for dynamic message content, such as including variables from the workflow state.
  • Validate that the Slack token is correctly configured for the organization to ensure successful message delivery.