Story for "recursive" action on input

Hello i would like to ask you what’s the best practise when writting stories for a “recursive” scenario. I have a custom action which fetches assignements for the user and gives him the option to send him the details for each if he requests them. Sample dialog:

  • User: what assignments i have?
  • Rasa: You have 3 assignements
  • User: tell me
  • Rasa: First assignment …
  • User: next
  • Rasa: Second assignement …
  • User: next
  • etc.

What’s best practise for syntaxing stories for a scenario like the one mentioned above, where the number of assignments varies.

You can set a slot value with number of assignments already requested and then in your custom action based on the set slot value fetch the next assignment.

2 Likes