# \[SOLVED\] User Action is not identified second time for same indent

**URL:** <https://forum.rasa.com/t/solved-user-action-is-not-identified-second-time-for-same-indent/1813>\
**Category:** Rasa Open Source\
**Created:** [October 12, 2018, 4:19am UTC](https://forum.rasa.com/t/solved-user-action-is-not-identified-second-time-for-same-indent/1813 "2018-10-12T04:19:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thinkingmonks](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@thinkingmonks](https://forum.rasa.com/u/thinkingmonks)\
**Post date:** [October 12, 2018, 4:19am UTC](https://forum.rasa.com/t/solved-user-action-is-not-identified-second-time-for-same-indent/1813/1 "2018-10-12T04:19:08Z")

</div>

Hi

I am trying to write a simple bot using RASA.

I train my RASA NLU and Core with data

In RASA NLU markdown file I gave input as below

```auto
## intent:greet
- Good morning
- hello
- hi
## intent:bye
- goodbye
- goodnight

```

In my domain file I gave like

```auto
intents:
  - greet
  - bye

templates:
  utter_greet:
    - text: "bot : hello"
  utter_bye:
    - text: "bye was nice talking to you"
actions:
  - utter_greet
  - utter_bye

```

My story file

```auto
## greet
* greet
	- utter_greet
* bye
	- utter_bye

```

My situation is

1. When the user input “hi” the intent is properly identified and the bot say “bot : hello”
2. But the when user again input “hi” the intent is identified as greet and the bot action is not identified as utter\_greet

From my debug log

```auto
Creating a new tracker for id 'default'.
Received user message 'hi' with intent '{'name': 'greet', 'confidence': 0.9335246682167053}' and entities '[]'
Logged UserUtterance - tracker now has 2 events
Current slot values: 

Current tracker state [None, {}, {'intent_greet': 1.0, 'prev_action_listen': 1.0}]
There is a memorised next action '3'
Predicted next action using policy_1_MemoizationPolicy
Predicted next action 'utter_greet' with prob 1.00.
Action 'utter_greet' ended with events '[]'
Bot utterance 'BotUttered(text: bot : hello, data: {
  "elements": null,
  "buttons": null,
  "attachment": null
})'
Current tracker state [{}, {'intent_greet': 1.0, 'prev_action_listen': 1.0}, {'intent_greet': 1.0, 'prev_utter_greet': 1.0}]
There is a memorised next action '0'
Predicted next action using policy_1_MemoizationPolicy
Predicted next action 'action_listen' with prob 1.00.
Action 'action_listen' ended with events '[]'
Recreating tracker for id 'default'
Received user message 'hi' with intent '{'name': 'greet', 'confidence': 0.9335246682167053}' and entities '[]'
Logged UserUtterance - tracker now has 6 events
Current slot values: 

Current tracker state [{'intent_greet': 1.0, 'prev_action_listen': 1.0}, {'intent_greet': 1.0, 'prev_utter_greet': 1.0}, {'intent_greet': 1.0, 'prev_action_listen': 1.0}]
There is no memorised next action
Predicted next action using policy_2_KerasPolicy
Predicted next action 'action_listen' with prob 0.87.
Action 'action_listen' ended with events '[]'
Recreating tracker for id 'default'
Received user message 'hi' with intent '{'name': 'greet', 'confidence': 0.9335246682167053}' and entities '[]'
Logged UserUtterance - tracker now has 8 events
Current slot values:  

```

---

<div class="post-metadata">

**Author:** ![NikhilBansal21](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nikhilbansal21/32/418_2.png) [@NikhilBansal21](https://forum.rasa.com/u/NikhilBansal21)\
**Post date:** [October 12, 2018, 6:23am UTC](https://forum.rasa.com/t/solved-user-action-is-not-identified-second-time-for-same-indent/1813/2 "2018-10-12T06:23:52Z")

</div>

you will have to add more instances in your stories to make bot understand different scenarios for your tasks.

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [October 12, 2018, 3:35pm UTC](https://forum.rasa.com/t/solved-user-action-is-not-identified-second-time-for-same-indent/1813/3 "2018-10-12T15:35:31Z")

</div>

separating this into two stories should fix that:

```auto
## greet
* greet
	- utter_greet

## bye
* bye
	- utter_bye

```

---

<div class="post-metadata">

**Author:** ![thinkingmonks](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@thinkingmonks](https://forum.rasa.com/u/thinkingmonks)\
**Post date:** [October 13, 2018, 8:52am UTC](https://forum.rasa.com/t/solved-user-action-is-not-identified-second-time-for-same-indent/1813/4 "2018-10-13T08:52:36Z")

</div>

Thank you … This fixed the issue.

---

<div class="post-metadata">

**Author:** ![minakshimathpal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/minakshimathpal/32/19113_2.png) [@minakshimathpal](https://forum.rasa.com/u/minakshimathpal)\
**Post date:** [January 28, 2022, 3:36pm UTC](https://forum.rasa.com/t/solved-user-action-is-not-identified-second-time-for-same-indent/1813/5 "2022-01-28T15:36:55Z")

</div>

@akelad I am facing the same issue…No I want same story to be repeated…Like this your input: hi # here bot is listening i.e (action\_listen) bot: hello your input: hi # from here next predicted action is every time (action\_listen) your input: your input: If i am going exactly as per the story and complete the story(utter\_goodbye) and then again if i am starting with “hi” , every time next predicted action is action\_listen.
