Skip to main content

Connect

Establishes a connection to Slack using a bot token.

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.

Options

  • Bot Token - The Slack bot token credential used to authenticate with Slack.

Output

  • Client Id - The unique identifier for the Slack client connection that can be used in other Slack nodes.

How It Works

The Connect node establishes a connection to Slack using a bot token. When executed, the node:

  1. Retrieves the bot token from the provided credentials
  2. Creates a new Slack client using the slack-go library
  3. Stores the client connection with a unique identifier
  4. Returns the client identifier as output for use in other Slack nodes

Requirements

  • A valid Slack bot token with appropriate permissions
  • The bot must be installed in the workspace where you want to perform actions

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid bot token credential
  • Invalid Slack token that cannot establish a connection

Usage Notes

  • The Client Id output should be passed to other Slack nodes that require a connection
  • Each Connect node creates a separate client instance
  • The connection is maintained for the duration of the flow execution
  • Make sure your bot token has the necessary scopes for the operations you want to perform