Images from backend are not able to diaplay in telegram,facebook,google assistance

var s=context.CarouselList//context.ProductData[0].Data[0].Name
var elem=[]
// var d=getIndex(context.entities.HLookingFor)
for(var i=0;i<s.length;i++)
{
var e={},name
if(s[i].Size===undefined)
{
name=s[i].Brand+" “+s[i].Product+” “+s[i].Type
}
else{
name=s[i].Brand+” “+s[i].ProductName+” “+s[i].Type+” “+s[i].Size
}
var value=s[i].Value
var image=s[i].Image
var s=context.CarouselList//context.ProductData[0].Data[0].Name
var elem=[]
// var d=getIndex(context.entities.HLookingFor)
for(var i=0;i<s.length;i++)
{
var e={},name
if(s[i].Size===undefined)
{
name=s[i].Brand+” “+s[i].Product+” “+s[i].Type
}
else{
name=s[i].Brand+” “+s[i].ProductName+” “+s[i].Type+” "+s[i].Size
}
var value=s[i].Value
var image=s[i].Image

e["title"]=name
e["image_url"]=image
e["subtitle"]=value
e["buttons"]=[{
        "type": "postback",
        "title": "Add to cart",
        "payload": i//"Add @"+name+"@"+value+"@"+image    
}]
elem.push(e)

}

var message = {
“type”: ‘template’,
“title”:"",
“payload”: {
“template_type”: ‘carousel’,
“elements”: []
}
};
message.payload.elements = elem;
print(JSON.stringify(message));

e["title"]=name
e["image_url"]=image
e["subtitle"]=value
e["buttons"]=[{
        "type": "postback",
        "title": "Add to cart",
        "payload": i//"Add @"+name+"@"+value+"@"+image    
}]
elem.push(e)

}
var message={}
“message” : {
“carousel_message”: {
“cards”: [
“title”:"",
“payload”: {
“elements”: []
}
]
}
};
message.payload.elements = elem;
print(JSON.stringify(message));

I am trying the above code in order to display in images in channels telegram,facebook,google assistance but could not able to display anything.could you please suggest anything

@shirisha.m
All the channels have their own JS templates. One template cannot serve the purpose and need for separate channels.
Please refer to the channel-specific documentations (Kore does not control the channel templates and hence we cannot maintain any documentation on the template which will work on specific channels. Kore only maintains the documentation which will work on Kore channels - like Web-SDK, Widget SDK etc.) of the allowed templates and have channel-specific responses configured on the bot.

I have checked the telegram integration by providing the sample javascript but it is not providing any responses.Do you have any documentations regarding that.

@shirisha.m
What is the template you are using for Telegram? Please share the template and the link you are referring to here. And like I mentioned, we do not maintain any channel template-specific documentation.
We will still try to help you out.

HI Swagat,

I am using this template but could not get the images in telegram,facebook,google assistance.I have tried all the ways in javascript but could not get the images .

var s=context.CarouselList//context.ProductData[0].Data[0].Name
var elem=[]
// var d=getIndex(context.entities.HLookingFor)
for(var i=0;i<s.length;i++)
{
var e={},name
if(s[i].Size===undefined)
{
name=s[i].Brand+” “+s[i].Product+” “+s[i].Type
}
else{
name=s[i].Brand+” “+s[i].ProductName+” “+s[i].Type+” "+s[i].Size
}
var value=s[i].Value
var image=s[i].Image

e["title"]=name
e["image_url"]=image
e["subtitle"]=value
e["buttons"]=[{
        "type": "postback",
        "title": "Add to cart",
        "payload": i//"Add @"+name+"@"+value+"@"+image    
}]
elem.push(e)

}

var message = {
“type”: ‘template’,
“title”:"",
“payload”: {
“template_type”: ‘carousel’,
“elements”: []
}
};
message.payload.elements = elem;
print(JSON.stringify(message));

hi can we have any template to display buttons or images in watsapp