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.

Use Cases:

SalesIQ Scripts:


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

Dialogflow:


{
  "platform": "ZOHOSALESIQ",
  "replies": [
      "Happiness rating for the chat you just had with Zyt"
    ],
  "input": {
    "type": "slider",
    "values": [
      "Sad",
      "Neutral",
      "Happy"
    ]
  }
}

Watson Assistant:


"user_defined": {
  "zohosalesiq": {
    "replies": [
      "Happiness rating for the chat you just had with Zyt"
    ],
    "input": {
      "type": "slider",
      "options": [
        "Sad",
        "Neutral",
        "Happy"
      ]
    }
  }
}

Zia Skills:

Context Handler function:


result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", [
    "Happiness rating for the chat you just had with Zyt"
]);
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;

Output: