Skip to content

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

FieldDescriptionNotes
ConnectionSlack connection to useRequired
ChannelChannel name or IDRequired. Supports templates. e.g. #general or C01234567
MessageMessage textRequired. Supports templates and Slack mrkdwn
Message Typetext or blocksDefault: text
Blocks JSONBlock Kit JSON arrayShown when Message Type is blocks. Supports templates
Thread TimestampParent message ts to reply in threadOptional. Supports templates
Unfurl LinksEnable link previewsDefault: false

Output

Returns the Slack API response:

FieldDescription
okWhether the message was sent successfully
tsTimestamp of the sent message (use as ID for updates/threads)
channelChannel 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.