Articles

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

AttributeMandatoryDescriptionValues
typeYesThe type of 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"

 

Note:

If the article ID is not mentioned, the articles will not be displayed.

Use Cases:

SalesIQ Scripts:

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

Dialogflow:

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

Watson Assistant:

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

Zia Skills:

Context Handler function:

Copiedresult = Map();
response = Map();
response.put("action", "reply");
response.put("replies", [{
    "type": "articles",
    "text": "Here are your reference articles",
    "image": "http://zylker.com/help/common.png",
    "description": "Articles about discount in home needs",
    "articles": [
        "121212121",
        "123434343",
        "123334678"
    ]
}]);
prompt = Map();
prompt.put("param_name", "reply");
prompt.put("data", response);
result.put("prompt", prompt);
result.put("todo", "prompt");
return result;

Execution function:

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

Output: