# Caraousel widget with Facebook messenger

**URL:** <https://forum.rasa.com/t/caraousel-widget-with-facebook-messenger/47671>\
**Category:** Rasa Open Source\
**Created:** [September 12, 2021, 8:00pm UTC](https://forum.rasa.com/t/caraousel-widget-with-facebook-messenger/47671 "2021-09-12T20:00:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dummyali](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dummyali](https://forum.rasa.com/u/dummyali)\
**Post date:** [September 12, 2021, 8:00pm UTC](https://forum.rasa.com/t/caraousel-widget-with-facebook-messenger/47671/1 "2021-09-12T20:00:17Z")

</div>

Hello, I have been trying to use carousels in one of my rasa bots, channeled to Facebook messenger, I have tried several ways but couldn’t make it work. This is what I get:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/d/0/d0137982a82f17808779f5914a5326499785ff00.png)

Here is my actions.py:

```auto
class ActionCarousel(Action):

    def name(self) -> Text:

        return "action_products_carousels"

    def run(self, dispatcher, tracker: Tracker, domain: "DomainDict") -> List[Dict[Text, Any]]:

        message = {

            "type": "template",

            "payload": {

                    "template_type": "generic",

                    "elements": [

                        {

                            "title": "Welcome!",

                            "image_url": "https://petersfancybrownhats.com/company_image.png",

                            "subtitle": "We have the right hat for everyone.",

                            "default_action": {

                                "type": "web_url",

                                "url": "https://petersfancybrownhats.com/view?item=103",

                                "webview_height_ratio": "tall",

                            },

                            "buttons": [

                                {

                                    "type": "web_url",

                                    "url": "https://petersfancybrownhats.com",

                                    "title": "View Website"

                                }, {

                                    "type": "postback",

                                    "title": "Start Chatting",

                                    "payload": "DEVELOPER_DEFINED_PAYLOAD"

                                }

                            ]

                        }

                    ]

            }

        }

        dispatcher.utter_message(attachment=message)

        return []

```

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [September 13, 2021, 7:16am UTC](https://forum.rasa.com/t/caraousel-widget-with-facebook-messenger/47671/2 "2021-09-13T07:16:51Z")

</div>

Hi @dummyali! Please see this link for your reference I know you already are but check the syntax for the same : [Generic Template - Messenger Platform - Documentation - Facebook for Developers](https://developers.facebook.com/docs/messenger-platform/send-messages/template/generic#carousel)

Try implement small template first and the go add the caraousel, it will help you to find the issue more easily.

---

<div class="post-metadata">

**Author:** ![dummyali](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dummyali](https://forum.rasa.com/u/dummyali)\
**Post date:** [September 14, 2021, 4:52am UTC](https://forum.rasa.com/t/caraousel-widget-with-facebook-messenger/47671/3 "2021-09-14T04:52:29Z")

</div>

Hello nik, thanks for replying but its still the same, and I referred to that doc only, would really appreciate if you could see my code above and point out where I am going wrong, Thanks

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [September 14, 2021, 6:47am UTC](https://forum.rasa.com/t/caraousel-widget-with-facebook-messenger/47671/4 "2021-09-14T06:47:05Z")

</div>

@dummyali I suggested you please try use small template example first so that you will see its showing on Facebook messenger or not and then add more syntax, did you tried?

@dummyali You only need FB for integration ( any specific reason) or you can used any other front end to?

---

<div class="post-metadata">

**Author:** ![dummyali](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dummyali](https://forum.rasa.com/u/dummyali)\
**Post date:** [September 14, 2021, 6:49am UTC](https://forum.rasa.com/t/caraousel-widget-with-facebook-messenger/47671/5 "2021-09-14T06:49:43Z")

</div>

Yes I did try small template, but that doesnt change anything, I only need FB for integration

---

<div class="post-metadata">

**Author:** ![bharath-madduri](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/bharath-madduri/32/18010_2.png) [@bharath-madduri](https://forum.rasa.com/u/bharath-madduri)\
**Post date:** [April 14, 2022, 11:41am UTC](https://forum.rasa.com/t/caraousel-widget-with-facebook-messenger/47671/6 "2022-04-14T11:41:18Z")

</div>

@dummyali you can refer to this [post](http://forum.rasa.com/t/custom-rasa-webchat-and-facebook-messenger-carousel/32127/6). I have provided the code to get carousel on fb
