# Issue in RASA Story

**URL:** <https://forum.rasa.com/t/issue-in-rasa-story/9196>\
**Category:** Rasa Open Source\
**Created:** [May 1, 2019, 6:25am UTC](https://forum.rasa.com/t/issue-in-rasa-story/9196 "2019-05-01T06:25:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![avinashnavlani](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@avinashnavlani](https://forum.rasa.com/u/avinashnavlani)\
**Post date:** [May 1, 2019, 6:25am UTC](https://forum.rasa.com/t/issue-in-rasa-story/9196/1 "2019-05-01T06:25:00Z")

</div>

I want to call custom action on the following situations

Situation 1: customer: Show me my booking details. Bot: please share your booking id. Customer: 12345 Bot: your booking details are: call an API in custom actions

Situation 2: customer: Show me my booking details of booking id 12345. Bot: your booking details are: call an API in custom actions

So I need to write a single story or different story for both situations. If two stories than how the bot will identify which one to follow.

I am using following single story:

stories.md

## check order status

- greet
  - utter\_greet

- booking\_details
  - utter\_get\_booking\_id
  - slot{“booking\_id”:“12345”}
  - action\_booking\_details

- booking\_details{“booking\_id”:“12345”}
  - slot{“booking\_id”:“12345”}
  - action\_booking\_details

- goodbye
  - utter\_goodbye

domain.yml

entities: - booking\_id

slots: booking\_id: type: unfeaturized

It is working good in situation 1 but in situation 2 its behavior is the same as situation 1. it means when i am asking “Show me my booking details of booking id 12345.” still, bot is asking “Bot: please share your booking id.” then after supply, the booking\_id, showing the details of the booking.

So how to handle this situation?

Also, when I am tracing the response of bot asking booking\_id that time two responses are getting: [{‘recipient\_id’: ‘default’, ‘text’: ‘please share your booking id.’}, {‘recipient\_i d’: ‘default’, ‘text’: ‘Booking Details are:call API’}]

---

<div class="post-metadata">

**Author:** ![srikar\_1996](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@srikar\_1996](https://forum.rasa.com/u/srikar_1996)\
**Post date:** [May 1, 2019, 9:08am UTC](https://forum.rasa.com/t/issue-in-rasa-story/9196/2 "2019-05-01T09:08:30Z")

</div>

You can use form actions for this. There is a **required\_slots()** method which deals with this scenerio: [forms](https://medium.com/rasa-blog/building-contextual-assistants-with-rasa-forms-7c034c9a8677)

---

<div class="post-metadata">

**Author:** ![avinashnavlani](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@avinashnavlani](https://forum.rasa.com/u/avinashnavlani)\
**Post date:** [May 1, 2019, 9:09am UTC](https://forum.rasa.com/t/issue-in-rasa-story/9196/3 "2019-05-01T09:09:54Z")

</div>

Thanks for reply. let me check the suggested solution.
