How do i call a different story from a Custom Action using logic to control the story that is selected i have tried using UserUttered and SlotSet nothing seems to work. Kindly see screenshots of my implementation.
@nik202 thank you response i tried this and it appears it is not recognised, but the slots values do change. It always says null.
Kindly see screenshot from rasax interface when i use [UserUttered(“/first_latin_square”, {“name”: “first_latin_square”}), SlotSet(“latin_square_counter”, “lb”)] for all 3.
on the other hand when i include text= && intent= as shown in the event UserUttered [UserUttered(text=“/first_latin_square”, intent={“name”: “first_latin_square”}), SlotSet(“latin_square_counter”, “lb”)], i get the error below.
@oluwoleilesanmi please share updated story and action file please let me check and even show the error screenshot, run action server in second terminal by rasa run actions
Try mention action: “action_latin_square_selection” in story , give try please.
@oluwoleilesanmi please share the all files (original files) not screenshots, let me run the code by myself, even share the version or requirement files whilst using pip freeze > requirement.txt.
I guess its issue of story, or may be other. If you can share. I can try to fix your issue. Thanks.
Is that you mention action in story?
-story: first_latin_square
steps:
action: action_latin_square_selection
slot_was_set:
latin_square_counter: la
intent: first_lating_square * you can remove this and try
action: utter_greet
I can be wrong also, but you can try… Thats why I asked you all the file. Thanks
See all the story how they have mention action Responses
@nik202 Thanks i used a different approach all together after trying so many things, UserUttered doesn’t call any of the stories. I used followup action FollowupAction(name=“action_latin_one”) and this worked. This is what the actions and stories look like now.