Links
You can display the links to the visitors along with the text and image using this widget.
Attribute | Mandatory | Description | Values |
type | Yes | The type of the input to be dispalyed to the visitor | links |
links | yes | You can specify the array of urls that you would like to display to the visitor | { "url" : "zylker.com " } |
Note: "target" : "_self" will open the links in the same page.
Use Cases:
SalesIQ Scripts:
{
"type": "links",
"text": "Here are the references",
"image": "http://zylker.com/help/common.png",
"links": [
{
"url": "https://zylker.com/home",
"text": "Zylker-home",
"icon": "http://zylker.com/help/home.png",
"target" : "_self"
},
{
"url": "https://zylker.com/special-discounts",
"text": "Zylker-discounts",
"icon": "http://zylker.com/help/discounts.png"
}
]
}
Dialogflow:
{
"platform": "ZOHOSALESIQ",
"action": "reply",
"replies": [
{
"type": "links",
"text": "Here are the references",
"image": "http://zylker.com/help/common.png",
"links": [
{
"url": "https://zylker.com/home",
"text": "Zylker-home",
"icon": "http://zylker.com/help/home.png",
"target" : "_self"
},
{
"url": "https://zylker.com/special-discounts",
"text": "Zylker-discounts",
"icon": "http://zylker.com/help/discounts.png"
}
]
}
]
}
Watson Assistant:
"user_defined": {
"zohosalesiq": {
"replies": [
{
"type": "links",
"text": "Here are the references",
"image": "http://zylker.com/help/common.png",
"links": [
{
"url": "https://zylker.com/home",
"text": "Zylker-home",
"icon": "http://zylker.com/help/home.png",
"target" : "_self"
},
{
"url": "https://zylker.com/special-discounts",
"text": "Zylker-discounts",
"icon": "http://zylker.com/help/discounts.png"
}
]
}
]
}
}
Zia Skills:
Context Handler function:
result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", [{
"type": "links",
"text": "Here are the references",
"image": "http://zylker.com/help/common.png",
"links": [
{
"url": "https://zylker.com/home",
"text": "Zylker-home",
"icon": "http://zylker.com/help/home.png",
"target" : "_self"
},
{
"url": "https://zylker.com/special-discounts",
"text": "Zylker-discounts",
"icon": "http://zylker.com/help/discounts.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": "Here are the references",
"image": "http://zylker.com/help/common.png",
"links": [
{
"url": "https://zylker.com/home",
"text": "Zylker-home",
"icon": "http://zylker.com/help/home.png",
"target" : "_self"
},
{
"url": "https://zylker.com/special-discounts",
"text": "Zylker-discounts",
"icon": "http://zylker.com/help/discounts.png"
}
]
}]);
result.put("data", response);
return result;