Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Slack connection the step signs in with. |
| ChannelRequired | A channel id like C0123ABCD, a channel name like #releases, or a user id for a direct message. The List channels node gives you the id. The bot must be in a private channel before it can post there. |
| Message format | "text" or "blocks" |
| Message | Slack markdown: *bold*, _italic_, `code`, <https://example.com|link text>, <@U0123> to mention someone. With Block Kit layout this text becomes the notification line and what clients that cannot draw blocks show. |
| Blocks | Block Kit layout, as a list. At most 50 blocks. Slack's own Block Kit Builder composes one for you. |
| Reply to (thread timestamp) | The ts of the message to reply under. Send message answers a ts. |
| Also show in the channel | true/false |
| Show previews for links | true/false |
| Show previews for images and video | true/false |
| Turn @name and #channel into links | true/false |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `slack`) |
channel | texta value from the vendor's own list |
messageFormat | "text" or "blocks", by default "text" |
text | text |
blocks | textused when `messageFormat` is "blocks" |
threadTs | textits `{{ }}` must give a string |
replyBroadcast | true/false, by default falseused when `threadTs` is not "" |
unfurlLinks | true/false, by default true |
unfurlMedia | true/false, by default true |
linkNames | true/false, by default false |
Output
| Field | Type |
|---|---|
tsMessage timestamp — use it to update, delete, react or reply | string |
channelChannel id | string |
message | object |
Sample output, and the expression for each field
- channel"C0123ABCD"
- message{}
- ts"1726790400.000100"
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"blocks": "",
"channel": "<channel>",
"connection": "<connection id>",
"linkNames": false,
"messageFormat": "text",
"replyBroadcast": false,
"text": "",
"threadTs": "",
"unfurlLinks": true,
"unfurlMedia": true
},
"label": "Send message",
"type": "slack.sendMessage",
"version": 1
}