Hi
I am new to rasa and i am trying to build a poc for my client but i am not able to understand how policies(memeorization and keras ) predict next action depends on current tracker and also i am not able to understand how current tracker works (ie how to check action flow in current tracker i am bit confused while i am checking current tracker).
when i train model with augmentation 0 during flow somes times it is going to fallback action but if i train with out augmentation 0 it is predicting next actions correctly .can you please let me know why it is behaving like this when augmentation 0 .
below is a story,config,debug details attcahed for reference.
This is a sample story i have another 4 stories for different flows STORY:
* user_payment_message
- utter_message_login_credentials
- utter_yes_no_buttons
* affirm
- utter_user_id
* user_name{"user_id":"kondapur"}
- action_user_id_slot_set
- slot{"user_id":"kondapur"}
- utter_password
* user_password{"password":"action123"}
- action_password_slot_set
- slot{"password":"action123"}
- action_outstanding_amount_preprocess
- slot{"group_num":"910098"}
- slot{"user_name":"SuryaMurthi"}
- slot{"Email_address":"suryanarayanamurthy.gadepalli@anthem.com"}
- slot{"group_name":"DAVID_HOUSE_17"}
- action_outstanding_amount
- slot{"state_code":"CA"}
- slot{"brandCode":"VIRGINIA"}
- slot{"businessunitcode":"SMGRP"}
- slot{"groupsyskey":"15565"}
- slot{"billingentitysyskey":"37366"}
- slot{"lockboxnumber":"116789"}
- slot{"billingentityname":"BULB_TESTER"}
- slot{"paidamount":"12300"}
- slot{"operationname":"SAVE_PAYMENTS"}
- slot{"systemcode":"STARWARS"}
- slot{"err_reason":"bill empty"}
- action_due_amount_check
- slot{"due_amount_check":"False"}
- action_due_amount_check_validated
- slot{"due_amount_flag": 0}
- utter_payment_message
- utter_yes_no_buttons
* affirm
- action_bank_account_detais
- slot{"accounttype":"CHECKINGTYPE"}
- slot{"accountno":"5555551111"}
- slot{"routingnumber":"12312312314567"}
- utter_payment_account_deny_affirm
- utter_yes_no_buttons
* affirm
- action_bank_payment_success
- utter_ask_rating
- utter_rating_buttons
* user_rating{"rate":"1"}
- utter_thanks
- action_user_restart
CONFIG:
# Configuration for Rasa NLU.
# https://rasa.com/docs/rasa/nlu/components/
language: en
pipeline: supervised_embeddings
# Configuration for Rasa Core.
# https://rasa.com/docs/rasa/core/policies/
policies:
- name: MemoizationPolicy
max_history: 19
- name: KerasPolicy
max_history: 19
- name: MappingPolicy
- name: FallbackPolicy
nlu_threshold: 0.4
core_threshold: 0.4
fallback_action_name: "action_custom_fallback"
Custom fall back predict when augmentation 0:
2019-07-26 03:59:31 DEBUG rasa.core.processor - Predicted next action 'action_outstanding_amount' with confidence 1.00.
2019-07-26 03:59:31 DEBUG rasa.core.actions.action - Calling action endpoint to run action 'action_outstanding_amount'.
2019-07-26 03:59:37 DEBUG rasa.core.processor - Action 'action_outstanding_amount' ended with events '['SlotSet(key: err_reason, value: null or zero)', 'SlotSet(key: state_code, value: CA)']'
2019-07-26 03:59:37 DEBUG rasa.core.processor - Current slot values:
Email_address: suryanarayanamurthy.gadepalli@anthem.com
accountno: None
accounttype: None
billingentityname: None
billingentitysyskey: None
brandCode: None
businessunitcode: None
due_amount_check: False
due_amount_flag: 0
err_reason: null or zero
group_name: DAVID_HOUSE
group_num: 300700
groupsyskey: None
lockboxnumber: None
operationname: None
paidamount: None
password: action123
routingnumber: None
state_code: CA
systemcode: None
user_id: surya2019
user_name: SuryaMurthi
2019-07-26 03:59:37 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, None, None, None, None, {'slot_err_reason_0': 1.0, 'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'prev_action_listen': 1.0, 'intent_user_payment_message': 1.0}, {'prev_utter_message_login_credentials': 1.0, 'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_payment_message': 1.0}, {'slot_due_amount_check_0': 1.0, 'prev_utter_yes_no_buttons': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_payment_message': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_affirm': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'prev_action_listen': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_affirm': 1.0, 'prev_utter_user_id': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_user_name': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'prev_action_listen': 1.0, 'entity_user_id': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_user_name': 1.0, 'slot_due_amount_flag_0': 1.0, 'prev_action_user_id_slot_set': 1.0, 'slot_err_reason_0': 1.0, 'entity_user_id': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_user_name': 1.0, 'slot_due_amount_flag_0': 1.0, 'prev_utter_password': 1.0, 'slot_err_reason_0': 1.0, 'entity_user_id': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'entity_password': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_password': 1.0, 'prev_action_listen': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'entity_password': 1.0, 'prev_action_password_slot_set': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_password': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_user_name_0': 1.0, 'prev_action_outstanding_amount_preprocess': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_group_num_0': 1.0, 'slot_group_name_0': 1.0, 'entity_password': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_password': 1.0, 'slot_Email_address_0': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_user_name_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_group_num_0': 1.0, 'slot_group_name_0': 1.0, 'entity_password': 1.0, 'slot_state_code_0': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_password': 1.0, 'prev_action_outstanding_amount': 1.0, 'slot_Email_address_0': 1.0}]
2019-07-26 03:59:37 DEBUG rasa.core.policies.memoization - There is no memorised next action
2019-07-26 03:59:37 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, 'user_password'.
2019-07-26 03:59:37 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.4).
2019-07-26 03:59:37 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_3_FallbackPolicy
2019-07-26 03:59:37 DEBUG rasa.core.processor - Predicted next action 'action_custom_fallback' with confidence 0.40.
2019-07-26 03:59:37 DEBUG rasa.core.actions.action - Calling action endpoint to run action 'action_custom_fallback'.
2019-07-26 03:59:37 DEBUG rasa.core.processor - Action 'action_custom_fallback' ended with events '['BotUttered(text: Please reach out to our dedicated customer support team for help.\n (855) 854-1429 or Email General Support - CALGEmployerAccess@anthem.com, data: {"elements": null, "quick_replies": null, "buttons": null, "attachment": null, "image": null, "custom": null}, metadata: {})']'
2019-07-26 03:59:37 DEBUG rasa.core.processor - Current slot values:
Email_address: suryanarayanamurthy.gadepalli@anthem.com
accountno: None
accounttype: None
billingentityname: None
billingentitysyskey: None
brandCode: None
businessunitcode: None
due_amount_check: False
due_amount_flag: 0
err_reason: null or zero
group_name: DAVID_HOUSE
group_num: 300700
groupsyskey: None
lockboxnumber: None
operationname: None
paidamount: None
password:action123
routingnumber: None
state_code: CA
systemcode: None
user_id: surya2019
user_name: SuryaMurthi
2019-07-26 03:59:37 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, None, None, None, {'slot_err_reason_0': 1.0, 'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'prev_action_listen': 1.0, 'intent_user_payment_message': 1.0}, {'prev_utter_message_login_credentials': 1.0, 'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_payment_message': 1.0}, {'slot_due_amount_check_0': 1.0, 'prev_utter_yes_no_buttons': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_payment_message': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_affirm': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'prev_action_listen': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_affirm': 1.0, 'prev_utter_user_id': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_user_name': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'prev_action_listen': 1.0, 'entity_user_id': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_user_name': 1.0, 'slot_due_amount_flag_0': 1.0, 'prev_action_user_id_slot_set': 1.0, 'slot_err_reason_0': 1.0, 'entity_user_id': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_user_name': 1.0, 'slot_due_amount_flag_0': 1.0, 'prev_utter_password': 1.0, 'slot_err_reason_0': 1.0, 'entity_user_id': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'entity_password': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_password': 1.0, 'prev_action_listen': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'entity_password': 1.0, 'prev_action_password_slot_set': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_password': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_user_name_0': 1.0, 'prev_action_outstanding_amount_preprocess': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_group_num_0': 1.0, 'slot_group_name_0': 1.0, 'entity_password': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_password': 1.0, 'slot_Email_address_0': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_user_name_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_group_num_0': 1.0, 'slot_group_name_0': 1.0, 'entity_password': 1.0, 'slot_state_code_0': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_password': 1.0, 'prev_action_outstanding_amount': 1.0, 'slot_Email_address_0': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_user_name_0': 1.0, 'prev_action_custom_fallback': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_group_num_0': 1.0, 'slot_group_name_0': 1.0, 'entity_password': 1.0, 'slot_state_code_0': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_password': 1.0, 'slot_Email_address_0': 1.0}]
2019-07-26 03:59:37 DEBUG rasa.core.policies.memoization - There is no memorised next action
2019-07-26 03:59:37 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, 'user_password'.
2019-07-26 03:59:37 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_3_FallbackPolicy
2019-07-26 03:59:37 DEBUG rasa.core.processor - Predicted next action 'action_listen' with confidence 1.00.
2019-07-26 03:59:37 DEBUG rasa.core.processor - Action 'action_listen' ended with events '[]'
2019-07-26 03:59:37 DEBUG rasa.core.agent - Deleted lock for conversation '76d8e19c-37ec-42a3-a4b2-bd3007526f86' (unused)
DEBUG DETAILS HOW IT IS PREDICTING NEXT ACTION THROUGH MEMORIZATION AND KERAS POLICY:
2019-07-26 03:59:30 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, None, None, None, None, None, None, {'slot_err_reason_0': 1.0, 'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'prev_action_listen': 1.0, 'intent_user_payment_message': 1.0}, {'prev_utter_message_login_credentials': 1.0, 'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_payment_message': 1.0}, {'slot_due_amount_check_0': 1.0, 'prev_utter_yes_no_buttons': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_payment_message': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_affirm': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'prev_action_listen': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_affirm': 1.0, 'prev_utter_user_id': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_user_name': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'prev_action_listen': 1.0, 'entity_user_id': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_user_name': 1.0, 'slot_due_amount_flag_0': 1.0, 'prev_action_user_id_slot_set': 1.0, 'slot_err_reason_0': 1.0, 'entity_user_id': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_user_name': 1.0, 'slot_due_amount_flag_0': 1.0, 'prev_utter_password': 1.0, 'slot_err_reason_0': 1.0, 'entity_user_id': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'entity_password': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_password': 1.0, 'prev_action_listen': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'entity_password': 1.0, 'prev_action_password_slot_set': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_password': 1.0}]
2019-07-26 03:59:30 DEBUG rasa.core.policies.memoization - There is a memorised next action '14'
2019-07-26 03:59:30 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, 'user_password'.
2019-07-26 03:59:30 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.4).
2019-07-26 03:59:30 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_0_MemoizationPolicy
2019-07-26 03:59:30 DEBUG rasa.core.processor - Predicted next action 'action_outstanding_amount_preprocess' with confidence 1.00.
2019-07-26 03:59:30 DEBUG rasa.core.actions.action - Calling action endpoint to run action 'action_outstanding_amount_preprocess'.
2019-07-26 03:59:31 DEBUG rasa.core.processor - Action 'action_outstanding_amount_preprocess' ended with events '['SlotSet(key: group_num, value: 315858)', 'SlotSet(key: user_name, value: SuryaMurthi)', 'SlotSet(key: Email_address, value: suryanarayanamurthy.gadepalli@anthem.com)', 'SlotSet(key: group_name, value: DAVID_CAB_17)']'
2019-07-26 03:59:31 DEBUG rasa.core.processor - Current slot values:
Email_address: suryanarayanamurthy.gadepalli@anthem.com
accountno: None
accounttype: None
billingentityname: None
billingentitysyskey: None
brandCode: None
businessunitcode: None
due_amount_check: False
due_amount_flag: 0
err_reason: no error
group_name: DAVID_house
group_num: 300700
groupsyskey: None
lockboxnumber: None
operationname: None
paidamount: None
password: action123
routingnumber: None
state_code: None
systemcode: None
user_id: surya2019
user_name: SuryaMurthi
2019-07-26 03:59:31 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, None, None, None, None, None, {'slot_err_reason_0': 1.0, 'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'prev_action_listen': 1.0, 'intent_user_payment_message': 1.0}, {'prev_utter_message_login_credentials': 1.0, 'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_payment_message': 1.0}, {'slot_due_amount_check_0': 1.0, 'prev_utter_yes_no_buttons': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_payment_message': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_affirm': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'prev_action_listen': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_affirm': 1.0, 'prev_utter_user_id': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_user_name': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_err_reason_0': 1.0, 'prev_action_listen': 1.0, 'entity_user_id': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_user_name': 1.0, 'slot_due_amount_flag_0': 1.0, 'prev_action_user_id_slot_set': 1.0, 'slot_err_reason_0': 1.0, 'entity_user_id': 1.0}, {'slot_due_amount_check_0': 1.0, 'intent_user_name': 1.0, 'slot_due_amount_flag_0': 1.0, 'prev_utter_password': 1.0, 'slot_err_reason_0': 1.0, 'entity_user_id': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'entity_password': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_password': 1.0, 'prev_action_listen': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_due_amount_flag_0': 1.0, 'entity_password': 1.0, 'prev_action_password_slot_set': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_password': 1.0}, {'slot_due_amount_check_0': 1.0, 'slot_user_name_0': 1.0, 'prev_action_outstanding_amount_preprocess': 1.0, 'slot_due_amount_flag_0': 1.0, 'slot_group_num_0': 1.0, 'slot_group_name_0': 1.0, 'entity_password': 1.0, 'slot_err_reason_0': 1.0, 'intent_user_password': 1.0, 'slot_Email_address_0': 1.0}]
2019-07-26 03:59:31 DEBUG rasa.core.policies.memoization - There is a memorised next action '13'
2019-07-26 03:59:31 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, 'user_password'.
2019-07-26 03:59:31 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.4).
2019-07-26 03:59:31 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_0_MemoizationPolicy
2019-07-26 03:59:31 DEBUG rasa.core.processor - Predicted next action 'action_outstanding_amount' with confidence 1.00.
2019-07-26 03:59:31 DEBUG rasa.core.actions.action - Calling action endpoint to run action 'action_outstanding_amount'.
2019-07-26 03:59:37 DEBUG rasa.core.processor - Action 'action_outstanding_amount' ended with events '['SlotSet(key: err_reason, value: null or zero)', 'SlotSet(key: state_code, value: CA)']'
2019-07-26 03:59:37 DEBUG rasa.core.processor - Current slot values:
Email_address: suryanarayanamurthy.gadepalli@anthem.com
accountno: None
accounttype: None
billingentityname: None
billingentitysyskey: None
brandCode: None
businessunitcode: None
due_amount_check: False
due_amount_flag: 0
err_reason: null or zero
group_name: DAVID_HOUSE
group_num: 300700
groupsyskey: None
lockboxnumber: None
operationname: None
paidamount: None
password: action123
routingnumber: None
state_code: CA
systemcode: None
user_id: surya2019
user_name: SuryaMurthi
Sorry for the long mail.
Thanks, Surya.