I’ve gone over most of the material on forms and stories, however I cannot seem to solve this issue:
Say I have intents intent_one and intent_two. intent_one, when activated, triggers a form with a required slot filled by an entity. This is how I have the story set up:
action_intent_one is an action triggered when the form is filled correctly. form_intent_one is the form action to initiate the form. This works fine when a utterance is posted to rasa that activates intent_one. I do have issues with resetting the set slot, but I think that is just a matter of resetting the slot once the form action submits.
The main problem I run into is when intent_one's form does not get completed, and the user’s next utterance is suppose to trigger intent_two. The story I have for this is:
I tried deactivating the form with returning self.deactivate() in the validate method - this works for deactivating the form for that go around. However, when intent_one is activated again, the form is not activated. A few ideas come to mind: does self.deactivate() affect all future forms of that instance? and/or should I structure another story like this:
Thanks @dcsan! I do have fully implemented actions for both the form action and base actions. I’m (possibly incorrectly) assuming that these are working fine, and that the issue is in the story construction.
the first story says that Rasa Core should predict action_intent_one, while the second story says that it should predict action_listen. (Btw.: since Rasa 1.8 you can run rasa data validate stories on the command line to automatically identify such issues.) So you have to insert something there that distinguishes the successful and unsuccessful situations. For example, you could featurize the slot that you are interested in and write it out in your stories as - slot{...}.
Thanks @j.mosig! That certainly helps. I’ve been playing around with rasa interactive as well and learning that the stories I am making are not valid and/or learning from seeing the explicit steps. rasa data validate will help a ton.
Edit: Ah well, have been on Rasa 1.4.4 - should have mentioned this in the original post. This is an excuse to upgrade.
btw where did you read about 1.8? I had just run through the install but didn’t think to ask for a specific version. I just checked /announcements and can’t see it there either.
@dcsan What exactly do you mean by “extra things”? The output depends on the max_history. If you get errors from rasa data validate stories without setting max_history, then you cannot fix things by increasing the max_history and the stories that it displays are definitely in conflict.
We are thinking about making the output more informative and/or interactive. If you have a specific vision of how this should look like, please tell!