Slack Notifier
With this node you can send a Slack message directly to a specified channel.
With this node you can send a Slack message directly to the selected channel.
A Slack message consists of an array of blocks
. You can interactively design your block structure using Slack’s Block Kit Builder. To dynamically structure a message, you can combine an Input Any node with a Patch JSON node to patch in data into your block structure.
Every time the node gets triggered, you will get thread_ts
as a response which is the id of your message. Use this field if you want to send messages as replies to one of the messages sent before. Just add two Slack Notifier nodes: one for the main message, and one for the reply, inputting thread_ts
from the first node to the second one.
Take a look at the example below to understand better how you can use it:
Example
Input Fields
field | schema | explanation |
conversation_id | slack_conversation_id | Input a slack channel to which you would like to send a message. Use Select Slack Conversation node for this. |
thread_ts | slack_thread_timestamp | Use this field if you want to send a message as a comment to another Slack message. Just input thread_ts from another Slack Notifier node. |
blocks | slack_blocks | To be able to send a Slack message an API, you need to follow a specific structure called blocks. Blocks can be texts, buttons, images, etc. Take a look at Slack Block Kit Builder and select the right block template to build your dream message. |
Output Fields
field | schema | explanation |
thread_ts | slack_thread_timestamp | Outputs the timestamp of your message (”id”) if successful. |
Last updated on October 11, 2022