Overview
This node sends interactive question messages to a Slack channel using a Slack bot. It supports two types of questions: a two-button choice or a dropdown menu, allowing users in the Slack channel to respond by clicking buttons or selecting options.
Common scenarios include:
- Collecting quick feedback or decisions from team members.
- Running polls or surveys within Slack channels.
- Prompting users for input during automated workflows.
For example, you could ask "Do you approve the release?" with two buttons labeled "Yes" and "No", or present a dropdown menu with multiple options for users to select from.
Properties
| Name | Meaning |
|---|---|
| Bot Token | The Slack bot token used to authenticate API requests. |
| Channel ID | The Slack channel ID where the message will be sent. |
| Question Type | Type of question to send; options are: "Two Button" or "Dropdown". |
| Message | The main message text displayed to users. |
| Button 1 Text | (Two Button only) Text shown on the first button. |
| Button 1 Value | (Two Button only) Value assigned to the first button when clicked. |
| Button 2 Text | (Two Button only) Text shown on the second button. |
| Button 2 Value | (Two Button only) Value assigned to the second button when clicked. |
| Dropdown Option (Comma Separated List) | (Dropdown only) Comma-separated list of option labels for the dropdown menu. |
| Dropdown Values (Comma Separated List) | (Dropdown only) Comma-separated list of values corresponding to each dropdown option. |
Output
The node outputs a JSON array where each item contains the parameters used for that execution, including:
{
"questionType": "twoButton" | "dropdown",
"message": "string",
"but1text": "string",
"but1val": "string",
"but2text": "string",
"but2val": "string",
"dropdownOptions": "string"
}
This output reflects the question configuration sent to Slack but does not include user responses.
The node does not output binary data.
Dependencies
- Requires a valid Slack bot token with permissions to post messages in the target channel.
- Uses the official Slack Web API client library to send messages.
- The Slack channel ID must be provided and accessible by the bot.
Troubleshooting
- Invalid Auth Token: If the bot token is incorrect or lacks required scopes, the Slack API will reject the request. Ensure the token is valid and has chat:write permission.
- Channel Not Found or Access Denied: Verify the channel ID is correct and the bot is a member of the channel.
- Malformed Message Blocks: The node constructs Slack Block Kit message payloads. Incorrect formatting or missing fields may cause errors. This node statically builds blocks based on inputs, so ensure all required properties are set.
- Empty Dropdown Options or Values: For dropdown questions, both options and values must be provided as comma-separated lists with matching lengths.
- Network Issues: Slack API calls require internet access; network problems can cause failures.