Carousel buttons


2 questions about the carousel template:

  1. Is it possible to show just one button?
  2. How can I navigate to another URL of the site the bot is implemented in when clicking the button?

Hello @philip :smiley:,

Welcome to Kore Community :clap:

Thank you for stopping by!!

If you see the template code when you select carousel,

You will notice that the elements of the carousel are defined in an array. If you use one element it will show only one item. Also, for buttons, if you want to go to a URL, try the below code inside advanced JS section of web/Mobile client override. One button is of type postback - this sends a message to the bot. url can just open a page without asking the bot to do anything.

var elements = [
        "title": "Welcome to Peter's Hats1",
        "image_url": "",
        "subtitle": "carousel subtitle",
        "default_action": {
            "type": "web_url",
            "url": ""
        "buttons": [{
            "type": "postback",
            "title": "Buy now",
            "payload": "DEVELOPER_DEFINED_PAYLOAD_0"
        }, {
            "type": "web_url",
            "title": "Open Google",
            "url": ""
var message = {
    "type": 'template',
    "payload": {
        "template_type": 'carousel',
        "elements": []
message.payload.elements = elements;


If you click on Open google, it will open the