I have a story that looks like this:
# doubt flow - painel options
* has_doubt
- utter_has_doubt
* enter_data{"doubts_options": "Painel"}
- utter_painel_options
* enter_data{"painel_options": "Ativação do painel"}
- utter_painel_activation_options
> check_painel_activation
## doubt flow - activation painel - option A
> check_painel_activation
* enter_data{"button_options": "A"}
- utter_painel_activation_link
> check_finish_up
## doubt flow - activation painel - option B
> check_painel_activation
* enter_data{"button_options": "B"}
- utter_painel_activation_how
> check_finish_up
## doubt flow - activation painel - option C
> check_painel_activation
* enter_data{"button_options": "C"}
- utter_painel_activation_not_able
> check_finish_up
Everything works fine until users gets to check_painel_activation. In there it looks like Rasa ignores the entity. The button_options entity is declared at domain file. Also it is working right identifying it in NLU. As you can see:
Received user message 'A' with intent '{'name': 'enter_data', 'confidence': 0.9505975842475891}' and entities '[{'start': 0, 'end': 1, 'value': 'A', 'entity': 'button_options', 'confidence': 0.7102413205981658, 'extractor': 'ner_crf'}]'
But for some reason it goes to the wrong part of the story.
rasa_core.policies.memoization - There is no memorised next action
rasa_core.policies.ensemble - Predicted next action using policy_1_KerasPolicy
rasa_core.processor - Predicted next action 'utter_painel_activation_not_able' with prob 0.31.
Why it doesn’t know that it has to go to: ## doubt flow - activation painel - option A ?
I even tried to write a different story instead of using checkpoints I made like this:
## doubt flow - painel options with A
* has_doubt
- utter_has_doubt
* enter_data{"doubts_options": "Painel"}
- utter_painel_options
* enter_data{"painel_options": "Ativação do painel"}
- utter_painel_activation_options
* enter_data{"button_options": "A"}
- utter_painel_activation_link
> check_finish_up
## doubt flow - painel options with B
* has_doubt
- utter_has_doubt
* enter_data{"doubts_options": "Painel"}
- utter_painel_options
* enter_data{"painel_options": "Ativação do painel"}
- utter_painel_activation_options
* enter_data{"button_options": "B"}
- utter_painel_activation_how
> check_finish_up
## doubt flow - painel options with C
* has_doubt
- utter_has_doubt
* enter_data{"doubts_options": "Painel"}
- utter_painel_options
* enter_data{"painel_options": "Ativação do painel"}
- utter_painel_activation_options
* enter_data{"button_options": "C"}
- utter_painel_activation_not_able
> check_finish_up
And I get the same problem. Although it recognizes the button_options entity it goes to the wrong part of the story. When the value is A it goes to B for example.
Regards, Leonardo