Links 

This widget allows displaying the links to the visitors along with the text and image using this widget.

AttributeMandatoryDescriptionValues
typeYesThe type of input to be displayed to the visitorlinks
linksyesSpecify the array of URLs that you would like to display to the visitor.

{          

  "url" : "zylker.com "       

}

Channel compatibility and limitations

 

  • The card is supported on Facebook, Instagram, WhatsApp and Telegram. 
  • For Facebook, Instagram, and Telegram the bot displays the links/URLs along with the text as a clickable button.
  • For WhatsApp, the bot displays the raw links/URLs. 

Output

Use Case

Copied{
  "type": "links",
  "text": "Cliq - Wireless Headphones 25% Off- $89.00 Only",
  "image": "http://zylker.com/store/Cliq-wireless-headphones-34433.png",
  "links": [
    {
      "url": "http://zylker.com/store/Cliq-wireless-headphones/34452//know-more",
      "text": "Click here to buy",
      "icon": "http://zylker.com/help/home.png"
    }
  ]
}
Copied//Context handler function
result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", [{
  "type": "links",
  "text": "Cliq - Wireless Headphones 25% Off- $89.00 Only",
  "image": "http://zylker.com/store/Cliq-wireless-headphones-34433.png",
  "links": [
    {
      "url": "http://zylker.com/store/Cliq-wireless-headphones/34452//know-more",
      "text": "Click here to buy",
      "icon": "http://zylker.com/help/home.png"
    }
  ]
}]);
prompt = Map(); 
prompt.put("param_name", "reply"); 
prompt.put("data", response); 
result.put("prompt", prompt); 
result.put("todo", "prompt");
return result;

//Execution function
result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", [{
  "type": "links",
  "text": "Cliq - Wireless Headphones 25% Off- $89.00 Only",
  "image": "http://zylker.com/store/Cliq-wireless-headphones-34433.png",
  "links": [
    {
      "url": "http://zylker.com/store/Cliq-wireless-headphones/34452//know-more",
      "text": "Click here to buy",
      "icon": "http://zylker.com/help/home.png"
    }
  ]
}]);
result.put("data", response);
return result;
Copied{
  "type": "links",
  "text": "Cliq - Wireless Headphones 25% Off- $89.00 Only",
  "image": "http://zylker.com/store/Cliq-wireless-headphones-34433.png",
  "links": [
    {
      "url": "http://zylker.com/store/Cliq-wireless-headphones/34452//know-more",
      "text": "Click here to buy",
      "icon": "http://zylker.com/help/home.png"
    }
  ]
}
Copied{
  "platform": "ZOHOSALESIQ",
  "action": "reply",
  "replies": [
    {
      "type": "links",
      "text": "Cliq - Wireless Headphones
25% Off- $89.00 Only",
      "image": "http://zylker.com/store/Cliq-wireless-headphones-34433.png",
      "links": [
        {
          "url": "http://zylker.com/store/Cliq-wireless-headphones/34452//know-more",
          "text": "Click here to buy",
          "icon": "http://zylker.com/help/home.png"
        }
      ]
    }
  ]
}
Copied"channelData":{
        "zohosalesiq": {
            "replies": [{
              "text": "Cliq - Wireless Headphones
25% Off- $89.00 Only",
              "type": "links",
              "image": "http://zylker.com/store/Cliq-wireless-headphones-34433.png",
              "links": [
                {
                  "url": "http://zylker.com/store/Cliq-wireless-headphones/34452//know-more",
                  "text": "Click here to buy",
                  "icon": "http://zylker.com/help/home.png"
                }
              ]
            }
          ]
        }
    }
Copied"channelData":{
        "zohosalesiq": {
            "replies": [
              {
                "text": "Here are your reference articles",
                "type": "articles",
                "image": "http://zylker.com/help/common.png",
                "title": "Here is a list of articles",
                "articles": [
                  "121212121",
                  "123434343",
                  "123334678"
                ]
              }
            ]
        }
    }