Send Slack Message to Channel
Sends a message to a Slack channel or user. Supports plain text, Block Kit formatting, @here mentions, and user alerts.
What it does
- Posts a message to the specified Slack channel (or DM to a user).
- Optionally mentions @here and/or specific users.
- Supports Slack Block Kit for rich formatting.
Notes
- Set "Send to Channel" to true for channel messages, false for direct messages.
- Use Block Kit Builder (https://app.slack.com/block-kit-builder/) to generate blocks JSON.
- When using blocks, the Message field is used as fallback/accessibility text.
Inputs
| Name | Type | Description |
|---|---|---|
| Message | String | The message text (or fallback text when using blocks) |
| Channel Name | String | Slack channel name to post to |
| Slack Token | String (sensitive) | Slack API token |
| User Alerts | List | List of user IDs to mention/alert |
| Here | Boolean | Whether to include @here mention |
| Send to Channel | Boolean | True for channel message, false for DM |
| Use block formatting | Boolean | Whether to use Block Kit formatting |
| Blocks | List | Slack Block Kit blocks array |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Whether the message was sent |