Creating an Ask a question Step via Slack
In the New section block, click to open the Action panel. Alternatively, you can drag Actions to your flow, from the menu on the left side of your Editor screen.
Search and select the Ask a question via Slack option. This requires a Slack connection created with OAuth. If you do not have one already follow this link to create a connection.
Enter the following parameters in your step.
Parameter Description To The recipient's email address or a Channel name 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. On the right-hand corner of your Step, go to Connection required then select create new connection and select the Slack option. Then proceed by clicking create connection.
Asking a question via 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.
- A question is then received via Slack.
- 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}}
.