So my requirement is that I want to wait for user response or more like action_listen in a story. So let’s say I have a story as:
stories:
- story: user path1
steps:
- intent: greet
- action: utter_greet
- action: utter_ask
- intent: mood_unhappy
- action: utter_what
- action: **listen to what user says**
So at this point I want to add a listener and then pass that message to my custom model to detect the state of user and then depending on the predicted state, I want the conversation to take place.
Can anyone help me on how to do this? Preferably if someone can share some kind of code, it would be helpful because I went through the Rasa docs regarding form and slot filling but I don’t understand how to implement them in what I am trying to do.
By action listener I mean that, i don’t know the intent of the message user is going to send. It can be anything so I want that message as input to my custom model (pytorch model) which will predict the label (multiclass classification model) and that label i need to use to determine how the conversation follows.
So since I don’t know intent of the message how do I wait for the user to enter a message?