Rasa 2.x does not follow story

Hi

I am using rasa 2.8

I have a story which is not followed as expected, the intent is classified correctly, the story starts but mid way it gets diverted saying “TED predicted ‘action_listen’ or any other action” Even though I have memorization policy → max_history 7 , it says “DEBUG rasa.core.policies.memoization - There is no memorised next action” (what does this line mean exactly?)

Secondly, what changes can I make so that rasa follows my story

@ChrisRahme can you help?

Also I am using a form and here is the story:

  • story: search company dir steps:
    • intent: company_directory
    • action: company_dir_form
    • active_loop: company_dir_form
    • slot_was_set:
      • requested_slot: EmpSearch
    • action: action_deactivate_loop
    • active_loop: null
    • slot_was_set:
      • requested_slot: null
    • action: display_comp_dir_data
    • action: restart_conversation

In this story after the form is deactivated the general predicted actions are action listen or restart_conversation.

It does not execute display_comp_dir_data

I would start by splitting this into two stories (I would use rules instead). Use a separate story/rule to enter the form and another to handle form completion. You’ll see these examples in the forms docs.

1 Like

Hi @stephens , Thanks for your reply.

I am not using rules as i want my story to break if a user changes the intent of the story, I have an understanding that rules will execute all it’s steps no matter what, if this is not the case please let me know.

Also how could I break this story into two? if you are saying to have form in one story and actions in another then how would the second story get triggered?

can you please break this story for an example

Thanks

It seems like you haven’t read the docs on forms. Please read this page. It answers your questions including “i want my story to break”.

@stephens Thanks The issue is solved now!!