Time Slots

You can use this card to display the list of time slots in the window and allow the visitor to pick one from the given slots.

AttributeMandatoryDescriptionValues
typeYesThe type of the input to be displayed to the visitortimeslots
slotsYesYou can specify the array of time slots in hh:mm (24 hrs) format that you would like to display[hh:mm, hh:mm]
tzNoYou can specify to allow the visitor to choose the timezone in the calendartrue - To allow the visitor to choose the timezone in the calendar. If not specified, then the timezone of the visitor's device will be taken by default.

Use Cases:

SalesIQ Scripts:


{
  "type": "timeslots",
  "tz": true,
  "label": "Schedule a meeting",
  "slots": [
    "09:00",
    "09:30",
    "10:00",
    "10:30",
    "11:00",
    "11:30"
  ]
}

Dialogflow:


{
  "platform": "ZOHOSALESIQ",
  "replies": [
    "Schedule a meeting"
  ],
  "input": {
    "type": "timeslots",
    "label": "Select time",
    "tz": false,
    "slots": [
      "09:00",
      "09:30",
      "10:00",
      "10:30",
      "11:00",
      "11:30"
    ]
  }
}

Watson Assistant:


"user_defined": {
  "zohosalesiq": {
    "replies": [
      "Schedule a meeting"
    ],
    "input": {
      "type": "timeslots",
      "tz": true,
      "label": "Select time",
      "slots": [
        "09:00",
        "09:30",
        "10:00",
        "10:30",
        "11:00",
        "11:30"
      ]
    }
  }
}

Zia Skills:

Context Handler function:


result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", [
    "Schedule a meeting"
]);
response.put("input", {
    "type": "timeslots",
    "tz": true,
    "label": "Select time",
    "slots": [
        "09:00",
        "09:30",
        "10:00",
        "10:30",
        "11:00",
        "11:30"
    ]
});
prompt = Map();
prompt.put("param_name", "rating");
prompt.put("data", response);
result.put("prompt", prompt);
result.put("todo", "prompt");
return result;

Output: