Skip to main content

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​

InputTypeDescription
runEventTriggers this operation.
channelIdTextRequired channel or conversation ID. Obtain it from List Conversations or Open Conversation.
messageTextMessage text. Supply this or blocks; text is also useful as a fallback alongside blocks.
threadTsTextOptional parent message ts to reply in its thread. Keep the timestamp as text.
blocksDataOptional array of Slack Block Kit objects. Connect an actual array, not JSON encoded as text.

Properties​

SettingTypeDescription
connectionsConnectionSelect an authenticated Slack connection from this project. Channel access depends on that connection’s permissions and membership.

Outputs​

OutputTypeDescription
statusDatasuccess when Slack accepts the message; an object with error on failure. No sent-message ID or timestamp is returned.
doneEventFires 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.

Project connections