Mapping Policy confused Keras Policy

ella
(Yanuar Putra) #1

Hi, i don’t know why, mapping policy ruined the story. So i have the log:

2019-07-11 17:34:12 DEBUG    rasa_core.tracker_store  - Recreating tracker for id 'default'
2019-07-11 17:34:12 DEBUG    rasa_core.processor  - Received user message '/language_selection{"language": "en", "avatar_name": "Leo"}' with intent '{'name': 'language_selection', 'confidence': 1.0}' and entities '[{'entity': 'language', 'start': 19, 'end': 59, 'value': 'en'}, {'entity': 'avatar_name', 'start': 19, 'end': 59, 'value': 'Leo'}]'
2019-07-11 17:34:12 DEBUG    rasa_core.processor  - Logged UserUtterance - tracker now has 10 events
2019-07-11 17:34:12 DEBUG    rasa_core.processor  - Current slot values: 
	GPE: None
	LOC: None
	ORG: None
	PERSON: None
	appointment_time: None
	appt_id: None
	avatar_name: Leo
	body_part: None
	center_name: None
	centre_type: None
	doctor_id: None
	doctor_location: None
	doctor_name: None
	earliest_date: None
	earliest_time: None
	fallback_counter: None
	language: en
	lat: None
	lng: None
	location: None
	location_id: None
	otp_code: None
	patient_id: None
	prefered_date: None
	prefered_time: None
	requested_slot: None
	session_code: None
	severe_scale: None
	specialization: None
	sub_body_part: None
	symptom: None
	symptom_frequency: None
	token_no: None
	user_dob: None
	user_email: None
	user_gender: None
	user_name: None
	user_phone: None
