Slack Send Message
Send a message to a Slack channel. In streaming mode, sends one message per input item.
Requires a Slack connection with chat:write scope.
Configuration
| Field | Description | Notes |
|---|---|---|
| Connection | Slack connection to use | Required |
| Channel | Channel name or ID | Required. Supports templates. e.g. #general or C01234567 |
| Message | Message text | Required. Supports templates and Slack mrkdwn |
| Message Type | text or blocks | Default: text |
| Blocks JSON | Block Kit JSON array | Shown when Message Type is blocks. Supports templates |
| Thread Timestamp | Parent message ts to reply in thread | Optional. Supports templates |
| Unfurl Links | Enable link previews | Default: false |
Output
Returns the Slack API response:
| Field | Description |
|---|---|
ok | Whether the message was sent successfully |
ts | Timestamp of the sent message (use as ID for updates/threads) |
channel | Channel ID where the message was posted |
Block Kit Example
When using Block Kit, set Message Type to blocks and provide a JSON array:
json
[
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "New deployment completed"
}
},
{
"type": "section",
"fields": [
{ "type": "mrkdwn", "text": "*Environment:*\nProduction" },
{ "type": "mrkdwn", "text": "*Status:*\nSuccess" }
]
}
]TIP
Even when using Block Kit, provide a Message text as a fallback for notifications and accessibility.