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
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      • 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,

      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方