2019-07-11 17:34:12 DEBUG    rasa_core.policies.memoization  - Current tracker state [{}, {'intent_language_selection': 1.0, 'prev_action_listen': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_introduction_chatbot': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_options_replies': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'prev_action_listen': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}]
2019-07-11 17:34:12 DEBUG    rasa_core.policies.memoization  - There is no memorised next action
2019-07-11 17:34:12 DEBUG    rasa_core.policies.form_policy  - There is no active form
2019-07-11 17:34:12 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_0_KerasPolicy
2019-07-11 17:34:12 DEBUG    rasa_core.processor  - Predicted next action 'utter_introduction_chatbot' with prob 1.00.
2019-07-11 17:34:12 DEBUG    rasa_core.nlg.callback  - Requesting NLG for utter_introduction_chatbot from http://localhost:5006/nlg.
2019-07-11 17:34:13 DEBUG    rasa_core.processor  - Action 'utter_introduction_chatbot' ended with events '[]'
2019-07-11 17:34:13 DEBUG    rasa_core.processor  - Bot utterance 'BotUttered(text: Hi there! I'm Leo, your Virtual Assistant 👋, data: {
  "elements": null,
  "buttons": null,
  "attachment": null
})'
2019-07-11 17:34:13 DEBUG    rasa_core.policies.memoization  - Current tracker state [{'intent_language_selection': 1.0, 'prev_action_listen': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_introduction_chatbot': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_options_replies': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'prev_action_listen': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_introduction_chatbot': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}]
2019-07-11 17:34:13 DEBUG    rasa_core.policies.memoization  - There is no memorised next action
2019-07-11 17:34:13 DEBUG    rasa_core.policies.form_policy  - There is no active form
2019-07-11 17:34:13 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_0_KerasPolicy
2019-07-11 17:34:13 DEBUG    rasa_core.processor  - Predicted next action 'utter_options_replies' with prob 1.00.
2019-07-11 17:34:13 DEBUG    rasa_core.nlg.callback  - Requesting NLG for utter_options_replies from http://localhost:5006/nlg.
2019-07-11 17:34:14 DEBUG    rasa_core.processor  - Action 'utter_options_replies' ended with events '[]'
2019-07-11 17:34:14 DEBUG    rasa_core.processor  - Bot utterance 'BotUttered(text: None, data: {
  "elements": null,
  "buttons": null,
  "attachment": null
})'
2019-07-11 17:34:14 DEBUG    rasa_core.policies.memoization  - Current tracker state [{'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_introduction_chatbot': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_options_replies': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'prev_action_listen': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_introduction_chatbot': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_options_replies': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}]
2019-07-11 17:34:14 DEBUG    rasa_core.policies.memoization  - There is no memorised next action
2019-07-11 17:34:14 DEBUG    rasa_core.policies.form_policy  - There is no active form
2019-07-11 17:34:14 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_0_KerasPolicy
2019-07-11 17:34:14 DEBUG    rasa_core.processor  - Predicted next action 'action_listen' with prob 1.00.
2019-07-11 17:34:14 DEBUG    rasa_core.processor  - Action 'action_listen' ended with events '[]'
127.0.0.1 - - [2019-07-11 17:34:14] "POST /webhooks/rest/webhook HTTP/1.1" 200 599 2.138321
2019-07-11 17:35:22 DEBUG    rasa_core.tracker_store  - Recreating tracker for id 'default'
2019-07-11 17:35:22 DEBUG    rasa_core.processor  - Received user message 'how are you?' with intent '{'name': 'greetings.how_are_you', 'confidence': 0.9059035778045654}' and entities '[]'
2019-07-11 17:35:22 DEBUG    rasa_core.processor  - Logged UserUtterance - tracker now has 16 events
2019-07-11 17:35:22 DEBUG    rasa_core.processor  - Current slot values: 
	GPE: None
	LOC: None
	ORG: None
	PERSON: None
	appointment_time: None
	appt_id: None
	avatar_name: Leo
	body_part: None
	center_name: None
	centre_type: None
	doctor_id: None
	doctor_location: None
	doctor_name: None
	earliest_date: None
	earliest_time: None
	fallback_counter: None
	language: en
	lat: None
	lng: None
	location: None
	location_id: None
	otp_code: None
	patient_id: None
	prefered_date: None
	prefered_time: None
	requested_slot: None
	session_code: None
	severe_scale: None
	specialization: None
	sub_body_part: None
	symptom: None
	symptom_frequency: None
	token_no: None
	user_dob: None
	user_email: None
	user_gender: None
	user_name: None
	user_phone: None
2019-07-11 17:35:22 DEBUG    rasa_core.policies.memoization  - Current tracker state [{'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_options_replies': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'prev_action_listen': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_introduction_chatbot': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_options_replies': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_greetings.how_are_you': 1.0, 'prev_action_listen': 1.0, 'slot_avatar_name_0': 1.0, 'slot_language_0': 1.0}]
2019-07-11 17:35:22 DEBUG    rasa_core.policies.memoization  - There is no memorised next action
2019-07-11 17:35:22 DEBUG    rasa_core.policies.form_policy  - There is no active form
2019-07-11 17:35:22 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_3_MappingPolicy
2019-07-11 17:35:22 DEBUG    rasa_core.processor  - Predicted next action 'utter_greetings.how_are_you' with prob 1.00.
2019-07-11 17:35:22 DEBUG    rasa_core.nlg.callback  - Requesting NLG for utter_greetings.how_are_you from http://localhost:5006/nlg.
2019-07-11 17:35:23 DEBUG    rasa_core.processor  - Action 'utter_greetings.how_are_you' ended with events '[]'
2019-07-11 17:35:23 DEBUG    rasa_core.processor  - Bot utterance 'BotUttered(text: I'm doing very well. Thanks!, data: {
  "elements": null,
  "buttons": null,
  "attachment": null
})'
2019-07-11 17:35:23 DEBUG    rasa_core.policies.memoization  - Current tracker state [{'intent_language_selection': 1.0, 'prev_action_listen': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_introduction_chatbot': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_options_replies': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_greetings.how_are_you': 1.0, 'prev_action_listen': 1.0, 'slot_avatar_name_0': 1.0, 'slot_language_0': 1.0}, {'intent_greetings.how_are_you': 1.0, 'slot_avatar_name_0': 1.0, 'prev_utter_greetings.how_are_you': 1.0, 'slot_language_0': 1.0}]
2019-07-11 17:35:23 DEBUG    rasa_core.policies.memoization  - There is no memorised next action
2019-07-11 17:35:23 DEBUG    rasa_core.policies.form_policy  - There is no active form
2019-07-11 17:35:23 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_0_KerasPolicy
2019-07-11 17:35:23 DEBUG    rasa_core.processor  - Predicted next action 'action_listen' with prob 0.94.
2019-07-11 17:35:23 DEBUG    rasa_core.processor  - Action 'action_listen' ended with events '[]'
127.0.0.1 - - [2019-07-11 17:35:23] "POST /webhooks/rest/webhook HTTP/1.1" 200 175 1.558937
2019-07-11 17:35:53 DEBUG    rasa_core.tracker_store  - Recreating tracker for id 'default'
2019-07-11 17:35:53 DEBUG    rasa_core.processor  - Received user message '/book_appointment' with intent '{'name': 'book_appointment', 'confidence': 1.0}' and entities '[]'
2019-07-11 17:35:53 DEBUG    rasa_core.processor  - Logged UserUtterance - tracker now has 20 events
2019-07-11 17:35:53 DEBUG    rasa_core.processor  - Current slot values: 
	GPE: None
	LOC: None
	ORG: None
	PERSON: None
	appointment_time: None
	appt_id: None
	avatar_name: Leo
	body_part: None
	center_name: None
	centre_type: None
	doctor_id: None
	doctor_location: None
	doctor_name: None
	earliest_date: None
	earliest_time: None
	fallback_counter: None
	language: en
	lat: None
	lng: None
	location: None
	location_id: None
	otp_code: None
	patient_id: None
	prefered_date: None
	prefered_time: None
	requested_slot: None
	session_code: None
	severe_scale: None
	specialization: None
	sub_body_part: None
	symptom: None
	symptom_frequency: None
	token_no: None
	user_dob: None
	user_email: None
	user_gender: None
	user_name: None
	user_phone: None
2019-07-11 17:35:53 DEBUG    rasa_core.policies.memoization  - Current tracker state [{'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_introduction_chatbot': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_options_replies': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_greetings.how_are_you': 1.0, 'prev_action_listen': 1.0, 'slot_avatar_name_0': 1.0, 'slot_language_0': 1.0}, {'intent_greetings.how_are_you': 1.0, 'slot_avatar_name_0': 1.0, 'prev_utter_greetings.how_are_you': 1.0, 'slot_language_0': 1.0}, {'slot_language_0': 1.0, 'prev_action_listen': 1.0, 'slot_avatar_name_0': 1.0, 'intent_book_appointment': 1.0}]
2019-07-11 17:35:53 DEBUG    rasa_core.policies.memoization  - There is no memorised next action
2019-07-11 17:35:53 DEBUG    rasa_core.policies.form_policy  - There is no active form
2019-07-11 17:35:53 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_0_KerasPolicy
2019-07-11 17:35:53 DEBUG    rasa_core.processor  - Predicted next action 'action_get_centre_by_text' with prob 0.60.
2019-07-11 17:35:53 DEBUG    rasa_core.actions.action  - Calling action endpoint to run action 'action_get_centre_by_text'.
2019-07-11 17:35:54 DEBUG    rasa_core.processor  - Action 'action_get_centre_by_text' ended with events '['SlotSet(key: lat, value: 44.933143)', 'SlotSet(key: lng, value: 7.540121)']'
2019-07-11 17:35:54 DEBUG    rasa_core.policies.memoization  - Current tracker state [{'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'entity_avatar_name': 1.0, 'prev_utter_options_replies': 1.0, 'entity_language': 1.0, 'slot_language_0': 1.0}, {'intent_greetings.how_are_you': 1.0, 'prev_action_listen': 1.0, 'slot_avatar_name_0': 1.0, 'slot_language_0': 1.0}, {'intent_greetings.how_are_you': 1.0, 'slot_avatar_name_0': 1.0, 'prev_utter_greetings.how_are_you': 1.0, 'slot_language_0': 1.0}, {'slot_language_0': 1.0, 'prev_action_listen': 1.0, 'slot_avatar_name_0': 1.0, 'intent_book_appointment': 1.0}, {'slot_lng_0': 1.0, 'slot_avatar_name_0': 1.0, 'slot_lat_0': 1.0, 'intent_book_appointment': 1.0, 'slot_language_0': 1.0, 'prev_action_get_centre_by_text': 1.0}]
2019-07-11 17:35:54 DEBUG    rasa_core.policies.memoization  - There is no memorised next action
2019-07-11 17:35:54 DEBUG    rasa_core.policies.form_policy  - There is no active form
2019-07-11 17:35:54 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_0_KerasPolicy
2019-07-11 17:35:54 DEBUG    rasa_core.processor  - Predicted next action 'utter_replies_center_type' with prob 0.96.
2019-07-11 17:35:54 DEBUG    rasa_core.nlg.callback  - Requesting NLG for utter_replies_center_type from http://localhost:5006/nlg.
2019-07-11 17:35:55 DEBUG    rasa_core.processor  - Action 'utter_replies_center_type' ended with events '[]'
2019-07-11 17:35:55 DEBUG    rasa_core.processor  - Bot utterance 'BotUttered(text: None, data: {
  "elements": null,
  "buttons": null,
  "attachment": null
})'
2019-07-11 17:35:55 DEBUG    rasa_core.policies.memoization  - Current tracker state [{'intent_greetings.how_are_you': 1.0, 'prev_action_listen': 1.0, 'slot_avatar_name_0': 1.0, 'slot_language_0': 1.0}, {'intent_greetings.how_are_you': 1.0, 'slot_avatar_name_0': 1.0, 'prev_utter_greetings.how_are_you': 1.0, 'slot_language_0': 1.0}, {'slot_language_0': 1.0, 'prev_action_listen': 1.0, 'slot_avatar_name_0': 1.0, 'intent_book_appointment': 1.0}, {'slot_lng_0': 1.0, 'slot_avatar_name_0': 1.0, 'slot_lat_0': 1.0, 'intent_book_appointment': 1.0, 'slot_language_0': 1.0, 'prev_action_get_centre_by_text': 1.0}, {'slot_lng_0': 1.0, 'slot_avatar_name_0': 1.0, 'slot_lat_0': 1.0, 'prev_utter_replies_center_type': 1.0, 'intent_book_appointment': 1.0, 'slot_language_0': 1.0}]
2019-07-11 17:35:55 DEBUG    rasa_core.policies.memoization  - There is no memorised next action
2019-07-11 17:35:55 DEBUG    rasa_core.policies.form_policy  - There is no active form
2019-07-11 17:35:55 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_0_KerasPolicy
2019-07-11 17:35:56 DEBUG    rasa_core.processor  - Predicted next action 'action_listen' with prob 1.00.
2019-07-11 17:35:56 DEBUG    rasa_core.processor  - Action 'action_listen' ended with events '[]'
127.0.0.1 - - [2019-07-11 17:35:56] "POST /webhooks/rest/webhook HTTP/1.1" 200 460 2.547617

But if i tried to access it without mapping policy, it’s working fine:

2019-07-11 17:37:08 DEBUG    rasa_core.tracker_store  - Creating a new tracker for id 'default'.                                                                                             
2019-07-11 17:37:08 DEBUG    rasa_core.processor  - Received user message '/language_selection{"language": "en", "avatar_name": "Leo"}' with intent '{'name': 'language_selection', 'confidence': 1.0}' and entities '[{'entity': 'language', 'start': 19, 'end': 59, 'value': 'en'}, {'entity': 'avatar_name', 'start': 19, 'end': 59, 'value': 'Leo'}]'
2019-07-11 17:37:08 DEBUG    rasa_core.processor  - Logged UserUtterance - tracker now has 4 events
2019-07-11 17:37:08 DEBUG    rasa_core.processor  - Current slot values: 
	GPE: None
	LOC: None
	ORG: None
	PERSON: None
	appointment_time: None
	appt_id: None
	avatar_name: Leo
	body_part: None
	center_name: None
	centre_type: None
	doctor_id: None
	doctor_location: None
	doctor_name: None
	earliest_date: None
	earliest_time: None
	fallback_counter: None
	language: en
	lat: None
	lng: None
	location: None
	location_id: None
	otp_code: None
	patient_id: None
	prefered_date: None
	prefered_time: None
	requested_slot: None
	session_code: None
	severe_scale: None
	specialization: None
	sub_body_part: None
	symptom: None
	symptom_frequency: None
	token_no: None
	user_dob: None
	user_email: None
	user_gender: None
	user_name: None
	user_phone: None
2019-07-11 17:37:09 DEBUG    rasa_core.policies.memoization  - Current tracker state [None, None, None, {}, {'entity_language': 1.0, 'entity_avatar_name': 1.0, 'prev_action_listen': 1.0, 'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'slot_language_0': 1.0}]
2019-07-11 17:37:09 DEBUG    rasa_core.policies.memoization  - There is a memorised next action '95'
2019-07-11 17:37:09 DEBUG    rasa_core.policies.form_policy  - There is no active form
2019-07-11 17:37:09 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_1_MemoizationPolicy
2019-07-11 17:37:09 DEBUG    rasa_core.processor  - Predicted next action 'utter_introduction_chatbot' with prob 1.00.
2019-07-11 17:37:09 DEBUG    rasa_core.nlg.callback  - Requesting NLG for utter_introduction_chatbot from http://localhost:5006/nlg.
2019-07-11 17:37:10 DEBUG    rasa_core.processor  - Action 'utter_introduction_chatbot' ended with events '[]'
2019-07-11 17:37:10 DEBUG    rasa_core.processor  - Bot utterance 'BotUttered(text: Hi there! I'm Leo, your Virtual Assistant 👋, data: {
  "elements": null,
  "buttons": null,
  "attachment": null
})'
2019-07-11 17:37:10 DEBUG    rasa_core.policies.memoization  - Current tracker state [None, None, {}, {'entity_language': 1.0, 'entity_avatar_name': 1.0, 'prev_action_listen': 1.0, 'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'slot_language_0': 1.0}, {'entity_language': 1.0, 'entity_avatar_name': 1.0, 'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'prev_utter_introduction_chatbot': 1.0, 'slot_language_0': 1.0}]
2019-07-11 17:37:10 DEBUG    rasa_core.policies.memoization  - There is a memorised next action '96'
2019-07-11 17:37:10 DEBUG    rasa_core.policies.form_policy  - There is no active form
2019-07-11 17:37:10 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_1_MemoizationPolicy
2019-07-11 17:37:10 DEBUG    rasa_core.processor  - Predicted next action 'utter_options_replies' with prob 1.00.
2019-07-11 17:37:10 DEBUG    rasa_core.nlg.callback  - Requesting NLG for utter_options_replies from http://localhost:5006/nlg.
2019-07-11 17:37:11 DEBUG    rasa_core.processor  - Action 'utter_options_replies' ended with events '[]'
2019-07-11 17:37:11 DEBUG    rasa_core.processor  - Bot utterance 'BotUttered(text: None, data: {
  "elements": null,
  "buttons": null,
  "attachment": null
})'
2019-07-11 17:37:11 DEBUG    rasa_core.policies.memoization  - Current tracker state [None, {}, {'entity_language': 1.0, 'entity_avatar_name': 1.0, 'prev_action_listen': 1.0, 'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'slot_language_0': 1.0}, {'entity_language': 1.0, 'entity_avatar_name': 1.0, 'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'prev_utter_introduction_chatbot': 1.0, 'slot_language_0': 1.0}, {'entity_language': 1.0, 'entity_avatar_name': 1.0, 'intent_language_selection': 1.0, 'prev_utter_options_replies': 1.0, 'slot_avatar_name_0': 1.0, 'slot_language_0': 1.0}]
2019-07-11 17:37:11 DEBUG    rasa_core.policies.memoization  - There is a memorised next action '0'
2019-07-11 17:37:11 DEBUG    rasa_core.policies.form_policy  - There is no active form
2019-07-11 17:37:11 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_1_MemoizationPolicy
2019-07-11 17:37:11 DEBUG    rasa_core.processor  - Predicted next action 'action_listen' with prob 1.00.
2019-07-11 17:37:11 DEBUG    rasa_core.processor  - Action 'action_listen' ended with events '[]'
127.0.0.1 - - [2019-07-11 17:37:11] "POST /webhooks/rest/webhook HTTP/1.1" 200 599 2.844564
2019-07-11 17:37:14 DEBUG    rasa_core.tracker_store  - Recreating tracker for id 'default'
2019-07-11 17:37:14 DEBUG    rasa_core.processor  - Received user message '/book_appointment' with intent '{'name': 'book_appointment', 'confidence': 1.0}' and entities '[]'
2019-07-11 17:37:14 DEBUG    rasa_core.processor  - Logged UserUtterance - tracker now has 10 events
2019-07-11 17:37:14 DEBUG    rasa_core.processor  - Current slot values: 
	GPE: None
	LOC: None
	ORG: None
	PERSON: None
	appointment_time: None
	appt_id: None
	avatar_name: Leo
	body_part: None
	center_name: None
	centre_type: None
	doctor_id: None
	doctor_location: None
	doctor_name: None
	earliest_date: None
	earliest_time: None
	fallback_counter: None
	language: en
	lat: None
	lng: None
	location: None
	location_id: None
	otp_code: None
	patient_id: None
	prefered_date: None
	prefered_time: None
	requested_slot: None
	session_code: None
	severe_scale: None
	specialization: None
	sub_body_part: None
	symptom: None
	symptom_frequency: None
	token_no: None
	user_dob: None
	user_email: None
	user_gender: None
	user_name: None
	user_phone: None
2019-07-11 17:37:14 DEBUG    rasa_core.policies.memoization  - Current tracker state [{}, {'entity_language': 1.0, 'entity_avatar_name': 1.0, 'prev_action_listen': 1.0, 'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'slot_language_0': 1.0}, {'entity_language': 1.0, 'entity_avatar_name': 1.0, 'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'prev_utter_introduction_chatbot': 1.0, 'slot_language_0': 1.0}, {'entity_language': 1.0, 'entity_avatar_name': 1.0, 'intent_language_selection': 1.0, 'prev_utter_options_replies': 1.0, 'slot_avatar_name_0': 1.0, 'slot_language_0': 1.0}, {'prev_action_listen': 1.0, 'slot_language_0': 1.0, 'intent_book_appointment': 1.0, 'slot_avatar_name_0': 1.0}]
2019-07-11 17:37:14 DEBUG    rasa_core.policies.memoization  - There is a memorised next action '97'
2019-07-11 17:37:14 DEBUG    rasa_core.policies.form_policy  - There is no active form
2019-07-11 17:37:14 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_1_MemoizationPolicy
2019-07-11 17:37:14 DEBUG    rasa_core.processor  - Predicted next action 'utter_list_appointment_options' with prob 1.00.
2019-07-11 17:37:14 DEBUG    rasa_core.nlg.callback  - Requesting NLG for utter_list_appointment_options from http://localhost:5006/nlg.
2019-07-11 17:37:15 DEBUG    rasa_core.processor  - Action 'utter_list_appointment_options' ended with events '[]'
2019-07-11 17:37:15 DEBUG    rasa_core.processor  - Bot utterance 'BotUttered(text: None, data: {
  "elements": null,
  "buttons": null,
  "attachment": null
})'
2019-07-11 17:37:15 DEBUG    rasa_core.policies.memoization  - Current tracker state [{'entity_language': 1.0, 'entity_avatar_name': 1.0, 'prev_action_listen': 1.0, 'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'slot_language_0': 1.0}, {'entity_language': 1.0, 'entity_avatar_name': 1.0, 'intent_language_selection': 1.0, 'slot_avatar_name_0': 1.0, 'prev_utter_introduction_chatbot': 1.0, 'slot_language_0': 1.0}, {'entity_language': 1.0, 'entity_avatar_name': 1.0, 'intent_language_selection': 1.0, 'prev_utter_options_replies': 1.0, 'slot_avatar_name_0': 1.0, 'slot_language_0': 1.0}, {'prev_action_listen': 1.0, 'slot_language_0': 1.0, 'intent_book_appointment': 1.0, 'slot_avatar_name_0': 1.0}, {'prev_utter_list_appointment_options': 1.0, 'slot_language_0': 1.0, 'intent_book_appointment': 1.0, 'slot_avatar_name_0': 1.0}]
2019-07-11 17:37:15 DEBUG    rasa_core.policies.memoization  - There is a memorised next action '0'
2019-07-11 17:37:15 DEBUG    rasa_core.policies.form_policy  - There is no active form
2019-07-11 17:37:15 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_1_MemoizationPolicy
2019-07-11 17:37:15 DEBUG    rasa_core.processor  - Predicted next action 'action_listen' with prob 1.00.
2019-07-11 17:37:15 DEBUG    rasa_core.processor  - Action 'action_listen' ended with events '[]'
127.0.0.1 - - [2019-07-11 17:37:15] "POST /webhooks/rest/webhook HTTP/1.1" 200 735 1.128989

So it’s supposed to respond with ‘utter_list_appointment_options’ but if i trigger mapping policy first, the bot will respond with ‘action_get_centre_by_text’. Please help. Thank you

(Ella Rohm-Ensing) #2

Could you post the relevant parts of your domain (intents) and then a quick markdown explanation of how you expect the story to go and how it is going? As well as any relevant story data

(Yanuar Putra) #3

book_appointment.md (625.0 KB)

So this is the book appointment flow, so mapping policy will not affect any stories i assume. The user case right now, they did some chitchat (small talk mapped to mapping policy) then after that they want to book an appointment(with quick replies or text input), instead of responded with book appointment options, the bot gave the user with something else and ignore the fallback policy, so the confidence level was 0.4 something, and my Fallback Policy set the threshold to 0.65.

(Ella Rohm-Ensing) #4

Right, but what mappings do you have? I can’t know if it should affect anything if I don’t know what the mappings are

(Yanuar Putra) #5
intents:
    - agent.acquaintance: {triggers: utter_agent.acquaintance}
    - agent.age: {triggers: utter_agent.age}
    - agent.annoying: {triggers: utter_agent.annoying}
    - agent.answer_my_question: {triggers: utter_agent.answer_my_question}
    - agent.bad: {triggers: utter_agent.bad}
    - agent.be_clever: {triggers: utter_agent.be_clever}
    - agent.beautiful: {triggers: utter_agent.beautiful}
    - agent.birth_date: {triggers: utter_agent.birth_date}
    - agent.boring: {triggers: utter_agent.boring}
    - agent.boss: {triggers: utter_agent.boss}
    - agent.busy: {triggers: utter_agent.busy}
    - agent.can_you_help: {triggers: utter_agent.can_you_help}
    - agent.chatbot: {triggers: utter_agent.chatbot}
    - agent.clever: {triggers: utter_agent.clever}
    - agent.crazy: {triggers: utter_agent.crazy}
    - agent.fired: {triggers: utter_agent.fired}
    - agent.funny: {triggers: utter_agent.funny}
    - agent.good: {triggers: utter_agent.good}
    - agent.happy: {triggers: utter_agent.happy}
    - agent.hobby: {triggers: utter_agent.hobby}
    - agent.hungry: {triggers: utter_agent.hungry}
    - agent.marry_user: {triggers: utter_agent.marry_user}
    - agent.my_friend: {triggers: utter_agent.my_friend}
    - agent.occupation: {triggers: utter_agent.occupation}
    - agent.origin: {triggers: utter_agent.origin}
    - agent.ready: {triggers: utter_agent.ready}
    - agent.real: {triggers: utter_agent.real}
    - agent.residence: {triggers: utter_agent.residence}
    - agent.right: {triggers: utter_agent.right}
    - agent.sure: {triggers: utter_agent.sure}
    - agent.talk_to_me: {triggers: utter_agent.talk_to_me}
    - agent.there: {triggers: utter_agent.there}
    - appraisal.bad: {triggers: utter_appraisal.bad}
    - appraisal.good: {triggers: utter_appraisal.good}
    - appraisal.no_problem: {triggers: utter_appraisal.no_problem}
    - appraisal.thank_you: {triggers: utter_appraisal.thank_you}
    - appraisal.welcome: {triggers: utter_appraisal.welcome}
    - appraisal.well_done: {triggers: utter_appraisal.well_done}
    - dialog.hold_on: {triggers: utter_dialog.hold_on}
    - dialog.hug: {triggers: utter_dialog.hug}
    - dialog.i_do_not_care: {triggers: utter_dialog.i_do_not_care}
    - dialog.sorry: {triggers: utter_dialog.sorry}
    - dialog.what_do_you_mean: {triggers: utter_dialog.what_do_you_mean}
    - dialog.wrong: {triggers: utter_dialog.wrong}
    - emotions.ha_ha: {triggers: utter_emotions.ha_ha}
    - emotions.wow: {triggers: utter_emotions.wow}
    - greetings.bye: {triggers: utter_greetings.bye}
    - greetings.goodevening: {triggers: utter_greetings.goodevening}
    - greetings.goodmorning: {triggers: utter_greetings.goodmorning}
    - greetings.goodnight: {triggers: utter_greetings.goodnight}
    - greetings.hello: {triggers: utter_greetings.hello}
    - greetings.how_are_you: {triggers: utter_greetings.how_are_you}
    - greetings.nice_to_meet_you: {triggers: utter_greetings.nice_to_meet_you}
    - greetings.nice_to_see_you: {triggers: utter_greetings.nice_to_see_you}
    - greetings.nice_to_talk_to_you: {triggers: utter_greetings.nice_to_talk_to_you}
    - greetings.whatsup: {triggers: utter_greetings.whatsup}
    - user.angry: {triggers: utter_user.angry}
    - user.back: {triggers: utter_user.back}
    - user.bored: {triggers: utter_user.bored}
    - user.busy: {triggers: utter_user.busy}
    - user.can_not_sleep: {triggers: utter_user.can_not_sleep}
    - user.does_not_want_to_talk: {triggers: utter_user.does_not_want_to_talk}
    - user.excited: {triggers: utter_user.excited}
    - user.going_to_bed: {triggers: utter_user.going_to_bed}
    - user.good: {triggers: utter_user.good}
    - user.happy: {triggers: utter_user.happy}
    - user.has_birthday: {triggers: utter_user.has_birthday}
    - user.here: {triggers: utter_user.here}
    - user.joking: {triggers: utter_user.joking}
    - user.likes_agent: {triggers: utter_user.likes_agent}
    - user.lonely: {triggers: utter_user.lonely}
    - user.looks_like: {triggers: utter_user.looks_like}
    - user.loves_agent: {triggers: utter_user.loves_agent}
    - user.misses_agent: {triggers: utter_user.misses_agent}
    - user.needs_advice: {triggers: utter_user.needs_advice}
    - user.sad: {triggers: utter_user.sad}
    - user.sleepy: {triggers: utter_user.sleepy}
    - user.testing_agent: {triggers: utter_user.testing_agent}
    - user.tired: {triggers: utter_user.tired}
    - user.waits: {triggers: utter_user.waits}
    - user.wants_to_see_agent_again: {triggers: utter_user.wants_to_see_agent_again}
    - user.wants_to_talk: {triggers: utter_user.wants_to_talk}
    - user.will_be_back: {triggers: utter_user.will_be_back}
(Ella Rohm-Ensing) #6

Also what version of rasa are you running? I know we had a bug earlier about mapping ignoring the fallback policy that was fixed.

(Yanuar Putra) #7

I’m still using the 0.14 version: rasa-core==0.14.4 rasa-core-sdk==0.14.0 rasa-nlu==0.15.1

I faced the issue with mapping policy on previous version of 0.14.

(Ella Rohm-Ensing) #8

Yes, this wasn’t fixed until rasa 1.0.2 here https://github.com/RasaHQ/rasa/pull/3543

(Yanuar Putra) #9

Ah, i see now. Cool stuff, thanks a lot @erohmensing :smiley: really helps.