Nodes2Cloud
Nodes2CloudDocs
Integrations

Slack

Connect to Slack to send messages, manage reactions, and trigger workflows

Slack Integration

The Slack integration allows you to automate notifications, send direct messages, and trigger workflows based on events happening in your Slack workspace.

How to get credentials

To use Slack nodes, you need a Slack App with a Bot User OAuth Token.

  1. Go to the Slack API Dashboard and create a new App from scratch.
  2. In your app settings, go to OAuth & Permissions.
  3. Under Scopes → Bot Token Scopes, add the required scopes (e.g., chat:write, channels:read, reactions:write, users:read, users:read.email).
  4. Scroll up and click Install to Workspace.
  5. Copy the Bot User OAuth Token (it starts with xoxb-).
  6. In Nodes2Cloud, create a new Slack credential and paste this token.

1. Slack: Post Message

What the node does

Sends a message to a public channel, private channel, or direct message conversation.

Options / Fields

  • Credential: Your Slack Bot Token.
  • Channel: The name or ID of the channel (e.g., #general or C12345678). The bot must be a member of the channel to post.
  • Message Text: The text of the message to send. Supports Slack's markdown-like formatting.
  • Blocks (JSON): (Optional) A JSON array representing Slack Block Kit UI blocks for rich formatting.
  • Attachments (JSON): (Optional) A JSON array of legacy Slack attachments.
  • Thread TS: (Optional) Provide the timestamp (ts) of a parent message to reply in a thread.

How to set it up

  1. Select your Credential and enter the Channel.
  2. Provide the Message Text.
  3. If the channel is private, ensure you have invited your Slack app to the channel first using /invite @YourAppName.

2. Slack: Update Message

What the node does

Updates an existing message that was previously sent by your bot.

Options / Fields

  • Credential: Your Slack Bot Token.
  • Channel: The channel ID where the message lives.
  • Message Timestamp (TS): The unique timestamp (ts) of the message you want to edit.
  • New Message Text: The updated text.
  • Blocks / Attachments: (Optional) Updated rich formatting.

3. Slack: Delete Message

What the node does

Deletes a message previously sent by your bot.

Options / Fields

  • Credential: Your Slack Bot Token.
  • Channel: The channel ID where the message lives.
  • Message Timestamp (TS): The timestamp (ts) of the message to delete.

4. Slack: Send Direct Message

What the node does

Sends a direct message to a specific user.

Options / Fields

  • Credential: Your Slack Bot Token.
  • User ID: The Slack User ID (starts with U or W), not their email or display name.
  • Message Text: The text of the message.

(Tip: You can use the Look-up User By Email node to dynamically find a User ID).


5. Slack: Add Reaction

What the node does

Adds an emoji reaction to a specific message.

Options / Fields

  • Credential: Your Slack Bot Token.
  • Channel: The channel ID of the message.
  • Message Timestamp (TS): The timestamp (ts) of the message to react to.
  • Emoji Name: The name of the emoji without colons (e.g., thumbsup or smile).

6. Slack: Look-up User By Email

What the node does

Finds a Slack user's profile and User ID based on their email address.

Options / Fields

  • Credential: Your Slack Bot Token (requires the users:read.email scope).
  • Email Address: The exact email address of the user.

How to set it up

  1. Enter the email address.
  2. The output will contain the user object, including user.id which you can then pass into the Send Direct Message node.

7. Slack: Event Trigger

What the node does

Automatically starts a workflow when specific events happen in Slack (e.g., a new message is posted, an app is mentioned, or a reaction is added).

Options / Fields

  • Credential: Not strictly required for the trigger itself, but you'll need to configure the Webhook URL in your Slack App.
  • Event Type: (Optional) You can specify an event type to filter on, though Slack's Event Subscriptions handles the primary routing.

How to set it up

  1. Add this node as the first node in your workflow.
  2. Copy the Webhook URL provided by the node.
  3. In your Slack App settings, go to Event Subscriptions and toggle it On.
  4. Paste the Webhook URL into the Request URL field. (Nodes2Cloud will automatically respond to Slack's initial url_verification challenge).
  5. Under Subscribe to bot events, add the events you care about (e.g., app_mention or message.channels).
  6. Save your changes and reinstall the app if prompted. Now, when those events occur, your workflow will trigger with the event payload.

Common Troubleshooting

  • channel_not_found error: Ensure your bot is invited to the channel. Type /invite @YourBotName in the Slack channel.
  • missing_scope error: Your Slack token doesn't have the necessary permissions. Go to your Slack App settings, add the requested scope, and reinstall the app to your workspace.
  • Trigger URL Verification Failed: Ensure your Nodes2Cloud workflow is marked as "Active" before pasting the URL into Slack, so it can respond to the challenge.

On this page