如何在 Rasa Open Source 中添加轮播并在 Rasa X 中演示

问题描述

我正在尝试在我的 Rasa 开源中添加一个轮播并将其部署在 Rasa X 本地。当我单击指向轮播的按钮时,屏幕显示为全白。你能帮我检查一下我做错了什么吗?

这是我的actions.py中的代码

text_carousel = {
            'type': 'template','payload': {
                'template_type': 'generic','elements': [{
                    'title': 'Thái Lan','subtitle': 'Lead The Change Exchange Trip 2021 in Thailand','image_url': 'https://leadthechange.asia/wp-content/uploads/2020/04/2-1.png','buttons': [{
                        'title': 'Tìm hiểu thêm','url': 'https://leadthechange.asia/lead-the-change-exchange-trip-2021-in-thailand-call-for-applications/','type': 'web_url'
                    },{
                        'title': 'Liên hệ bộ phận đào tạo','url': 'https://www.facebook.com/LeadtheChange.Asia','type': 'web_url'
                    }]
                },{
                    'title': 'Singapore','subtitle': 'Lead The Change Exchange Trip 2021 in Singapore','image_url': 'https://leadthechange.asia/wp-content/uploads/2020/02/1-4.png','url': 'https://leadthechange.asia/lead-the-change-exchange-trip-2021-tai-singapore/',{
                    'title': 'Đài Loan','subtitle': 'Lead The Change Exchange Trip 2021 in Taiwan','image_url': 'https://leadthechange.asia/wp-content/uploads/2020/04/3-4.png','url': 'https://leadthechange.asia/lead-the-change-exchange-trip-2021-in-taiwan-call-for-applications/',{
                    'title': 'Hàn Quốc','subtitle': 'Lead The Change Exchange Trip 2021 in Korea','image_url': 'https://leadthechange.asia/wp-content/uploads/2020/04/4-1.png','url': 'https://leadthechange.asia/lead-the-change-exchange-trip-2021-in-korea-call-for-applications/','type': 'web_url'
                    }]
                }
                ]
            }
        }

        dispatcher.utter_message(text = 'Hiện tại Lead The Change đang có chương trình đào tạo tại 4 quốc gia: Thái Lan,Singapore,Đài Loan và Hàn Quốc,mời bạn tham khảo',attachment = text_carousel)

你能帮我弄清楚是什么让我出错了吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...