Skip to main content

Slack Join Channel

Controlled node

Overview

Joins a Slack channel using a configured Slack connection. The bot user associated with the connection must have permission to join the target channel. This node is useful for programmatically joining channels in workflows that need to post messages or monitor specific channels.

Inputs

InputTypeDescriptionDefault
RunEventFires when the node starts running-
Channel IDTextThe ID of the Slack channel to join (e.g., "C1234567890")-

Outputs

OutputTypeDescription
DoneEventFires when the node has finished
StatusDataReturns "success" if the channel was joined successfully, or an error object with details if the operation failed

Properties

PropertyTypeDescriptionDefault
ConnectionsConnectionThe Slack connection to use for this operation. Configure Slack connections in your project settings.-

Runtime Behavior and Defaults

This node requires a valid Slack connection to be selected in the properties panel before it can execute. The bot user associated with the selected connection must have the necessary permissions to join channels in your Slack workspace.

When triggered:

  1. Validates that a Slack connection is configured
  2. Validates that a Channel ID is provided
  3. Attempts to join the specified channel using the Slack API
  4. Returns "success" in the Status output if successful, or an error object if the join operation fails (e.g., if the bot lacks permissions or the channel doesn't exist)

Note: The Channel ID is different from the channel name. Channel IDs typically start with "C" for public channels or "G" for private channels/groups.

Example Usage

Basic Channel Join

  1. Connect a Start node or any event-emitting node to the Run input
  2. Enter the Channel ID (e.g., "C1234567890") in the Channel ID field, or connect a Text node providing the channel ID
  3. Select your Slack connection in the Connections property panel
  4. Connect the Done event to subsequent nodes that should run after joining the channel
  5. Optionally, connect the Status output to a condition check or logging node to verify the join was successful

Error Handling

To handle cases where the join might fail (e.g., the bot is already in the channel or lacks permissions):

  • Connect the Status output to an If node
  • Check if Status equals "success"
  • If false, handle the error appropriately (e.g., log the error or notify the user)