botfront / rasa-webchat

A feature-rich chat widget for Rasa and Botfront
https://botfront.io/rasa
Apache License 2.0
948 stars 496 forks source link

Carousels - should they use "json_message" or "attachment" in dispatcher.utter_message ... #406

Closed pomegran closed 2 years ago

pomegran commented 2 years ago

Hi,

I am using Rasa 2.7 and using your UI - great so far! I have decided to tackle carousels. Carousels work as expected when I use "attachment" in dispatcher.utter_message, but rasa shell reports an error and crashes with "Attachment: " + message.get(“attachment”), color=color TypeError: must be str, not dict. Converting to a string stops the error but stops the UI rendering the carousel.

Can you advise or is this a bug?

Thanks! Mark

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.