Custom Rasa/webchat and facebook messenger carousel

@jpvgc45 you need to add attachment key to the carousel and json_message in the dispatcher

test_carousel = {

        "attachment":

        {

            "type": "template",

            "payload": {

                "template_type": "generic",

                "elements": [

                    {

                        "title": "Title",

                         "subtitle": "subtitle",

                        "image_url": "url of the image",


                        "buttons": [

                            {

                                "title": "visit",

                                "url": "webpage url to open",

                                "type": "web_url"

                            }

                        ]

                    },

                    {

                        "title": "Title",

                         "subtitle": "subtitle",

                        "image_url": "url of the image",


                        "buttons": [

                            {

                                "title": "Title",

                                "url": "webpage url to open",

                                "type": "web_url"

                            }

                        ]

                    },

                    {

                        "title": "Title",

                         "subtitle": "subtitle",

                        "image_url": "url of the image",


                        "buttons": [

                            {

                                "title": "Title",

                                "url": "webpage url to open",

                                "type": "web_url"

                            }

                        ]

                    },

                    {

                        "title": "Title",

                        "subtitle": "subtitle",

                        "image_url": "url of the image",

                        "buttons": [

                            {

                                "title": "Title",

                                "url": "webpage url to open",

                                "type": "web_url"

                            }

                        ]

                    },

                    {

                        "title": "Title",

                        "subtitle": "subtitle",

                        "image_url": "url of the image",


                        "buttons": [

                            {

                                "title": "Title",

                                "url": "webpage url to open",

                                "type": "web_url"

                            }

                        ]

                    }

                ]

            }

        }

    }

    dispatcher.utter_message(json_message=test_carousel)
1 Like