Requested Slot not filled by user's answer

When I’m using form and it creates requested slot, why Rasa not always fill that slot when the user answers the question? For example, I in the form I have slots origin_type and destination_type that may have the same values like walkup, elevator, private house etc. When the form asked for origin_type and requested slot is origin_type and the user replies “elevator building” Rasa may put it to the destination_type and keep asking for origin_type. I have in my stories examples for both answers for origin_type and destination_type. How to force Rasa always fill the requested slot since user is answering to the question, not trying to input irrelevant data?

Hi George - thanks for your question. Can you please run your bot with --debug turned on and show the output that you get?

Most strange thing is that when I use shell mode, it’s working correctly on all values! The problem occurs when I’m in X mode or SDK. Any ideas??

Here is the log when I’m in SDK: date_jobdate: None dwellingType_destination: walkup building dwellingType_origin: None location_destination: Brooklyn, Kings, New York location_origin: Upper East Side, New York, NY requested_slot: dwellingType_origin stairs_destination: None stairs_origin: None time: 2019-07-19T00:00:00.000-07:00 2019-07-18 15:51:58 DEBUG rasa.core.processor - Current slot values: PERSON: George Freed customer_name: None date_jobdate: None dwellingType_destination: walkup building dwellingType_origin: None location_destination: Brooklyn, Kings, New York location_origin: Upper East Side, New York, NY requested_slot: dwellingType_origin stairs_destination: None stairs_origin: None time: 2019-07-19T00:00:00.000-07:00 I0718 15:51:58.976416 11768 processor.py:317] Logged UserUtterance - tracker now has 19 events 2019-07-18 15:51:58 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 19 events I0718 15:51:58.979421 11768 fallback.py:124] NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2019-07-18 15:51:58 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). I0718 15:51:58.984423 11768 memoization.py:205] Current tracker state [None, None, {}, {‘prev_action_listen’: 1.0, ‘intent_moving_quote’: 1.0}, {‘prev_utter_moving_help’: 1.0, ‘int ent_moving_quote’: 1.0}] 2019-07-18 15:51:58 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, {}, {‘prev_action_listen’: 1.0, ‘intent_moving_quote’: 1.0}, {‘prev_utter_moving_h elp’: 1.0, ‘intent_moving_quote’: 1.0}] I0718 15:51:58.988427 11768 memoization.py:208] There is a memorised next action ‘21’ 2019-07-18 15:51:58 DEBUG rasa.core.policies.memoization - There is a memorised next action ‘21’ I0718 15:51:58.990430 11768 form_policy.py:121] There is an active form ‘moving_form’ 2019-07-18 15:51:58 DEBUG rasa.core.policies.form_policy - There is an active form ‘moving_form’ I0718 15:51:58.992431 11768 ensemble.py:394] Predicted next action using policy_2_FormPolicy 2019-07-18 15:51:58 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_FormPolicy I0718 15:51:58.995434 11768 processor.py:182] Predicted next action ‘moving_form’ with confidence 1.00. 2019-07-18 15:51:58 DEBUG rasa.core.processor - Predicted next action ‘moving_form’ with confidence 1.00. I0718 15:51:58.997437 11768 action.py:394] Calling action endpoint to run action ‘moving_form’. 2019-07-18 15:51:58 DEBUG rasa.core.actions.action - Calling action endpoint to run action ‘moving_form’. I0718 15:52:00.026423 11768 processor.py:504] Action ‘moving_form’ ended with events ‘[‘BotUttered(text: So what type of dwelling you have in Upper East Side, New York, NY, George Freed?, data: {“elements”: null, “quick_replies”: null, “buttons”: [{“payload”: “/choose{\“dwellingType_origin\”: \“Private House\”}”, “title”: “Private House”}, {“payload”: “/ choose{\“dwellingType_origin\”: \“Elevator Building\”}”, “title”: “Elevator Building”}, {“payload”: “/choose{\“dwellingType_origin\”: \“Walkup Building\”}”, “title”: “Walku p Building”}], “attachment”: null, “image”: null, “custom”: null}, metadata: {“PERSON”: “George Freed”, “customer_name”: null, “date_jobdate”: null, “dwellingType_destination”: “wa lkup building”, “dwellingType_origin”: null, “location_destination”: “Brooklyn, Kings, New York”, “location_origin”: “Upper East Side, New York, NY”, “requested_slot”: “dwellingTyp e_origin”, “stairs_destination”: null, “stairs_origin”: null, “time”: “2019-07-19T00:00:00.000-07:00”})’, ‘SlotSet(key: dwellingType_destination, value: walkup building)’, ‘SlotSet (key: requested_slot, value: dwellingType_origin)’]’ 2019-07-18 15:52:00 DEBUG rasa.core.processor - Action ‘moving_form’ ended with events ‘[‘BotUttered(text: So what type of dwelling you have in Upper East Side, New York, NY, G eorge Freed?, data: {“elements”: null, “quick_replies”: null, “buttons”: [{“payload”: “/choose{\“dwellingType_origin\”: \“Private House\”}”, “title”: “Private House”}, {“payloa d”: “/choose{\“dwellingType_origin\”: \“Elevator Building\”}”, “title”: “Elevator Building”}, {“payload”: “/choose{\“dwellingType_origin\”: \“Walkup Building\”}”, “title”: “Walkup Building”}], “attachment”: null, “image”: null, “custom”: null}, metadata: {“PERSON”: “George Freed”, “customer_name”: null, “date_jobdate”: null, "dwellingType_destination ": “walkup building”, “dwellingType_origin”: null, “location_destination”: “Brooklyn, Kings, New York”, “location_origin”: “Upper East Side, New York, NY”, “requested_slot”: “dwell ingType_origin”, “stairs_destination”: null, “stairs_origin”: null, “time”: “2019-07-19T00:00:00.000-07:00”})’, ‘SlotSet(key: dwellingType_destination, value: walkup building)’, ‘S lotSet(key: requested_slot, value: dwellingType_origin)’]’ I0718 15:52:00.035451 11768 processor.py:265] Current slot values: PERSON: George Freed customer_name: None date_jobdate: None dwellingType_destination: walkup building dwellingType_origin: None location_destination: Brooklyn, Kings, New York location_origin: Upper East Side, New York, NY requested_slot: dwellingType_origin stairs_destination: None stairs_origin: None time: 2019-07-19T00:00:00.000-07:00 2019-07-18 15:52:00 DEBUG rasa.core.processor - Current slot values: PERSON: George Freed customer_name: None date_jobdate: None dwellingType_destination: walkup building dwellingType_origin: None location_destination: Brooklyn, Kings, New York location_origin: Upper East Side, New York, NY requested_slot: dwellingType_origin stairs_destination: None stairs_origin: None time: 2019-07-19T00:00:00.000-07:00 I0718 15:52:00.046443 11768 fallback.py:124] NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2019-07-18 15:52:00 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). I0718 15:52:00.049447 11768 memoization.py:205] Current tracker state [None, None, {}, {‘prev_action_listen’: 1.0, ‘intent_moving_quote’: 1.0}, {‘prev_utter_moving_help’: 1.0, ‘int ent_moving_quote’: 1.0}] 2019-07-18 15:52:00 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, {}, {‘prev_action_listen’: 1.0, ‘intent_moving_quote’: 1.0}, {‘prev_utter_moving_h elp’: 1.0, ‘intent_moving_quote’: 1.0}] I0718 15:52:00.052449 11768 memoization.py:208] There is a memorised next action ‘21’ 2019-07-18 15:52:00 DEBUG rasa.core.policies.memoization - There is a memorised next action ‘21’ I0718 15:52:00.054451 11768 form_policy.py:121] There is an active form ‘moving_form’ 2019-07-18 15:52:00 DEBUG rasa.core.policies.form_policy - There is an active form ‘moving_form’ I0718 15:52:00.055451 11768 mapping_policy.py:98] There is no mapped action for the predicted intent, ‘inform’. 2019-07-18 15:52:00 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, ‘inform’. I0718 15:52:00.057455 11768 ensemble.py:394] Predicted next action using policy_2_FormPolicy 2019-07-18 15:52:00 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_FormPolicy I0718 15:52:00.059456 11768 processor.py:182] Predicted next action ‘action_listen’ with confidence 1.00. 2019-07-18 15:52:00 DEBUG rasa.core.processor - Predicted next action ‘action_listen’ with confidence 1.00. I0718 15:52:00.064461 11768 processor.py:504] Action ‘action_listen’ ended with events ‘[]’ 2019-07-18 15:52:00 DEBUG rasa.core.processor - Action ‘action_listen’ ended with events ‘[]’ I0718 15:52:00.067463 11768 agent.py:448] Deleted lock for conversation ‘a6412396-68c4-cc24-514f-db5580dd32b5’ (unused) 2019-07-18 15:52:00 DEBUG rasa.core.agent - Deleted lock for conversation ‘a6412396-68c4-cc24-514f-db5580dd32b5’ (unused) I0718 15:52:00.378762 11768 tracker_store.py:148] Recreating tracker for id ‘a6412396-68c4-cc24-514f-db5580dd32b5’ 2019-07-18 15:52:00 DEBUG rasa.core.tracker_store - Recreating tracker for id ‘a6412396-68c4-cc24-514f-db5580dd32b5’

