Skip to main content
PRO Feature

This feature is available in the PRO subscription tier. Learn more about PRO

Slack Output Node

The Slack Output Node sends messages to Slack channels or users. It supports plain text, Block Kit JSON, thread replies, ephemeral messages, and both channel-based and slash command response URLs.

Slack Output Node

Prerequisites

Before using this node, you need to create and configure a Slack app. See the Slack Bot Setup guide for step-by-step instructions.

Configuration

The Bot User OAuth Token for your Slack app (starts with xoxb-).

Obtain this from your Slack app's OAuth & Permissions page after installing the app to your workspace.

Slack Output Node Configuration


Example Usage

For example usage, see the Slack AI Web Search Bot Workflow, which listens for Slack slash commands, queries the web with DuckDuckGo, and returns the AI-generated response directly in Slack.

Common Use Cases

  1. Respond to Slash Commands: Reply to users who trigger workflows via the Slack Input Node.
  2. Send Channel Notifications: Post automated messages or alerts to Slack channels.
  3. Thread Replies: Reply inside existing Slack threads using threadTs.
  4. Ephemeral Messages: Send private messages visible only to a specific user with postEphemeral.
  5. Rich Formatting: Use Block Kit JSON to send visually structured messages.

Best Practices

  • Use responseUrl when replying to slash commands: It avoids needing to know the channel ID explicitly and ensures the reply is routed to the correct context.
  • Prefer plain text for simple messages: Block Kit is powerful but adds complexity; use it only when rich formatting is needed.
  • Validate upstream data: Ensure the connected upstream node always provides either channelId or responseUrl.
  • Keep tokens secure: Never share your Bot Token publicly or commit it to version control.

Troubleshooting

Common Issues

  • Message not sent: Verify the Bot Token is correct and the bot has permission to post to the target channel (chat:write or chat:write.public).
  • Invalid input format: Check the upstream node output matches the expected JSON schema. The node logs will display detailed validation errors.
  • Missing channelId or responseUrl: Ensure the upstream node provides at least one of these fields.
  • Ephemeral message not delivered: When using postEphemeral without a responseUrl, the userId field must be present.
  • Block Kit rendering issues: Validate your Block Kit JSON using the Block Kit Builder.

Performance Tips

  • Chain directly after the Slack Input Node to use the responseUrl for immediate command responses.
  • Use the AI Data Processing Node between Slack Input and Slack Output to build intelligent Slack bots.