Utility

Send Slack Message

Category
Communication
Node Type
Utility

Overview

The Send Slack Message node posts messages to Slack via an incoming webhook. Use it to notify channels about events, errors, summaries, or team updates.

Description

Post updates to Slack.

Provide a Slack webhook URL and message content. You can send simple text or use Slack's Block Kit for rich formatting.

Team Alerts

Notify channels about critical system events.

Bot Messages

Send automated reports or daily standups.

Input Parameters

Configure the message.

webhookUrlstringRequired
Slack incoming webhook URL.
Example
"https://hooks.slack.com/services/..."
messagestringRequired
Main text content (fallback for blocks).
Example
"Daily report ready."
usernamestringOptional
Display name for the bot.
Example
"Notifier Bot"
attachmentsstringOptional
JSON-encoded string of Slack blocks/attachments.

Output Parameters

The node returns the delivery status.

deliveryStatusstringOptional
'success' or 'failed'.
responseStatusnumberOptional
HTTP status code (e.g., 200).

Output Type

Output Type: JSON

Returns a JSON object confirming the message delivery.

Example Usage

Example 1: Simple Message

Send a text notification.

{  "webhookUrl": "https://hooks.slack.com/services/...",  "message": "Deployment started."}
{  "deliveryStatus": "success",  "responseStatus": 200}

Example 2: Rich Blocks

Send a structured message.

{  "webhookUrl": "https://hooks.slack.com/services/...",  "message": "New Alert",  "attachments": "{\"blocks\":[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"*Critical Error* detected.\"}}]}"}
{  "deliveryStatus": "success",  "responseStatus": 200}

How to Use in a No-Code Workflow

1

Add the Node

Place the Send Slack Message node in your workflow.

2

Get Webhook

Paste your Slack Webhook URL (see guide below).

3

Compose

Enter the message text. Optionally add attachments for rich layouts.

4

Run

Execute the node to post to the channel.

Create a Slack Webhook URL

Follow these steps to generate a webhook URL for your workspace:

1

Create App

Go to api.slack.com/apps and click Create New App. Select From scratch.

2

Enable Webhooks

In the app settings sidebar, click Incoming Webhooks and toggle it On.

3

Add to Workspace

Click Add New Webhook to Workspace. Select the channel to post to and click Allow.

4

Copy URL

Copy the Webhook URL displayed. Use this in the node's webhookUrl field.

Best Practices

  • Use Block Kit for interactive and structured messages.
  • Create separate webhooks for different channels to manage access.

Do / Don’t

Do
  • ✔️ Use the username field to identify the bot clearly.
  • ✔️ Validate your JSON blocks using Slack's Block Kit Builder.
Don’t
  • ❌ Don’t include sensitive secrets in the message payload.
  • ❌ Don’t spam channels; respect user attention.

Common Errors

invalid_payloadErrorOptional
JSON structure for attachments/blocks is incorrect.
channel_not_foundErrorOptional
Webhook does not have access to the channel.

Example Workflow Integration

Use Case: Daily Sales Report

Post a summary of daily sales to the #sales channel.

  1. Schedule Trigger: Run every day at 9 AM.
  2. Database Query: Fetch total sales for the previous day.
  3. Send Slack Message: Post the total amount.

Workflow Data Flow:

{{db.salesTotal}} → {{slack.message}}