And exactly same conversation in shell mode: dwellingType_destination: None dwellingType_origin: Walkup Building location_destination: Brooklyn, Kings, New York location_origin: Upper East Side, New York, NY requested_slot: dwellingType_origin stairs_destination: None stairs_origin: None time: 2019-07-19T00:00:00.000-07:00 2019-07-18 15:55:20 DEBUG rasa.core.processor - Current slot values: PERSON: George Freed customer_name: None date_jobdate: None dwellingType_destination: None dwellingType_origin: Walkup Building location_destination: Brooklyn, Kings, New York location_origin: Upper East Side, New York, NY requested_slot: dwellingType_origin stairs_destination: None stairs_origin: None time: 2019-07-19T00:00:00.000-07:00 I0718 15:55:20.562974 21236 processor.py:317] Logged UserUtterance - tracker now has 19 events 2019-07-18 15:55:20 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 19 events I0718 15:55:20.564976 21236 fallback.py:124] NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2019-07-18 15:55:20 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). I0718 15:55:20.567980 21236 memoization.py:205] Current tracker state [None, None, {}, {‘intent_moving_quote’: 1.0, ‘prev_action_listen’: 1.0}, {‘intent_moving_quote’: 1.0, ‘prev_u tter_moving_help’: 1.0}] 2019-07-18 15:55:20 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, {}, {‘intent_moving_quote’: 1.0, ‘prev_action_listen’: 1.0}, {'intent_moving_quote ‘: 1.0, ‘prev_utter_moving_help’: 1.0}] I0718 15:55:20.570981 21236 memoization.py:208] There is a memorised next action ‘21’ 2019-07-18 15:55:20 DEBUG rasa.core.policies.memoization - There is a memorised next action ‘21’ I0718 15:55:20.571982 21236 form_policy.py:121] There is an active form ‘moving_form’ 2019-07-18 15:55:20 DEBUG rasa.core.policies.form_policy - There is an active form ‘moving_form’ I0718 15:55:20.573984 21236 ensemble.py:394] Predicted next action using policy_2_FormPolicy 2019-07-18 15:55:20 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_FormPolicy I0718 15:55:20.575986 21236 processor.py:182] Predicted next action ‘moving_form’ with confidence 1.00. 2019-07-18 15:55:20 DEBUG rasa.core.processor - Predicted next action ‘moving_form’ with confidence 1.00. I0718 15:55:20.577988 21236 action.py:394] Calling action endpoint to run action ‘moving_form’. 2019-07-18 15:55:20 DEBUG rasa.core.actions.action - Calling action endpoint to run action ‘moving_form’. I0718 15:55:21.610982 21236 processor.py:504] Action ‘moving_form’ ended with events ‘[‘BotUttered(text: And what type of dwelling you have in Brooklyn, Kings, New York, George Fre ed?, data: {“elements”: null, “quick_replies”: null, “buttons”: [{“payload”: “/choose{\“dwellingType_destination\”: \“Private House\”}”, “title”: “Private House”}, {“payload”: “/choose{\“dwellingType_destination\”: \“Elevator Building\”}”, “title”: “Elevator Building”}, {“payload”: “/choose{\“dwellingType_destination\”: \“Walkup Building\”}”, “ti tle”: “Walkup Building”}], “attachment”: null, “image”: null, “custom”: null}, metadata: {“PERSON”: “George Freed”, “customer_name”: null, “date_jobdate”: null, “dwellingType_desti nation”: null, “dwellingType_origin”: “Walkup Building”, “location_destination”: “Brooklyn, Kings, New York”, “location_origin”: “Upper East Side, New York, NY”, “requested_slot”: “dwellingType_origin”, “stairs_destination”: null, “stairs_origin”: null, “time”: “2019-07-19T00:00:00.000-07:00”})’, ‘SlotSet(key: dwellingType_origin, value: Walkup Building)’, ’ SlotSet(key: requested_slot, value: dwellingType_destination)’]’ 2019-07-18 15:55:21 DEBUG rasa.core.processor - Action ‘moving_form’ ended with events ‘[‘BotUttered(text: And what type of dwelling you have in Brooklyn, Kings, New York, Geor ge Freed?, data: {“elements”: null, “quick_replies”: null, “buttons”: [{“payload”: “/choose{\“dwellingType_destination\”: \“Private House\”}”, “title”: “Private House”}, {“payl oad”: “/choose{\“dwellingType_destination\”: \“Elevator Building\”}”, “title”: “Elevator Building”}, {“payload”: "/choose{\“dwellingType_destination\”: \“Walkup Building\”} ", “title”: “Walkup Building”}], “attachment”: null, “image”: null, “custom”: null}, metadata: {“PERSON”: “George Freed”, “customer_name”: null, “date_jobdate”: null, “dwellingType _destination”: null, “dwellingType_origin”: “Walkup Building”, “location_destination”: “Brooklyn, Kings, New York”, “location_origin”: “Upper East Side, New York, NY”, “requested_s lot”: “dwellingType_origin”, “stairs_destination”: null, “stairs_origin”: null, “time”: “2019-07-19T00:00:00.000-07:00”})’, ‘SlotSet(key: dwellingType_origin, value: Walkup Buildin g)’, ‘SlotSet(key: requested_slot, value: dwellingType_destination)’]’ I0718 15:55:21.618988 21236 processor.py:265] Current slot values: PERSON: George Freed customer_name: None date_jobdate: None dwellingType_destination: None dwellingType_origin: Walkup Building location_destination: Brooklyn, Kings, New York location_origin: Upper East Side, New York, NY requested_slot: dwellingType_destination stairs_destination: None stairs_origin: None time: 2019-07-19T00:00:00.000-07:00 2019-07-18 15:55:21 DEBUG rasa.core.processor - Current slot values: PERSON: George Freed customer_name: None date_jobdate: None dwellingType_destination: None dwellingType_origin: Walkup Building location_destination: Brooklyn, Kings, New York location_origin: Upper East Side, New York, NY requested_slot: dwellingType_destination stairs_destination: None stairs_origin: None time: 2019-07-19T00:00:00.000-07:00 I0718 15:55:21.631000 21236 fallback.py:124] NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2019-07-18 15:55:21 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). I0718 15:55:21.634003 21236 memoization.py:205] Current tracker state [None, None, {}, {‘intent_moving_quote’: 1.0, ‘prev_action_listen’: 1.0}, {‘intent_moving_quote’: 1.0, ‘prev_u tter_moving_help’: 1.0}] 2019-07-18 15:55:21 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, {}, {‘intent_moving_quote’: 1.0, ‘prev_action_listen’: 1.0}, {'intent_moving_quote ': 1.0, ‘prev_utter_moving_help’: 1.0}] I0718 15:55:21.636006 21236 memoization.py:208] There is a memorised next action ‘21’ 2019-07-18 15:55:21 DEBUG rasa.core.policies.memoization - There is a memorised next action ‘21’ I0718 15:55:21.638005 21236 form_policy.py:121] There is an active form ‘moving_form’ 2019-07-18 15:55:21 DEBUG rasa.core.policies.form_policy - There is an active form ‘moving_form’ I0718 15:55:21.640008 21236 mapping_policy.py:98] There is no mapped action for the predicted intent, ‘choose’. 2019-07-18 15:55:21 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, ‘choose’. I0718 15:55:21.642010 21236 ensemble.py:394] Predicted next action using policy_2_FormPolicy 2019-07-18 15:55:21 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_FormPolicy I0718 15:55:21.644013 21236 processor.py:182] Predicted next action ‘action_listen’ with confidence 1.00. 2019-07-18 15:55:21 DEBUG rasa.core.processor - Predicted next action ‘action_listen’ with confidence 1.00. I0718 15:55:21.646014 21236 processor.py:504] Action ‘action_listen’ ended with events ‘[]’ 2019-07-18 15:55:21 DEBUG rasa.core.processor - Action ‘action_listen’ ended with events ‘[]’ I0718 15:55:21.648016 21236 agent.py:448] Deleted lock for conversation ‘default’ (unused) 2019-07-18 15:55:21 DEBUG rasa.core.agent - Deleted lock for conversation ‘default’ (unused) ? And what type of dwelling you have in Brooklyn, Kings, New York, George Freed? (Use arrow keys)