Articles 

This widget helps to display the articles to the visitors along with the text and images.

AttributeMandatoryDescriptionValues
typeYesThe type of input to be displayed to the visitorarticles
articlesyesSpecify the array of article IDs that you would like to display to the visitor"articles":[121212121,1234343434]
descriptionNoSpecify the description for the article you display to the visitors."description":" your description"

Note: The articles will not be displayed if the article ID is not mentioned. 

Channel compatibility and limitations

   

  • The card is supported on Facebook Messenger, Instagram, WhatsApp and Telegram. 
  • A public URL will be used to display the articles.
  • When clicking on the URL, the articles will open by the default browser.

Output

Use Case

Copied{
  "type": "articles",
  "text": "Zylker Store's Terms & Condition :",
  "image": "http://zylker.com/help/common.png",
  "description": "Here is a list of articles",
  "articles": [
    "121212121",
    "123434343",
    "123334678"
    "123455438"
  ]
}
Copied//Context handler function
result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", [{
    "type": "articles",
    "text": "Zylker Store's Terms & Condition :",
    "image": "http://zylker.com/help/common.png",
    "description": "Here is an list of articles",
    "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
result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", [{
    "type": "articles",
    "text": "Zylker Store's Terms & Condition :",
    "image": "http://zylker.com/help/common.png",
    "description": "Here is an list of articles",
    "articles": [
        "121212121",
        "123434343",
        "123334678"
    ]
}]);
result.put("data", response);
return result;
Copied{
  "type": "articles",
  "text": "Zylker Store's Terms & Condition :",
  "image": "http://zylker.com/help/common.png",
  "description": "Here is a list of articles",
  "articles": [
    "121212121",
    "123434343",
    "123334678"
    "123455438"
  ]
}
Copied{
  "platform": "ZOHOSALESIQ",
  "action": "reply",
  "replies": [
    {
      "type": "articles",
      "text": "Zylker Store's Terms & Condition :",
      "image": "http://zylker.com/help/common.png",
      "description": "Here is a list of articles",
      "articles": [
        "121212121",
        "123434343",
        "123334678"
      ]
    }
  ]
}
Copied"user_defined": {
  "zohosalesiq": {
    "replies": [
      {
        "text": "Here are your reference articles",
        "type": "articles",
        "image": "http://zylker.com/help/common.png",
        "description": "Here is a list of articles",
        "articles": [
          "121212121",
          "123434343",
          "123334678"
        ]
      }
    ]
  }
}
Copied"channelData":{
        "zohosalesiq": {
            "replies": [
              {
                "text": "Here are your reference articles",
                "type": "articles",
                "image": "http://zylker.com/help/common.png",
                "description": "Here is a list of articles",
                "articles": [
                  "121212121",
                  "123434343",
                  "123334678"
                ]
              }
            ]
        }
    }