Slider Option

This card can be used to collect the input from the visitor with a slider interface ie., they can choose a range starting from the first in the pre-defined range of inputs.

AttributeMandatoryDescriptionValues
typeYesThe type of the input to be displayed to the visitorslider
valuesYesAn array of string you would like to mark in the slider as optionsYou can enter maximum of 10 options in the array, and the character limit for each option is 10.

SalesIQ Script Input:


				{
  "type": "slider",
  "values": [
    "Sad",
    "Neutral",
    "Happy"
  ]
}			

Dialogflow Input:


				{
  "platform": "ZOHOSALESIQ",
  "input": {
    "type": "slider",
    "values": [
      "Sad",
      "Neutral",
      "Happy"
    ]
  }
}			

Watson Assistant:


				"user_defined": {
"zohosalesiq": {
        "input": {
          "type": "slider",
          "values": [
            "Sad",
            "Neutral",
            "Happy"
          ]
        }
}
}			

Zia Skills Platform Input:

For Param Loader function:


result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {
    "Choose a range"
});
response.put("input", {
  "type": "slider",
  "values": [
    "Sad",
    "Neutral",
    "Happy"
  ]
});
additionalParams = {
    {
        "name": "slider",
        "data_type": "INTEGER",
        "input_mode": "TEXTUAL",
        "prompt_msg": "Choose a range",
        "data": response
    }
};
result.put("additionalParams", additionalParams);
return result;

For Context Handler function:


result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {
    "Choose a range"
});
response.put("input", {
    "type": "slider",
    "values": [
        "Sad",
        "Neutral",
        "Happy"
    ]
});
prompt = Map();
prompt.put("param_name", "slider");
prompt.put("data", response);
result.put("prompt", prompt);
result.put("todo", "prompt");
return result;

For Execution function:


result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {
    "Choose a range"
});
response.put("input", {
  "type": "slider",
  "values": [
    "Sad",
    "Neutral",
    "Happy"
  ]
});
result.put("data", response);
return result;

 

Output: