Slack Trigger
The Slack Trigger block launches your workflow in real time on Slack workspace events like mentions, new channel messages, and file shares.
Key Features
- Real-Time Execution: Triggers workflows instantly via Slack Events API
- Event Selection: Choose which events to listen for
- Channel Scoping: Watch the whole workspace or a single channel
- File Downloads: Optionally download shared files
- Data Mapping: Extracts event data into workflow variables
Configuration
| Parameter | Type | Required | Description |
|---|---|---|---|
| Slack Account | Credentials | Yes | Saved Slack app credentials |
| Trigger On | Array | Yes | Events to subscribe to (mention, message, file shared) |
| Watch Whole Workspace | Boolean | No | Listen in all channels the bot is a member of |
| Channel to Watch | String | No | Specific channel (when not watching whole workspace) |
| Download Files | Boolean | No | Download shared files so blocks can process them |
Setup Guide
- Add the Slack Trigger block and select (or create) Slack credentials.
- Copy the generated Webhook URL.
- In your Slack app settings, enable Event Subscriptions and paste the webhook URL.
- Subscribe to the bot events you selected in the block, then reinstall the app.
Response Mapping
| Value | Description |
|---|---|
| userMessage | The text of the incoming Slack message |
| fileLink | Link to the shared file (when a file event fires) |