How to record whatever user input and continue dialog

Hi all,

I have a requirement that need to record whatever user input and then continue the dialog. How can I design the story, such as :

  • greet
    • utter_greet
  • user_input
    • utter_get_input
  • goodbye
    • utter_goodbye

What confuse me is that all user input was mapped to intent, but my requirement is user can input whatever text which may be mapped to different intent by NLU.

So is there any intent which means whatever input or some else way to accept user input and continue to the next step of dialog?

every message from the user must pass on the NLU and got classified as an intent. if you want to take whatever the user writes and store it you can use a Form the story would be like that.

  • greet
    • utter_great
    • some_form
    • form{“name”: “some_form”}
    • form{“name”: null}
  • goodbye
    • utter_goodbye

and inside the ActionForm class you will find a function called slot_mappings overwrite it and map this slot like that:

“slot”: self.from_text()

then save this slot and terminate the form … I think this is the solution to take input from user and save it as is.

you can find tutorials on Forms and their usage on Rasa repo.

Thank you so much for your reply, it solved my problem!