Send Message
Sends a message to a Slack channel.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Client Id - The unique identifier for the Slack client connection obtained from the Connect node.
- Channel Name - The name or ID of the Slack channel where the message will be sent.
- Message - The text content of the message to be sent.
How It Works
The Send Message node sends a text message to a specified Slack channel. When executed, the node:
- Retrieves the Client Id, Channel Name, and Message from the inputs
- Validates the Client Id by checking if a connection exists
- Ensures the Channel Name and Message are not empty
- Calls the Slack API to send the message to the specified channel
Requirements
- A valid Slack client connection (Client Id from the Connect node)
- Valid Slack channel name or ID where the bot has permission to post messages
- Sufficient permissions for the bot to send messages to the specified channel
Error Handling
The node will return specific errors in the following cases:
- Invalid Client Id that doesn't correspond to an existing connection
- Empty or invalid Channel Name
- Empty Message content
- Slack API errors when sending the message
- Insufficient permissions to post messages to the channel
Usage Notes
- The bot must be a member of the channel to send messages to it
- The bot must have the necessary scopes (chat:write, chat:write.public) to send messages
- Channel Name can be either the channel name (e.g., #general) or channel ID
- For private channels, use the channel ID rather than the name
- Messages are sent as the bot user, not as a human user
- Slack formatting (markdown) is supported in messages