# Wrong intent, right action following the stories

**URL:** <https://forum.rasa.com/t/wrong-intent-right-action-following-the-stories/2221>\
**Category:** Rasa Open Source\
**Created:** [October 26, 2018, 1:00pm UTC](https://forum.rasa.com/t/wrong-intent-right-action-following-the-stories/2221 "2018-10-26T13:00:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mirfan899](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mirfan899/32/173_2.png) [@mirfan899](https://forum.rasa.com/u/mirfan899)\
**Post date:** [October 26, 2018, 1:00pm UTC](https://forum.rasa.com/t/wrong-intent-right-action-following-the-stories/2221/1 "2018-10-26T13:00:18Z")

</div>

Rasa packages:

```
rasa-core==0.11.12
rasa-core-sdk==0.11.5
rasa-nlu==0.13.7

```

Stories are being followed with wrong intents and right actions. Here is `config.yml`

```
language: "en"

pipeline:
- name: "nlp_spacy"
- name: "tokenizer_whitespace"
- name: "intent_entity_featurizer_regex"
- name: "ner_crf"
- name: "intent_featurizer_count_vectors"
- name: "intent_classifier_tensorflow_embedding"

```

NLU model predicts the right intent with entities. For example `open labs for Katherine Ross`

```
{
  "intent": {
    "name": "navigate.showlabs",
    "confidence": 0.9291783571243286
  },
  "entities": [
    {
      "start": 0,
      "end": 4,
      "value": "open",
      "entity": "command",
      "confidence": 0.9971368901988087,
      "extractor": "ner_crf"
    },
    {
      "start": 5,
      "end": 9,
      "value": "labs",
      "entity": "navModule",
      "confidence": 0.610389742209412,
      "extractor": "ner_crf"
    },
    {
      "start": 14,
      "end": 23,
      "value": "Katherine",
      "entity": "given_name",
      "confidence": 0.9898449529687533,
      "extractor": "ner_crf"
    },
    {
      "start": 24,
      "end": 28,
      "value": "Ross",
      "entity": "given_lastname",
      "confidence": 0.9338490176432231,
      "extractor": "ner_crf"
    }
  ],
  "intent_ranking": [
    {
      "name": "navigate.showlabs",
      "confidence": 0.9291783571243286
    },
    {
      "name": "navigate.sociopsycho",
      "confidence": 0.15673485398292542
    },
    {
      "name": "navigate.careteamrequests",
      "confidence": 0.1420157104730606
    },
    {
      "name": "navigate.call",
      "confidence": 0.1317642629146576
    },
    {
      "name": "navigate.trackers",
      "confidence": 0.12510481476783752
    },
    {
      "name": "navigate.calendar",
      "confidence": 0.10731776803731918
    },
    {
      "name": "navigate.notification",
      "confidence": 0.07199602574110031
    },
    {
      "name": "navigate.carestream",
      "confidence": 0.05549422279000282
    },
    {
      "name": "navigate.refills",
      "confidence": 0.026343967765569687
    },
    {
      "name": "navigate.chat",
      "confidence": 0.022376783192157745
    }
  ],
  "text": "open labs for Katherine Ross",
  "project": "default",
  "model": "mecosProviderModel"
}

```

here are the stories for `navigate.showlabs` intent.

```
## Generated Story 43
* navigate.showlabs{"command": "open", "navModule":["labs"], "given_name":"Katherine", "given_lastname":"Ross", "duration":"1 month"}
	- utter_navigate_showlabs
	- action_slot_reset
## Generated Story 44
* navigate.showlabs{"command": "show", "navModule":["labs"], "given_name":"Katherine", "given_lastname":"Ross", "duration":"2 months"}
	- utter_navigate_showlabs
	- action_slot_reset
## Generated Story 45
* navigate.showlabs{"command": "open", "navModule":["labs"], "given_name":"Ravi", "given_lastname":"Teja", "duration":"3 months"}
	- utter_navigate_showlabs
	- action_slot_reset
## Generated Story 46
* navigate.showlabs{"command": "show", "navModule":["labs"], "given_name":"John", "given_lastname":"Snow", "duration":"4 months"}
	- utter_navigate_showlabs
	- action_slot_reset
## Generated Story 47
* navigate.showlabs{"command": "show", "navModule":["labs"], "given_name":"John", "given_lastname":"Smith", "time_period":"12 hours"}
	- utter_navigate_showlabs
	- action_slot_reset
## Generated Story 48
* navigate.showlabs{"command": "show", "navModule":["labs"], "given_name":"Usman", "given_lastname":"Sharif", "time_period":"10 hours"}
	- utter_navigate_showlabs
	- action_slot_reset
## Generated Story 49
* navigate.showlabs{"command": "show", "navModule":["labs"], "given_name":"Usman", "given_lastname":"Sharif", "time_period":"10 hours"}
	- utter_navigate_showlabs
	- action_slot_reset
## Generated Story 50
* navigate.showlabs{"command": "show", "navModule":["labs"], "given_name":"Katherine", "given_lastname":"Ross", "time_period":"10 hours"}
	- utter_navigate_showlabs
	- action_slot_reset
## Generated Story 51
* navigate.showlabs{"command": "show", "navModule":["labs"], "given_name":"Ravi", "given_lastname":"Teja", "time_period":"10 hours"}
	- utter_navigate_showlabs
	- action_slot_reset

## Generated Story 52
* navigate.showlabs{"command": "show", "navModule":["labs"]}
- slot{"command": "show"}
- utter_navigate_showlabs_follow_up_patient_name
* navigate.showlabs{"given_name": "John"}
- slot{"given_name": "John"}
- utter_navigate_showlabs_follow_up_patient_lastname
* navigate.showlabs{"given_lastname": "Snow"}
- slot{"given_lastname": "Snow"}
	- utter_navigate_showlabs
	- action_slot_reset
## Generated Story 53
* navigate.showlabs{"command": "open", "navModule":["labs"]}
- slot{"command": "open"}
- utter_navigate_showlabs_follow_up_patient_name
* navigate.showlabs{"given_name": "Ravi"}
- slot{"given_name": "Ravi"}
- utter_navigate_showlabs_follow_up_patient_lastname
* navigate.showlabs{"given_lastname": "Teja"}
- slot{"given_lastname": "Teja"}
	- utter_navigate_showlabs
	- action_slot_reset
## Generated Story 54
* navigate.showlabs{"command": "take me to", "navModule":["labs"]}
- slot{"command": "take me to"}
- utter_navigate_showlabs_follow_up_patient_name
* navigate.showlabs{"given_name": "Ravi"}
- slot{"given_name": "Ravi"}
- utter_navigate_showlabs_follow_up_patient_lastname
* navigate.showlabs{"given_lastname": "Teja"}
- slot{"given_lastname": "Teja"}
	- utter_navigate_showlabs
	- action_slot_reset
## Generated Story 55
* navigate.showlabs{"command": "navigate to", "navModule":["labs"]}
- slot{"command": "navigate to"}
- utter_navigate_showlabs_follow_up_patient_name
* navigate.showlabs{"given_name": "Katherine"}
- slot{"given_name": "Katherine"}
- utter_navigate_showlabs_follow_up_patient_lastname
* navigate.showlabs{"given_lastname": "Ross"}
- slot{"given_lastname": "Ross"}
	- utter_navigate_showlabs
	- action_slot_reset
## Generated Story 56
* navigate.showlabs{"command": "navigate to", "navModule":["labs"]}
- slot{"command": "navigate to"}
- utter_navigate_showlabs_follow_up_patient_name
* navigate.showlabs{"given_name": "Ravi"}
- slot{"given_name": "Ravi"}
- utter_navigate_showlabs_follow_up_patient_lastname
* navigate.showlabs{"given_lastname": "Teja"}
- slot{"given_lastname": "Teja"}
	- utter_navigate_showlabs
	- action_slot_reset
## Generated Story 57
* navigate.showlabs{"command": "open", "navModule":["labs"]}
- slot{"command": "open"}
- utter_navigate_showlabs_follow_up_patient_name
* navigate.showlabs{"given_name": "Katherine"}
- slot{"given_name": "Katherine"}
- utter_navigate_showlabs_follow_up_patient_lastname
* navigate.showlabs{"given_lastname": "Ross"}
- slot{"given_lastname": "Ross"}
	- utter_navigate_showlabs
	- action_slot_reset
## Generated Story 58
* navigate.showlabs{"command": "show", "navModule":["labs"]}
- slot{"command": "show"}
- utter_navigate_showlabs_follow_up_patient_name
* navigate.showlabs{"given_name": "John"}
- slot{"given_name": "John"}
- utter_navigate_showlabs_follow_up_patient_lastname
* navigate.showlabs{"given_lastname": "Smith"}
- slot{"given_lastname": "Smith"}
	- utter_navigate_showlabs
	- action_slot_reset

```

But `rasa_core` does not work properly for stories from `52-58`. Here is output of such story.

```
Bot loaded. Type a message and press enter (use '/stop' to exit): 
show labs
2018-10-26 17:35:06 DEBUG rasa_core.tracker_store - Creating a new tracker for id 'default'.
2018-10-26 17:35:07 DEBUG rasa_core.processor - Received user message 'show labs' with intent '{'name': 'navigate.showlabs', 'confidence': 0.882845401763916}' and entities '[{'start': 0, 'end': 4, 'value': 'show', 'entity': 'command', 'confidence': 0.9977618310976094, 'extractor': 'ner_crf'}, {'start': 5, 'end': 9, 'value': 'labs', 'entity': 'navModule', 'confidence': 0.7870926506661688, 'extractor': 'ner_crf'}]'
2018-10-26 17:35:07 DEBUG rasa_core.processor - Logged UserUtterance - tracker now has 4 events
2018-10-26 17:35:07 DEBUG rasa_core.processor - Current slot values: 
        command: show
        diastolic: None
        doctor_lastname: None
        doctor_name: None
        duration: None
        given_lastname: None
        given_name: None
        head_length: None
        head_unit: cm
        height_length: None
        height_unit: in
        navModule: ['labs']
        patient_lastname: None
        patient_name: None
        pulse_rate: None
        respiration_rate: None
        saturation_level: None
        systolic: None
        temperature_method: None
        temperature_unit: Celsius
        temperature_value: None
        time_period: None
        user_type: None
        vitModule: None
        waist_length: None
        waist_unit: in
        weight_unit: lbs
        weight_value: None
2018-10-26 17:35:07 DEBUG rasa_core.policies.memoization - Current tracker state [None, None, None, {'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'entity_navModule': 1.0, 'intent_navigate.showlabs': 1.0, 'slot_height_unit_0': 1.0, 'entity_command': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'prev_action_listen': 1.0}]
2018-10-26 17:35:07 DEBUG rasa_core.policies.memoization - There is a memorised next action '76'
2018-10-26 17:35:07 DEBUG rasa_core.policies.ensemble - Predicted next action using policy_1_MemoizationPolicy
2018-10-26 17:35:07 DEBUG rasa_core.processor - Predicted next action 'utter_navigate_showlabs_follow_up_patient_name' with prob 1.00.
2018-10-26 17:35:07 DEBUG rasa_core.processor - Action 'utter_navigate_showlabs_follow_up_patient_name' ended with events '[]'
2018-10-26 17:35:07 DEBUG rasa_core.processor - Bot utterance 'BotUttered(text: Patient name?, data: {
  "elements": null,
  "buttons": null,
  "attachment": null
})'
2018-10-26 17:35:07 DEBUG rasa_core.policies.memoization - Current tracker state [None, None, {'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'entity_navModule': 1.0, 'intent_navigate.showlabs': 1.0, 'slot_height_unit_0': 1.0, 'entity_command': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'prev_action_listen': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'prev_utter_navigate_showlabs_follow_up_patient_name': 1.0, 'entity_navModule': 1.0, 'intent_navigate.showlabs': 1.0, 'slot_height_unit_0': 1.0, 'entity_command': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0}]
2018-10-26 17:35:07 DEBUG rasa_core.policies.memoization - There is a memorised next action '0'
Patient name?
2018-10-26 17:35:07 DEBUG rasa_core.policies.ensemble - Predicted next action using policy_1_MemoizationPolicy
2018-10-26 17:35:07 DEBUG rasa_core.processor - Predicted next action 'action_listen' with prob 1.00.
2018-10-26 17:35:07 DEBUG rasa_core.processor - Action 'action_listen' ended with events '[]'
127.0.0.1 - - [2018-10-26 17:35:07] "POST /webhooks/rest/webhook?stream=true&token= HTTP/1.1" 200 181 0.766370
Katherine
2018-10-26 17:35:11 DEBUG rasa_core.tracker_store - Recreating tracker for id 'default'
2018-10-26 17:35:11 DEBUG rasa_core.processor - Received user message 'Katherine' with intent '{'name': 'add.vitals', 'confidence': 0.5726362466812134}' and entities '[{'start': 0, 'end': 9, 'value': 'Katherine', 'entity': 'given_name', 'confidence': 0.4298202683195647, 'extractor': 'ner_crf'}]'
2018-10-26 17:35:11 DEBUG rasa_core.processor - Logged UserUtterance - tracker now has 9 events
2018-10-26 17:35:11 DEBUG rasa_core.processor - Current slot values: 
        command: show
        diastolic: None
        doctor_lastname: None
        doctor_name: None
        duration: None
        given_lastname: None
        given_name: Katherine
        head_length: None
        head_unit: cm
        height_length: None
        height_unit: in
        navModule: ['labs']
        patient_lastname: None
        patient_name: None
        pulse_rate: None
        respiration_rate: None
        saturation_level: None
        systolic: None
        temperature_method: None
        temperature_unit: Celsius
        temperature_value: None
        time_period: None
        user_type: None
        vitModule: None
        waist_length: None
        waist_unit: in
        weight_unit: lbs
        weight_value: None
2018-10-26 17:35:11 DEBUG rasa_core.policies.memoization - Current tracker state [None, {'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'entity_navModule': 1.0, 'intent_navigate.showlabs': 1.0, 'slot_height_unit_0': 1.0, 'entity_command': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'prev_action_listen': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'prev_utter_navigate_showlabs_follow_up_patient_name': 1.0, 'entity_navModule': 1.0, 'intent_navigate.showlabs': 1.0, 'slot_height_unit_0': 1.0, 'entity_command': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'entity_given_name': 1.0, 'intent_add.vitals': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'slot_given_name_0': 1.0, 'prev_action_listen': 1.0}]
2018-10-26 17:35:11 DEBUG rasa_core.policies.memoization - There is no memorised next action
2018-10-26 17:35:11 DEBUG rasa_core.policies.ensemble - Predicted next action using policy_2_KerasPolicy
2018-10-26 17:35:11 DEBUG rasa_core.processor - Predicted next action 'utter_navigate_showlabs_follow_up_patient_lastname' with prob 0.69.
2018-10-26 17:35:11 DEBUG rasa_core.processor - Action 'utter_navigate_showlabs_follow_up_patient_lastname' ended with events '[]'
2018-10-26 17:35:11 DEBUG rasa_core.processor - Bot utterance 'BotUttered(text: Patient last name?, data: {
  "elements": null,
  "buttons": null,
  "attachment": null
})'
2018-10-26 17:35:11 DEBUG rasa_core.policies.memoization - Current tracker state [{'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'entity_navModule': 1.0, 'intent_navigate.showlabs': 1.0, 'slot_height_unit_0': 1.0, 'entity_command': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'prev_action_listen': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'prev_utter_navigate_showlabs_follow_up_patient_name': 1.0, 'entity_navModule': 1.0, 'intent_navigate.showlabs': 1.0, 'slot_height_unit_0': 1.0, 'entity_command': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'entity_given_name': 1.0, 'intent_add.vitals': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'slot_given_name_0': 1.0, 'prev_action_listen': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'prev_utter_navigate_showlabs_follow_up_patient_lastname': 1.0, 'entity_given_name': 1.0, 'intent_add.vitals': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'slot_given_name_0': 1.0}]
Patient last name?
2018-10-26 17:35:11 DEBUG rasa_core.policies.memoization - There is no memorised next action
2018-10-26 17:35:11 DEBUG rasa_core.policies.ensemble - Predicted next action using policy_2_KerasPolicy
2018-10-26 17:35:11 DEBUG rasa_core.processor - Predicted next action 'action_listen' with prob 1.00.
2018-10-26 17:35:11 DEBUG rasa_core.processor - Action 'action_listen' ended with events '[]'
127.0.0.1 - - [2018-10-26 17:35:11] "POST /webhooks/rest/webhook?stream=true&token= HTTP/1.1" 200 186 0.090917
Ross
2018-10-26 17:35:15 DEBUG rasa_core.tracker_store - Recreating tracker for id 'default'
2018-10-26 17:35:15 DEBUG rasa_core.processor - Received user message 'Ross' with intent '{'name': 'add.vitals', 'confidence': 0.44948258996009827}' and entities '[]'
2018-10-26 17:35:15 DEBUG rasa_core.processor - Logged UserUtterance - tracker now has 13 events
2018-10-26 17:35:15 DEBUG rasa_core.processor - Current slot values: 
        command: show
        diastolic: None
        doctor_lastname: None
        doctor_name: None
        duration: None
        given_lastname: None
        given_name: Katherine
        head_length: None
        head_unit: cm
        height_length: None
        height_unit: in
        navModule: ['labs']
        patient_lastname: None
        patient_name: None
        pulse_rate: None
        respiration_rate: None
        saturation_level: None
        systolic: None
        temperature_method: None
        temperature_unit: Celsius
        temperature_value: None
        time_period: None
        user_type: None
        vitModule: None
        waist_length: None
        waist_unit: in
        weight_unit: lbs
        weight_value: None
2018-10-26 17:35:15 DEBUG rasa_core.policies.memoization - Current tracker state [{'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'entity_navModule': 1.0, 'intent_navigate.showlabs': 1.0, 'slot_height_unit_0': 1.0, 'entity_command': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'prev_action_listen': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'prev_utter_navigate_showlabs_follow_up_patient_name': 1.0, 'entity_navModule': 1.0, 'intent_navigate.showlabs': 1.0, 'slot_height_unit_0': 1.0, 'entity_command': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'entity_given_name': 1.0, 'intent_add.vitals': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'slot_given_name_0': 1.0, 'prev_action_listen': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'prev_utter_navigate_showlabs_follow_up_patient_lastname': 1.0, 'entity_given_name': 1.0, 'intent_add.vitals': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'slot_given_name_0': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'intent_add.vitals': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'slot_given_name_0': 1.0, 'prev_action_listen': 1.0}]
2018-10-26 17:35:15 DEBUG rasa_core.policies.memoization - There is no memorised next action
2018-10-26 17:35:15 DEBUG rasa_core.policies.ensemble - Predicted next action using policy_2_KerasPolicy
2018-10-26 17:35:15 DEBUG rasa_core.processor - Predicted next action 'utter_navigate_showlabs' with prob 0.70.
2018-10-26 17:35:15 DEBUG rasa_core.processor - Action 'utter_navigate_showlabs' ended with events '[]'
2018-10-26 17:35:15 DEBUG rasa_core.processor - Bot utterance 'BotUttered(text: Opening labs of Katherine., data: {
  "elements": null,
  "buttons": null,
  "attachment": null
})'
2018-10-26 17:35:15 DEBUG rasa_core.policies.memoization - Current tracker state [{'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'prev_utter_navigate_showlabs_follow_up_patient_name': 1.0, 'entity_navModule': 1.0, 'intent_navigate.showlabs': 1.0, 'slot_height_unit_0': 1.0, 'entity_command': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'entity_given_name': 1.0, 'intent_add.vitals': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'slot_given_name_0': 1.0, 'prev_action_listen': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'prev_utter_navigate_showlabs_follow_up_patient_lastname': 1.0, 'entity_given_name': 1.0, 'intent_add.vitals': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'slot_given_name_0': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'intent_add.vitals': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'slot_given_name_0': 1.0, 'prev_action_listen': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'prev_utter_navigate_showlabs': 1.0, 'intent_add.vitals': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'slot_given_name_0': 1.0}]
Opening labs of Katherine.
2018-10-26 17:35:15 DEBUG rasa_core.policies.memoization - There is no memorised next action
2018-10-26 17:35:15 DEBUG rasa_core.policies.ensemble - Predicted next action using policy_2_KerasPolicy
2018-10-26 17:35:15 DEBUG rasa_core.processor - Predicted next action 'action_slot_reset' with prob 1.00.
2018-10-26 17:35:15 DEBUG rasa_core.actions.action - Calling action endpoint to run action 'action_slot_reset'.
2018-10-26 17:35:15 DEBUG rasa_core.processor - Action 'action_slot_reset' ended with events '['AllSlotsReset()']'
2018-10-26 17:35:15 DEBUG rasa_core.policies.memoization - Current tracker state [{'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'entity_given_name': 1.0, 'intent_add.vitals': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'slot_given_name_0': 1.0, 'prev_action_listen': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'prev_utter_navigate_showlabs_follow_up_patient_lastname': 1.0, 'entity_given_name': 1.0, 'intent_add.vitals': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'slot_given_name_0': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'intent_add.vitals': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'slot_given_name_0': 1.0, 'prev_action_listen': 1.0}, {'slot_command_0': 1.0, 'slot_navModule_0': 1.0, 'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'prev_utter_navigate_showlabs': 1.0, 'intent_add.vitals': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0, 'slot_given_name_0': 1.0}, {'slot_waist_unit_0': 1.0, 'slot_weight_unit_0': 1.0, 'prev_action_slot_reset': 1.0, 'intent_add.vitals': 1.0, 'slot_height_unit_0': 1.0, 'slot_head_unit_0': 1.0, 'slot_temperature_unit_0': 1.0}]
2018-10-26 17:35:15 DEBUG rasa_core.policies.memoization - There is no memorised next action
2018-10-26 17:35:15 DEBUG rasa_core.policies.ensemble - Predicted next action using policy_2_KerasPolicy
2018-10-26 17:35:15 DEBUG rasa_core.processor - Predicted next action 'action_listen' with prob 1.00.
2018-10-26 17:35:15 DEBUG rasa_core.processor - Action 'action_listen' ended with events '[]'
127.0.0.1 - - [2018-10-26 17:35:15] "POST /webhooks/rest/webhook?stream=true&token= HTTP/1.1" 200 194 0.128597
```

---

<div class="post-metadata">

**Author:** ![mirfan899](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mirfan899/32/173_2.png) [@mirfan899](https://forum.rasa.com/u/mirfan899)\
**Post date:** [October 31, 2018, 12:56pm UTC](https://forum.rasa.com/t/wrong-intent-right-action-following-the-stories/2221/2 "2018-10-31T12:56:19Z")

</div>

After `action_listen` for getting the user message, intent is always wrong. Intent `add.vitals` is being predicted for names.

---

<div class="post-metadata">

**Author:** ![ashukrishna100](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ashukrishna100/32/516_2.png) [@ashukrishna100](https://forum.rasa.com/u/ashukrishna100)\
**Post date:** [December 12, 2018, 6:59am UTC](https://forum.rasa.com/t/wrong-intent-right-action-following-the-stories/2221/3 "2018-12-12T06:59:24Z")

</div>

> [@\[Solved\]Predicted Action not following the story](http://forum.rasa.com/t/solved-predicted-action-not-following-the-story/3364):
>
> I have two stories which shares some of the intents. The action is not being executed as per both stories. The story is getting stuck at following point story 1(with intent 1) Inform -slot{‘id’=100} -action\_validate story 2 (with intent2) \*Inform -slot{‘id’=100} -action\_register It is executing action\_validate in place of action\_execute. I have set max\_history in memoization policy to 10, augmentation factor to 0. But the prediction for next action is not coming correct. I checked in deb…
