Skippable
This can be used with all the input cards. It shows a skip button along with the input widgets, with which the visitor can choose to skip responding to the particular question.
Use Case:
SalesIQ Scripts:
response = map();
response.put("action", "context");
response.put("context_id", "test");
response.put("questions", [
{
"name": "choice",
"replies": [
"Please choose a number from the following option"
],
"input": {
"type": "select",
"options": [
"one",
"two"
]
},
"skippable": "true"
}
]);
return response;
Dialogflow:
{
"platform": "ZOHOSALESIQ",
"replies": [
"Please choose a number from the following option"
],
"input": {
"type": "select",
"options": [
"one",
"two"
]
},
"skippable": "true"
}
Watson Assistant:
"user_defined": {
"zohosalesiq":{
"action": "reply",
"replies": [
"Please choose a number from the following option"
],
"input": {
"type": "select",
"options": [
"one",
"two"
]
},
"skippable": "true"
}
}
Zia Skills:
Context Handler function:
result = Map();
response = Map();
response.put("action", "reply");
response.put("replies",[
"Please choose a number from the following option"
]);
response.put("input",{
"type": "select",
"options": [
"one",
"two"
]
});
response.put("skippable", "true");
prompt = Map();
prompt.put("param_name", "reply");
prompt.put("data", response);
result.put("prompt", prompt);
result.put("todo", "prompt");
return result;