I’ve also tried setting text: None but this produces a YAML error.
I don’t want to set - text: "" as I think this would produce an empty text message whereas I want no message at all.
If you’re wondering why I don’t want to define a message in my domain, it’s because I’m using the message for a dozen of these buttons, so instead of repeating this message a dozen times I am instead using a custom action to utter this message, then to select the proper button to display.
@j.mosig Thanks for your help; however my question is about how to display buttons without text. I copied and pasted exactly what you have into my domain, and deleted the third line (- text: ). This resulted in the same error as in my original post. I also tried adding a dash before it, which resulted in the error attached in my comment right above yours.
Oh, that text you mean! So you want to just display a button (with a button title) and not have the bot utter anything else. (Sorry, was a bit slow here )
Then it should be
with a - before the buttons and exactly this indentation (any extra or missing space will break the file). But it seems that you have tried this… What is the output of rasa --version for you?
Indeed, in the lower terminal you can see that there is an incompatibility warning. However I’ve reinstalling rasa and it still gives me v2.1.3 so I’m not sure how I should fix this.
Yes, that works, too. The YamlValidationException is still odd. The compatibility issue was a bug and should be fixed in the recent version (Rasa Version: 2.2.2, Rasa SDK Version: 2.2.0)