Can i use slots for such guided Flow ? For each selection of buttons What should be story.yaml and policy
Hi there, you can use slots and pass them in payload for the button E.g.
utter_product_details: - buttons: - payload: I would like to order a [pizza](food) title: Pizza - payload: i would like to order a [burger](food) title: Burger - payload: i would like to order a [coke](drink) and [Burger](food) title: Coke and Burger text: "Please choose options"
This will work as you have thought just make sure you create a custom action for this. which can get slot value and do as you want it to
Thanks for response, Let me try and inform you again.
I solve above issue : below is syntax of my domain file: utter_options: - text: “Please Choose Options” buttons: - title: “Tittle_A” payload: “/intent_a” - title: “Tittle_B” payload: “/intent_b” - title: “Tittle_C” payload: “/intent_c” - title: “Tittle_D” payload: “/intent_d”
Then i updated Storys.yml file as below
- story: Repeate Flow
- intent: initial_intent
- intent: intent_d
- action: utter_options
- inten: intent_a
- action: utter_a . . .