Ask a Question via Slack
Creating a Workflow using the Ask a question via Slack Action
In the Workflow Editor, under the New section block, click to open the Action panel or drag actions from the left-hand menu into your step. Next, search for and select the Ask a question via Slack option.
- Enter the following parameters in your step.
Parameter | Description |
---|---|
To | The recipient's email address or a the name of a Slack channel. |
Question | Questions to be answered |
Answers | Possible answers separated by a comma |
Response message | A message the space of the question will receive after responding |
Thread timestamp (only if sent to a channel) | The channel's timestamp |
Keep question after user response | Check the box to Keep the question in the channel after the user responds as well as user's response. |
Include user info | Check the box to include the user's information together with their response. |
Add Answer in free text | Check the box to add an answer in free text. |
Response message | A message the recipient of the question will receive after responding |
Timeout in minutes (optional) | Timeout in minutes for the recipient to respond |
Default timeout response (optional) | The default answer if the recipient does not respond |
- Next, you need to create a connection with Slack. In the top-right corner of your Step, select Connection required. If you've already set up a Slack connection, choose one from the available options, or create a new one by selecting and configuring the Slack connection. Then, click Create connection to proceed.
- Proceed by Running your Workflow , in order to send a your question to Slack.
While the user is waiting for a response, the Step output shows Workflow execution paused.
The recipient will receive a Slack notification. An answer is then selected and the Workflow continues to run in accordance with the answer.
- Your question is then received via Slack.
- You can then navigate back to your workflow where you can find the response to your question in the output of your Workflow.
If the recipient does not respond before the timeout, the Workflow uses the default timeout response.
Using Ask a question- Advanced
The advanced version of Ask a question via Slack, is also very similar to Ask a question via Slack and works the exact same way.
However, they have additional fields:
The output (after the answer is submitted by the recipient) is similar to the one of Slack Interactivity.
The
answer
will be found at{{steps.Sn.output.values.answer}}
.The
reason
value, if requested by the creator of the workflow and filled by the recipient, will be found at{{steps.Sn.output.values.reason}}
.