Hi @bamwani and @salman01z! You can use a set of Rasa features to achieve that. See if the following helps you.
First you must create an intent that will receive the numbers/answers. Regex may help to identify it. Then, if you choose to display buttons, set this intent as payload for each option. On each story, use slots to branch the flow, like:
In each option list new options with apis delivery.
And since it is for WhatApp, the best option is a menu with numbers.
my problem is that it does not recognize the numbers. So, I don’t know which option is selected by the user.
Once selected, I do the option that says. That is, delete, update, etc.
I used a middleware where if I receive a single digit number, I add a “/” before it. So instead of message, It is now accepting as intent. which is working fine
Hello everyone This answer is probably a bit late but I’ve made a small example bot that I hope will help you solve this challenge Let me know if it was useful to you. Link to the repository.
I know this is an old topic, but I took the opportunity to learn and improve my use of Rasa. Following some recommendations and the example given by @lcaraves , along with @Derguene 's repository, I created my own example.
I’d like to share the repository with you so you can take a look.
In essence, whenever I present a menu of options, I save the currently viewed menu in a slot (or None if there is no menu). Then, I detect user intentions for options (I chose to use a letter), and I have an action that detects the current menu and the user’s choice to determine how to proceed. I also perform some validations, such as ensuring that when an option arrives, there is actually a menu, or that the letters correspond to some of the options. Additionally, I allow the user to either type an option or state what they want directly. For example, if the user writes, “I want to schedule a new appointment,” the intent for a new appointment will be executed directly.
I hope this example helps you, and I would like to hear what more experienced people in Rasa think about my solution. I don’t have as much experience, and I’m not sure if I did it the right way.