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

Buttons are not persistent [help wanted] #398

Closed ghost closed 2 years ago

ghost commented 2 years ago

In Rasa-Webchat UI, the buttons are not persistent when the user has selected an answer. The syntax I have used in domain.yml for buttons image Once the option is selected the buttons are disappearing. image image

liefra commented 2 years ago

Did you see already the chapter in the docs about the difference between quick_replies and buttons and how to use them?

ghost commented 2 years ago

Did you see already the chapter in the docs about the difference between quick_replies and buttons and how to use them?

The doc is for botfront, I am implementing the bot from rasa.

cristianccq commented 2 years ago

Check line https://github.com/botfront/rasa-webchat/blob/0119e94e6df7b84c3edf1db6f3be3aee7fa3db43/src/components/Widget/components/Conversation/components/Messages/components/Buttons/index.js#L42 ,

change to true "persist" parameter when call function , this work for me

ghost commented 2 years ago

Check line

https://github.com/botfront/rasa-webchat/blob/0119e94e6df7b84c3edf1db6f3be3aee7fa3db43/src/components/Widget/components/Conversation/components/Messages/components/Buttons/index.js#L42

, change to true "persist" parameter when call function , this work for me

change the value from persit to true in the 42nd line ? as there is already mentioned true in 108th line and false in 105th line. could you please clarify?

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.