How can I open slack modal during slack workflow execution step?

425 views Asked by At

I am currently working on slack app with custom workflow step which is used to get some data from user during execution using modals,

I can do that using built-in forms from workflow builder like in the attached image.

Built in workflow form

However my form is more interactive and requires input fields to be changed based on user selection, to do that I am trying to consume https://slack.dev/java-slack-sdk/guides/modals API with custom workflow step.

My question is, do I have any chance to call open modal API, during custom workflow execution step: https://api.slack.com/events/workflow_step_execute ?

So far I failed to identify what can I use as triggerId during workflow step execution.

Thank you in advance and I do understand my question is complex, so will be happy to provide more information.

2

There are 2 answers

0
sandra On BEST ANSWER

Unfortunately, it's not possible to trigger a modal from within a Workflow. Workflow Builder currently doesn't support conditional interactivity either. Sorry I don't have better news. On the plus side, Workflow Builder is going to see some significant upgrades this year!

0
Bruno Souza On

Unfortunately it's one of the biggest requests and I hope slack can build on it soon. A solution that is usually used for this case is to send an ephemeral message in the channel where the workflow was opened, with a button to open the modal.