Articles

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

AttributeMandatoryDescriptionValues
typeYesThe type of the input to be displayed to the visitorarticles
articlesyesYou can specify the array of article ids that you would like to display to the visitor"articles":[121212121,1234343434]
descriptionNoYou can specify the description for the article you display to the visitors."description":" your description"

SalesIQ Script Input:


				{
  "text": "Here are your reference articles",
  "image": "http://zylker.com/help/common.png",
  "type": "articles",
  "description": "Articles about discount in home needs",
  "articles": [
    "121212121",
    "123434343",
    "123334678"
  ]
}			

Dialogflow Input:


				{
  "platform": "ZOHOSALESIQ",
  "action": "reply",
  "replies": [
    {
      "text": "Here are your reference articles",
      "image": "http://zylker.com/help/common.png",
      "type": "articles",
      "description": "Articles about discount in home needs",
      "articles": [
         "121212121",
         "123434343",
         "123334678"
    ]
    }
  ]
}			

Watson Assistant:


				"user_defined": {
"zohosalesiq": {
        "replies": [
          {
            "text": "Here are your reference articles",
            "type": "articles",
            "image": "http://zylker.com/help/common.png",
            "title": "Articles about discount in home needs",
            "articles": [
              "121212121",
              "123434343",
              "123334678"
            ]
          }
        ]
}
}			

Zia Skills Platform Input:

For Context Handler function:


result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", [{
    "text": "Here are your reference articles",
    "image": "http://zylker.com/help/common.png",
    "type": "articles",
    "description": "Articles about discount in home needs",
    "articles": [
        "121212121",
        "123434343",
        "123334678"
    ]
}]);
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 your reference articles",
  "image": "http://zylker.com/help/common.png",
  "type": "articles",
  "description": "Articles about discount in home needs",
  "articles": [
    "121212121",
    "123434343",
    "123334678"
  ]
}]);
result.put("data", response);
return result;

 

Output: