Hi all,
I am trying to port my bot from rasa 1.x to 2.x, but it has turned out a difficult process. The documentation is sparse, or I cannot understand it.
I have a form:
forms: flight_departure_form: sl_frm_flight_departure_info_city: - type: from_entity entity: city intent: - flight_departure_info - inform
And I am asking: “I am flying to Berlin”:
2020-10-03 22:51:07 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 10 events.
2020-10-03 22:51:07 DEBUG rasa.core.policies.memoization - Current tracker state [{}, {'user': {'intent': 'flight_departure_info', 'entities': ('flying', 'city', 'language')}, 'slots': {'language': (1.0, 0.0, 0.0)}, 'prev_action': {'action_name': 'action_listen'}}]
2020-10-03 22:51:07 DEBUG rasa.core.policies.memoization - There is no memorised next action
2020-10-03 22:51:07 DEBUG rasa.core.policies.rule_policy - Current tracker state: [{}, {'user': {'intent': 'flight_departure_info', 'entities': ('flying', 'city', 'language')}, 'slots': {'language': (1.0, 0.0, 0.0)}, 'prev_action': {'action_name': 'action_listen'}}]
2020-10-03 22:51:07 DEBUG rasa.core.policies.rule_policy - There is a rule for the next action 'flight_departure_form'.
2020-10-03 22:51:07 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_RulePolicy
2020-10-03 22:51:07 DEBUG rasa.core.processor - Predicted next action 'flight_departure_form' with confidence 1.00.
2020-10-03 22:51:07 DEBUG rasa.core.actions.forms - Activated the form 'flight_departure_form'.
2020-10-03 22:51:07 DEBUG rasa.core.actions.forms - No pre-filled required slots to validate.
2020-10-03 22:51:07 DEBUG rasa.core.actions.forms - Validating user input 'UserUttered(text: ?????? ????????????????, intent: {'id': 6883722366486273833, 'name': 'flight_departure_info', 'confidence': 0.9999984502792358}, entities: [{'start': 0, 'end': 12, 'value': 'el', 'entity': 'language', 'extractor': 'LanguageDetection', 'confidence': 0.8, 'processors': []}, {'entity': 'city', 'start': 4, 'end': 12, 'value': '????????????????', 'extractor': 'RegexEntityExtractor'}, {'entity': 'flying', 'start': 0, 'end': 3, 'value': '??????', 'extractor': 'RegexEntityExtractor'}, {'entity': 'flying', 'start': 0, 'end': 3, 'confidence_entity': 0.9989129304885864, 'value': '??????', 'extractor': 'DIETClassifier'}, {'entity': 'city', 'start': 4, 'end': 12, 'confidence_entity': 0.9877170920372009, 'value': '????????????????', 'extractor': 'DIETClassifier'}])'.
2020-10-03 22:51:07 DEBUG rasa.core.actions.forms - Validating extracted slots: {}
2020-10-03 22:51:07 DEBUG rasa.core.actions.action - Calling action endpoint to run action 'validate_flight_departure_form'.
2020-10-03 22:51:07 DEBUG rasa.core.actions.forms - Request next slot 'sl_frm_flight_departure_info_city'
2020-10-03 22:51:07 DEBUG rasa.core.actions.action - Calling action endpoint to run action 'action_ask_sl_frm_flight_departure_info_city'.
2020-10-03 22:51:07 DEBUG rasa.core.processor - Action 'flight_departure_form' ended with events '[<rasa.shared.core.events.ActiveLoop object at 0x7fd06006dfd0>, <rasa.shared.core.events.SlotSet object at 0x7fd06006dbe0>]'.
I cannot understand. There is a city detected in the user input, why the slot is not filled? And why the form has to ask again for filling the slot?
Let alone the fact, that despite the form wants to ask for a city, the message is never asked.