Skip to main content
PRO Feature

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

Slack Input Node

The Slack Input Node listens for incoming Slack slash commands and uses them to trigger your workflow. It connects to your Slack workspace using Socket Mode, enabling real-time message handling without exposing a public HTTP endpoint.

Slack Input 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 Input Node Configuration


Output

When a matching slash command is received, the node passes the following data to connected downstream nodes:

FieldTypeDescription
channelIdstringThe Slack channel ID where the command was sent
responseUrlstringURL to send a delayed response to the slash command
userIdstringThe Slack user ID who sent the command
messagestringThe text following the command (and routing ID)

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. AI-Powered Commands: Trigger AI workflows directly from Slack.
  2. Team Automation: Allow team members to run workflows without leaving Slack.
  3. Data Retrieval: Fetch and return data in response to Slack commands.
  4. Multi-Workflow Routing: Use different Routing IDs to run multiple independent workflows from the same bot.

Best Practices

  • Always set a Routing ID when running multiple Slack Input nodes to prevent accidental cross-triggering.
  • Keep tokens secure: Store Bot and App tokens privately; never share them publicly.
  • Use Command Filter correctly: Ensure it matches exactly the command registered in your Slack app manifest.
  • Combine with Slack Output Node: Pair this node with the Slack Output Node to send responses back to users using the responseUrl output.

Troubleshooting

Common Issues

  • Node not receiving commands: Verify the Bot Token, App Token, and Command Filter are all correctly configured. Ensure the Slack app is installed to your workspace and Socket Mode is enabled.
  • Routing ID mismatch: Double-check that users include the correct routing ID in their command.
  • Token errors: Confirm the Bot Token starts with xoxb- and the App Token starts with xapp-.
  • App disconnects: Socket Mode connections may drop; stop and restart the node to reconnect.

Performance Tips

  • Use the Routing ID to isolate workflows and avoid processing unrelated commands.
  • Pair with the Slack Output Node to provide immediate feedback to users.