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
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.
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
As per Infobip site, the message types supported include Rich Card and Carousel, thus buttons and images should be allowed. You can find the details from Infobip documentation.