Hi,
2 questions about the carousel template:
- Is it possible to show just one button?
- How can I navigate to another URL of the site the bot is implemented in when clicking the button?
Hi,
2 questions about the carousel template:
Hello @philip ,
Welcome to Kore Community
Thank you for stopping by!!
If you see the template code when you select carousel,
var elements = [
{
"title": "Welcome to Peter's Hats1",
"image_url": "https://previews.123rf.com/images/rez_art/rez_art1405/rez_art140500072/28632615-three-beef-tacos-with-cheese-lettuce-and-tomatos-Stock-Photo-taco.jpg",
"subtitle": "carousel subtitle",
"default_action": {
"type": "web_url",
"url": "https://peterssendreceiveapp.ngrok.io/view?item=103"
},
"buttons": [{
"type": "postback",
"title": "Buy now",
"payload": "DEVELOPER_DEFINED_PAYLOAD_0"
}, {
"type": "web_url",
"title": "Open Google",
"url": "https://www.google.com"
}]
}];
var message = {
"type": 'template',
"payload": {
"template_type": 'carousel',
"elements": []
}
};
message.payload.elements = elements;
print(JSON.stringify(message));
Output.
https://www.google.com