Slot value resets to None

Hi, I have an unfeaturized slot. In the first sentence, the slot value is set, however when the user types the second sentence, the slot value resets to None

Here are the logs

rasa-core-fr_1     | 2018-10-04 22:16:33 DEBUG    rasa_core.processor  - Received user message '/WELCOME{"language":"FR"}' with intent '{'name': 'WELCOME', 'confidence': 1.0}' and entities '[{'entity': 'language', 'start': 8, 'end': 25, 'value': 'FR'}]'
rasa-core-fr_1     | 2018-10-04 22:16:33 DEBUG    rasa_core.processor  - Logged UserUtterance - tracker now has 3 events
rasa-core-fr_1     | 2018-10-04 22:16:33 DEBUG    rasa_core.processor  - Current slot values:
rasa-core-fr_1     |    language: FR
rasa-core-fr_1     | 2018-10-04 22:16:33 DEBUG    rasa_core.policies.memoization  - Current tracker state [None, {}, {'entity_language': 1.0, 'prev_action_listen': 1.0, 'intent_WELCOME': 1.0}]
rasa-core-fr_1     | 2018-10-04 22:16:33 DEBUG    rasa_core.policies.memoization  - There is no memorised next action
rasa-core-fr_1     | 2018-10-04 22:16:33 DEBUG    rasa_core.policies.ensemble  - Action 'action_listen' was predicted after a user message using policy_2_KerasPolicy. Predicting fallback action: action_default_fallback
rasa-core-fr_1     | 2018-10-04 22:16:33 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_0_FallbackPolicy
rasa-core-fr_1     | 2018-10-04 22:16:33 DEBUG    rasa_core.processor  - Predicted next action 'action_default_fallback' with prob 1.00.
rasa-core-fr_1     | 2018-10-04 22:16:33 DEBUG    rasa_core.nlg.callback  - Requesting NLG for utter_default from http://template-server:5056/nlg.
rasa-core-fr_1     | 172.22.0.6 - - [2018-10-04 22:16:33] "POST /webhooks/rest/webhook HTTP/1.1" 200 236 0.264871
rasa-core-fr_1     | 2018-10-04 22:16:54 DEBUG    rasa_core.processor  - Received user message 'salut' with intent '{'name': 'hello', 'confidence': 0.9617201028961402}' and entities '[]'
rasa-core-fr_1     | 2018-10-04 22:16:54 DEBUG    rasa_core.processor  - Logged UserUtterance - tracker now has 8 events
rasa-nlu-fr_1      | 2018-10-04 22:16:54+0000 [-] "172.22.0.11" - - [04/Oct/2018:22:16:54 +0000] "GET /parse?model=nlu_hello_chatbot_v0.0.1&project=hello-chatbot&q=salut HTTP/1.1" 200 361 "-" "python-requests/2.19.1"
rasa-core-fr_1     | 2018-10-04 22:16:54 DEBUG    rasa_core.processor  - Current slot values:
rasa-core-fr_1     |    language: None
rasa-core-fr_1     | 2018-10-04 22:16:54 DEBUG    rasa_core.policies.memoization  - Current tracker state [None, {}, {'intent_hello': 1.0, 'prev_action_listen': 1.0}]
rasa-core-fr_1     | 2018-10-04 22:16:54 DEBUG    rasa_core.policies.memoization  - There is a memorised next action '3'
rasa-core-fr_1     | 2018-10-04 22:16:54 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_1_MemoizationPolicy
rasa-core-fr_1     | 2018-10-04 22:16:54 DEBUG    rasa_core.processor  - Predicted next action 'utter_hi' with prob 1.00.
rasa-core-fr_1     | 2018-10-04 22:16:54 DEBUG    rasa_core.nlg.callback  - Requesting NLG for utter_hi from http://template-server:5056/nlg.

As you can see the Current Slot value resets to None

It is probably due to the fact that action_default_fallback returns UserUtteranceReverted(), which reverts user’s latest message /WELCOME{"language":"FR"} and all the slots that it sets

Indeed, but if anytime there is a fallback, all slots are reset??

not all, only the ones from the last user message. You can provide your own fallback action if you want to change this behavior

Okay, good to know. :smiley: