User dialog of tasks
When setting up tasks with the tasks app you have the possibility to add a dialog which pops up when when the user wants to execute the task.
Fill out the field with a JSON configuration like in the example below to see how it works.
The provided user input will be available in the webhook payload under the attribute dialog_values
.
Example
To show the dialog above following JSON is required:
{
"name": {
"type": "text",
"display_name": "What's your name?"
},
"environment": {
"type": "option",
"options": [
{
"name": "Dev",
"value": "dev"
},
{
"name": "Staging",
"value": "staging"
}
],
"display_name": "Which environment?"
}
}
Available types
text
option