Suggestion in context handler

Suggestion in context handler

Using suggestion option we can provide choices to user, my query is whether we can add suggestions dynamically or we have to create a map for each value like this

suggestions = Map();
list = List();
entry = Map();
entry.put("text","Contacts");
list.add(entry);
entry1 = Map();
entry1.put("text","Channels");
list.add(entry1);
response.put("text","Hey " + user.get("first_name") + " ,choose one option from the list! I can help you with these. :smile:");
suggestions.put("list",list);
response.put("suggestions",suggestions);

Source : https://www.zoho.com/cliq/help/platform/bot-messagehandler.html
    • Sticky Posts

    • No longer get Cliq notifications on phone if app not started

      On Android, I used to get notifications on my phone whether I was in the app, or it was started. Then about a month ago, I stopped seeing notifications on my phone UNLESS I had already started the app. So if I reboot my phone, and never start the app,