Links

You can display the links to the visitors along with the text and image using this widget.

AttributeMandatoryDescriptionValues
typeYesThe type of the input to be dispalyed to the visitorlinks
linksyesYou can specify the array of urls that you would like to display to the visitor

{          

  "url" : "zylker.com "       

}

SalesIQ Script Input:


				{
  "text": "Here are the references",
  "image": "http://zylker.com/help/common.png",
  "type": "links",
  "links": [
    {
      "url": "https://zylker.com/home",
      "text": "Zylker-home",
      "icon": "http://zylker.com/help/home.png"
    },
    {
      "url": "https://zylker.com/special-discounts",
      "text": "Zylker-discounts",
      "icon": "http://zylker.com/help/discounts.png"
    }
  ]
}			

Dialogflow Input:


				{
  "platform": "ZOHOSALESIQ",
  "action": "reply",
  "replies": [
  {
    "text": "Here are the references",
    "image": "http://zylker.com/help/common.png",
    "type": "links",
    "links": [
    {
      "url": "https://zylker.com/home",
      "text": "Zylker-home",
      "icon": "http://zylker.com/help/home.png"
    },
    {
      "url": "https://zylker.com/special-discounts",
      "text": "Zylker-discounts",
      "icon": "http://zylker.com/help/discounts.png"
    }
    ]
  }
  ]
}			

Watson Assistant:


				"user_defined": {
"zohosalesiq": {
  "replies": [
    {
      "text": "Here are the references",
      "type": "links",
      "image": "http://zylker.com/help/common.png",
      "links": [
        {
          "url": "https://zylker.com/home",
          "icon": "http://zylker.com/help/home.png",
          "text": "Zylker-home"
        },
        {
          "url": "https://zylker.com/special-discounts",
          "icon": "http://zylker.com/help/discounts.png",
          "text": "Zylker-discounts"
        }
      ]
    }
  ]
}			

Zia Skills Platform Input:

For Context Handler function:


result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", [{
            {
                "text": "Here are the references",
                "image": "http://zylker.com/help/common.png",
                "type": "links",
                "links": [{
                        "url": "https://zylker.com/home",
                        "text": "Zylker-home",
                        "icon": "http://zylker.com/help/home.png"
                    },
                    {
                        "url": "https://zylker.com/special-discounts",
                        "text": "Zylker-discounts",
                        "icon": "http://zylker.com/help/discounts.png"
                    }
                ]
            }]); 
prompt = Map(); 
prompt.put("param_name", "rating"); 
prompt.put("data", response); 
result.put("prompt", prompt); 
result.put("todo", "prompt");
return result;

For Execution function:


result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", [{
  "text": "Here are the references",
  "image": "http://zylker.com/help/common.png",
  "type": "links",
  "links": [
    {
      "url": "https://zylker.com/home",
      "text": "Zylker-home",
      "icon": "http://zylker.com/help/home.png"
    },
    {
      "url": "https://zylker.com/special-discounts",
      "text": "Zylker-discounts",
      "icon": "http://zylker.com/help/discounts.png"
    }
  ]
}]);
result.put("data", response);
return result;

 

Output: