I am having trouble understanding how to train the model to reflect my desired cases from the stories I have created. I would like to create two initial stories:
- User begins with “hello” intent, then commence a prompt for form filling (form called “count_episode”
- User begins by immediately stating the answer to the first intent in the form (vehicleCount).
I have two stories so far, neither of which suggests that a particular intent should ever be called (inform_zipCode). Despite this, when I try to test my bot by typing a particular number as an initial response to my bot with the hopes of eliciting the story #2 described above, the intent inform_zipCode keeps being predicted. Both inform_vehicleCount and inform_zipCode intents are heavily trained to identify number entities, however, inform_zipCode isn’t ever reflected in my stories at all.
Does anyone know how I can modify my stories file to elicit the desired behavior I described above? The docs are not informative, and I also can’t figure out how to launch interactive mode to create new stories. I’m attaching my files that are relevant below:
#debug log
Bot loaded. Type a message and press enter (use '/stop' to exit):
2
2019-01-25 16:56:42 DEBUG rasa_core.tracker_store - Creating a new tracker for id 'default'.
2019-01-25 16:56:42 DEBUG rasa_core.processor - Received user message '2' with intent '{'name': 'inform_zipCode', 'confidence': 0.7799462080001831}' and entities '[{'start': 0, 'end': 1, 'value': '2', 'entity': 'number', 'confidence': 0.9896828566265073, 'extractor': 'ner_crf'}, {'start': 0, 'end': 1, 'text': '2', 'value': 2, 'confidence': 1.0, 'additional_info': {'value': 2, 'type': 'value'}, 'entity': 'number', 'extractor': 'ner_duckling_http'}]'
2019-01-25 16:56:42 DEBUG rasa_core.processor - Logged UserUtterance - tracker now has 2 events
2019-01-25 16:56:42 DEBUG rasa_core.processor - Current slot values:
age: None
can_use_spacy: None
countTime: None
current_api: None
data_stored: None
entity_extractor: None
feedback_message: None
feedback_value: None
language: None
name: None
nlu_part: None
onboarding: None
package_manager: None
partyVehics: None
peopleCount: None
problem_description: None
product: None
requested_slot: None
returnStatus: None
search_results: None
shown_privacy: None
source: None
step: None
suggestion: None
trailVisits: None
unknown_nlu_part: None
unknown_product: None
vehicleCount: None
yearBorn: None
zipCode: None
2019-01-25 16:56:42 DEBUG rasa_core.policies.memoization - Current tracker state [None, None, None, None, None, None, {}, {'intent_inform_zipCode': 1.0, 'prev_action_listen': 1.0, 'entity_number': 1.0}]
2019-01-25 16:56:42 DEBUG rasa_core.policies.memoization - There is no memorised next action
2019-01-25 16:56:42 DEBUG rasa_core.policies.two_stage_fallback - User 'default' has to affirm intent 'inform_zipCode'.
2019-01-25 16:56:42 DEBUG rasa_core.policies.form_policy - There is no active form
2019-01-25 16:56:42 DEBUG rasa_core.policies.ensemble - Predicted next action using policy_2_TwoStageFallbackPolicy
2019-01-25 16:56:42 DEBUG rasa_core.processor - Predicted next action 'action_default_ask_affirmation' with prob 1.00.
2019-01-25 16:56:42 DEBUG rasa_core.processor - Action 'action_default_ask_affirmation' ended with events '[]'
2019-01-25 16:56:42 DEBUG rasa_core.processor - Bot utterance 'BotUttered(text: Did you mean 'inform_zipCode'?, data: {
"buttons": [
{
"title": "Yes",
"payload": "/affirm"
},
{
"title": "No",
"payload": "/deny"
}
]
})'
Did you mean 'inform_zipCode'?
Buttons:
1: Yes (/affirm)
Buttons:
2: No (/deny)
2019-01-25 16:56:42 DEBUG rasa_core.policies.memoization - Current tracker state [None, None, None, None, None, {}, {'intent_inform_zipCode': 1.0, 'prev_action_listen': 1.0, 'entity_number': 1.0}, {'intent_inform_zipCode': 1.0, 'entity_number': 1.0, 'prev_action_default_ask_affirmation': 1.0}]
2019-01-25 16:56:42 DEBUG rasa_core.policies.memoization - There is no memorised next action
2019-01-25 16:56:42 DEBUG rasa_core.policies.form_policy - There is no active form
2019-01-25 16:56:42 DEBUG rasa_core.policies.ensemble - Predicted next action using policy_2_TwoStageFallbackPolicy
2019-01-25 16:56:42 DEBUG rasa_core.processor - Predicted next action 'action_listen' with prob 1.00.
2019-01-25 16:56:42 DEBUG rasa_core.processor - Action 'action_listen' ended with events '[]'
127.0.0.1 - - [2019-01-25 16:56:42] "POST /webhooks/rest/webhook?stream=true&token= HTTP/1.1" 200 288 0.259916
2
2019-01-25 16:56:50 DEBUG rasa_core.tracker_store - Recreating tracker for id 'default'
2019-01-25 16:56:50 DEBUG rasa_core.processor - Received user message '2' with intent '{'name': 'inform_zipCode', 'confidence': 0.7799462080001831}' and entities '[{'start': 0, 'end': 1, 'value': '2', 'entity': 'number', 'confidence': 0.9896828566265073, 'extractor': 'ner_crf'}, {'start': 0, 'end': 1, 'text': '2', 'value': 2, 'confidence': 1.0, 'additional_info': {'value': 2, 'type': 'value'}, 'entity': 'number', 'extractor': 'ner_duckling_http'}]'
2019-01-25 16:56:50 DEBUG rasa_core.processor - Logged UserUtterance - tracker now has 6 events
2019-01-25 16:56:50 DEBUG rasa_core.processor - Current slot values:
age: None
can_use_spacy: None
countTime: None
current_api: None
data_stored: None
entity_extractor: None
feedback_message: None
feedback_value: None
language: None
name: None
nlu_part: None
onboarding: None
package_manager: None
partyVehics: None
peopleCount: None
problem_description: None
product: None
requested_slot: None
returnStatus: None
search_results: None
shown_privacy: None
source: None
step: None
suggestion: None
trailVisits: None
unknown_nlu_part: None
unknown_product: None
vehicleCount: None
yearBorn: None
zipCode: None
2019-01-25 16:56:50 DEBUG rasa_core.policies.memoization - Current tracker state [None, None, None, None, {}, {'intent_inform_zipCode': 1.0, 'prev_action_listen': 1.0, 'entity_number': 1.0}, {'intent_inform_zipCode': 1.0, 'entity_number': 1.0, 'prev_action_default_ask_affirmation': 1.0}, {'intent_inform_zipCode': 1.0, 'prev_action_listen': 1.0, 'entity_number': 1.0}]
2019-01-25 16:56:50 DEBUG rasa_core.policies.memoization - There is no memorised next action
2019-01-25 16:56:50 DEBUG rasa_core.policies.form_policy - There is no active form
2019-01-25 16:56:50 DEBUG rasa_core.policies.ensemble - Predicted next action using policy_2_TwoStageFallbackPolicy
2019-01-25 16:56:50 DEBUG rasa_core.processor - Predicted next action 'action_default_fallback' with prob 1.00.
2019-01-25 16:56:50 DEBUG rasa_core.processor - Action 'action_default_fallback' ended with events '['UserUtteranceReverted()']'
2019-01-25 16:56:50 DEBUG rasa_core.policies.memoization - Current tracker state [None, None, None, None, None, {}, {'intent_inform_zipCode': 1.0, 'prev_action_listen': 1.0, 'entity_number': 1.0}, {'intent_inform_zipCode': 1.0, 'entity_number': 1.0, 'prev_action_default_ask_affirmation': 1.0}]
2019-01-25 16:56:50 DEBUG rasa_core.policies.memoization - There is no memorised next action
2019-01-25 16:56:50 DEBUG rasa_core.policies.form_policy - There is no active form
2019-01-25 16:56:50 DEBUG rasa_core.policies.ensemble - Predicted next action using policy_2_TwoStageFallbackPolicy
2019-01-25 16:56:50 DEBUG rasa_core.processor - Predicted next action 'action_listen' with prob 1.00.
2019-01-25 16:56:50 DEBUG rasa_core.processor - Action 'action_listen' ended with events '[]'
#stories.md
## test
* hello
- utter_helloAskVehicle
- count_episode
- form{"name": "count_episode"}
- slot{"requested_slot": "vehicleCount"}
* form: inform{"number": "9"}
- slot{"vehicleCount": "9"}
- form: count_episode
- slot{"vehicleCount": "3"}
- slot{"requested_slot": "peopleCount"}
* form: inform{"number": "3"}
- slot{"vehicleCount": "3"}
- slot{"peopleCount": "3"}
- form: count_episode
- slot{"vehicleCount": "3"}
- slot{"peopleCount": "3"}
- slot{"requested_slot": "partyVehics"}
* form: inform{"number": "six"}
- slot{"vehicleCount": "3"}
- slot{"peopleCount": "3"}
- slot{"partyVehics":"6"}
- form: count_episode
- slot{"vehicleCount": "3"}
- slot{"peopleCount": "3"}
- slot{"partyVehics":"6"}
- slot{"requested_slot": "trailVisits"}
* form: inform{"number": "2"}
- slot{"vehicleCount": "3"}
- slot{"peopleCount": "3"}
- slot{"partyVehics":"6"}
- slot{"trailVisits": "2"}
- form{"name": null}
- slot{"requested_slot": null}
- utter_goodbye
## firstReportCount
* inform_vehicleCount
- count_episode
- form{"name": "count_episode"}
- slot{"vehicleCount": "9"}
- utter_hello
- slot{"vehicleCount": "9"}
- slot{"requested_slot": "peopleCount"}
* form: inform{"number": "3"}
- slot{"vehicleCount": "9"}
- slot{"peopleCount": "3"}
- form: count_episode
- slot{"vehicleCount": "9"}
- slot{"peopleCount": "3"}
- slot{"requested_slot": "partyVehics"}
* form: inform{"number": "six"}
- slot{"vehicleCount": "9"}
- slot{"peopleCount": "3"}
- slot{"partyVehics":"6"}
- form: count_episode
- slot{"vehicleCount": "9"}
- slot{"peopleCount": "3"}
- slot{"partyVehics":"6"}
- slot{"requested_slot": "trailVisits"}
* form: inform{"number": "2"}
- slot{"vehicleCount": "9"}
- slot{"peopleCount": "3"}
- slot{"partyVehics":"6"}
- slot{"trailVisits": "2"}
- form{"name": null}
- slot{"requested_slot": null}
- utter_goodbye
#policies
policies:
- name: KerasPolicy
epochs: 50
max_history: 8
- name: MemoizationPolicy
max_history: 8
- name: TwoStageFallbackPolicy
nlu_threshold: 0.8
core_threshold: 0.3
- name: FormPolicy
#domain
entities:
- returnStatus
- number
- timeAbs
- timeAgo
- source
- year
- zipCode
intents:
- affirm
- deny
- hello
- goodbye
- inform_countTime
- inform_peopleCount
- inform_vehicleCount
- inform_partyVehics
- inform_returnStatus
- inform_trailVisits
- inform_zipCode
- inform_source
- inform_zip
- inform_year
slots:
countTime:
type: text
returnStatus:
type: categorical
values:
- return
- leave
- both
peopleCount:
auto_fill: false
type: unfeaturized
vehicleCount:
auto_fill: false
type: unfeaturized
partyVehics:
auto_fill: false
type: unfeaturized
trailVisits:
auto_fill: false
type: unfeaturized
source:
type: categorical
values:
- ph
- ph1
- ph2
- ph3
- ph4
- ph5
- ph6
zipCode:
type: float
age:
type: float
yearBorn:
type: float
data_stored:
type: bool
feedback_value:
type: categorical
values:
- positive
- negative
feedback_message:
type: unfeaturized
current_api:
type: categorical
values:
- dialogflow
- luis
product:
type: categorical
values:
- core
- nlu
- stack
unknown_product:
type: unfeaturized
nlu_part:
type: categorical
values:
- entity recognition
- intent classification
- duckling
unknown_nlu_part:
type: unfeaturized
can_use_spacy:
type: bool
entity_extractor:
type: categorical
values:
- ner_crf
- ner_spacy
- ner_duckling_http
language:
type: unfeaturized
onboarding:
type: bool
suggestion:
type: unfeaturized
package_manager:
type: text
problem_description:
type: text
shown_privacy:
type: unfeaturized
name:
type: text
step:
type: unfeaturized
requested_slot:
type: unfeaturized
search_results:
type: unfeaturized
templates:
utter_ask_countTime:
- text: "placeholder"
utter_ask_peopleCount:
- text: "placeholder1"
utter_ask_partyVehics:
- text: "placeholder2"
utter_ask_returnStatus:
- text: "placeholder3"
utter_ask_trailVisits:
- text: "placeholder4"
utter_ask_source:
- text: "placeholder5"
utter_ask_yearBorn:
- text: "placeholder6"
utter_ask_zipCode:
- text: "placeholder7"
utter_hello:
- text: "placeholder8"
utter_helloAskVehicle:
- text: "placeholder9"
utter_goodbye:
- text: "placeholder10"
utter_evaluation:
- text: "On a scale of 1-10, how well did I do in understanding you?"
actions:
- utter_hello
- utter_goodbye
- utter_evaluation
- utter_ask_countTime
- utter_ask_peopleCount
- utter_ask_partyVehics
- utter_ask_returnStatus
- utter_ask_trailVisits
- utter_ask_source
- utter_ask_year
- utter_ask_zipCode
- utter_helloAskVehicle
- action_inform_countTime
- action_inform_returnStatus
- action_inform_partyVehics
- action_inform_vehicleCount
- action_inform_peopleCount
- action_inform_trailVisits
- action_inform_source
- action_inform_year
- action_inform_zipCode
- action_store_sheet
forms:
- count_episode
- personal_form
- feedback_form
example nlu for zipCode and vehicleCount
inform_vehicleCount
- [6](number) cars
- [5](number)
- [11](number)
- [14](number) vehicles
... many more
intent:inform_zipCode
- [59723](zipCode)
- I'm from the [34673](zipCode)
- [11423](zipCode)
- [43134](zipCode)
- Sorry zip is [98155](zipCode)
- [98363](zipCode)
- [98264](zipCode)
- [98920](zipCode) sorry
- [98107](zipCode)
...many more...