FlowmageDocs

Send message

BetaChanges data

Posts a message to a Slack channel, direct message or thread.

Settings

SettingWhat it is
ConnectionRequiredThe Slack connection the step signs in with.
ChannelRequiredA 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"
MessageSlack 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.
BlocksBlock 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 channeltrue/false
Show previews for linkstrue/false
Show previews for images and videotrue/false
Turn @name and #channel into linkstrue/false
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `slack`)
channeltexta value from the vendor's own list
messageFormat"text" or "blocks", by default "text"
texttext
blockstextused when `messageFormat` is "blocks"
threadTstextits `{{ }}` must give a string
replyBroadcasttrue/false, by default falseused when `threadTs` is not ""
unfurlLinkstrue/false, by default true
unfurlMediatrue/false, by default true
linkNamestrue/false, by default false

Output

FieldType
tsMessage timestamp — use it to update, delete, react or replystring
channelChannel idstring
messageobject
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
}