Image

This widget helps to display text and images.

AttributeMandatoryDescriptionValues
typeYesThe type of input to be displayed to the visitorimage
imageyesYou can specify the image that you would like to display to the visitor{  
   "image":"image URL",
}
image_positionnoTo fit or fill the images in mobileimage_position : fit,fill
Channel compatibility and limitations

     

  • Facebook, Instagram, WhatsApp, Telegram, and LINE support images, video URLs, and links. The bot displays the same as a website.

Output

Use Case

Copied{
  "text": "Google Pixel (White, Blue) - Expected Release: November 2021 - ₹ 90,000 - 1,20,000 Only",
  "image": "http://zylker.com/store/mobile/google_pixel.jpg/234544333445"
  "image_position" : "fit|fill"
}
Copied//Context handler function
result = Map();
response = Map();
response.put("action", "reply");
response.put("replies",[{
    "text": "Google Pixel (White, Blue) - Expected Release: November 2021 - ₹ 90,000 - 1,20,000 Only",
    "image": "http://zylker.com/store/mobile/google_pixel.jpg/234544333445"
}]);
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",[{
    "text": "Google Pixel (White, Blue) - Expected Release: November 2021 - ₹ 90,000 - 1,20,000 Only",
    "image": "http://zylker.com/store/mobile/google_pixel.jpg/234544333445"
}]);
result.put("data", response);
return result;
Copied{
  "text": "Google Pixel (White, Blue) - Expected Release: November 2021 - ₹ 90,000 - 1,20,000 Only",
  "image": "http://zylker.com/store/mobile/google_pixel.jpg/234544333445"
  "image_position" : "fit|fill"
}
Copied{
  "platform": "ZOHOSALESIQ",
  "action": "reply",
  "replies": [
    {
      "text": "Google Pixel (White, Blue) - Expected Release: November 2021 - ₹ 90,000 - 1,20,000 Only",
      "image": "http://zylker.com/store/mobile/google_pixel.jpg/234544333445"
      "image_position" : "fit|fill"
    }
  ]
}
Copied"user_defined": {
  "zohosalesiq": {
    "replies": [
      {
        "text": "Google Pixel (White, Blue) - Expected Release: November 2021 - ₹ 90,000 - 1,20,000 Only",
        "image": "http://zylker.com/store/mobile/google_pixel.jpg/234544333445"
        "image_position" : "fit|fill"
      }
    ]
  }
}
Copied"channelData":{
        "zohosalesiq": {
            "replies": [
              {
                 "text": "Google Pixel (White, Blue) - Expected Release: November 2021 - ₹ 90,000 - 1,20,000 Only",
                 "image": "http://zylker.com/store/mobile/google_pixel.jpg/234544333445"
                 "image_position" : "fit|fill"
              }
            ]
        }
    }