I need suggestion how to swtich to my preferred story scene?

Hi, I have 3 or more cases in my bot, such as: query stock query weather book restaurant, etc

If user choose one of above, bot will go to corresponding story. I have tried the following methods:

  1. use buttons: utter_ask_choice: text: Do you need what kind of services?
  • buttons:
    • payload: ‘/queryweather’ title: Query Weather
    • payload: ‘/bookrestaurant’ title: Book Restaurant
    • payload: ‘/querystock’ title: Query Stock

or utter_ask_choice: text: Do you need what kind of services?

  • buttons:
    • payload: ‘/inform(“choice”: “Query Weather”)’ title: Query Weather
    • payload: ‘/inform(“choice”: “Book Restauraut”)’ title: Book Restaurant
    • payload: ‘/inform(“choice”: “Query Stock”)’ title: Query Stock

Anyone, could you give me your useful advice which is correct? or what else solutions?

Juven

Hi @juven,

I am not quite sure if I get your question right. You got 3 intents:

  • query_stock
  • query_weather
  • book_restaurant

and you want to be able to activate the corresponding story for the triggered intent? If so, that is a native capability of rasa, no matter if buttons or speech is used.

Can you please post your training data, domain.yml and stories.md ? I’ll guide you through then.

Regards

Due to chinese code, so I give screen copy as follows: stories.md

domain.yml nlu.md:

FYI.