Slack:Send Message
Controlled node
Overview
Post a Slack message, formatted blocks or a thread reply.
Send a message to a Slack channel or direct-message conversation. Optionally reply in a thread or supply Block Kit content.
Inputs
| Input | Type | Description |
|---|---|---|
| run | Event | Triggers this operation. |
| channelId | Text | Required channel or conversation ID. Obtain it from List Conversations or Open Conversation. |
| message | Text | Message text. Supply this or blocks; text is also useful as a fallback alongside blocks. |
| threadTs | Text | Optional parent message ts to reply in its thread. Keep the timestamp as text. |
| blocks | Data | Optional array of Slack Block Kit objects. Connect an actual array, not JSON encoded as text. |
Properties
| Setting | Type | Description |
|---|---|---|
| connections | Connection | Select an authenticated Slack connection from this project. Channel access depends on that connection’s permissions and membership. |
Outputs
| Output | Type | Description |
|---|---|---|
| status | Data | success when Slack accepts the message; an object with error on failure. No sent-message ID or timestamp is returned. |
| done | Event | Fires when the node returns, including when it returns an error result. Check the data output before continuing. |
The selected connection must be allowed to post to the conversation. Each execution posts another message. Inspect status after done before retrying.
For rich content, supply an array from a Data node, for example:
[
{
"type": "section",
"text": { "type": "mrkdwn", "text": "The report is *ready*." }
}
]
Example
Select the connection, set channelId to the target channel ID and message to The report is ready. Trigger run from Start or a preceding node’s done. Compare status with success before proceeding.
To reply in an existing thread, also supply the parent message’s ts as threadTs.