Call To Action(CTA)

These are buttons that can be added to bot replies and can perform different actions in your client with Client Actions

Note:

The CTA is currently supported in text reply, single product and multiple product cards

Use Case:

Copiedresult = Map();
response = Map();
response.put("action", "reply");
response.put("replies",[{
         "actions":[
            {
               "label":"See More",
               "name":"Wardrobe",
               "type":"url",
               "link":"https://www.zylkerfurniture.com/wardrobe.html"
            },
            {
               "label":"Book",
               "name":"bookbtn",
               "type":"client_action",
               "clientaction_name":"book_now"
            }
         ],
         "text":"CTA Buttons"
      }"]);
prompt = Map();
prompt.put("param_name", "end");
prompt.put("data", response);
result.put("prompt", prompt);
result.put("todo", "prompt");
return result;