botfront / rasa-webchat

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

Bug in displaying sequential utterances each containing buttons #308

Closed Akhil-YS closed 3 years ago

Akhil-YS commented 3 years ago

For an intent (user says "hi"), I have two utterance statements which would be displayed one after the other in the UI.

If both of these utterances have buttons, then the buttons associated with the first statement are disappearing once the 2nd statement and its buttons are displayed. But, ideally, they should be persisted in the UI along with the first statement.

web_chat_bug

MatthieuJnon commented 3 years ago

Hi, rasa webchat support two types of payloads for buttons, either your buttons are under a key name quick_replies, in this case, the buttons will only be showed in the latest received message. But if you put your buttons under a buttons key, the buttons will always be showed (which is what you're trying to achieve)

stale[bot] commented 3 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.