# Optional item in a story

**URL:** <https://forum.rasa.com/t/optional-item-in-a-story/1474>\
**Category:** Rasa Open Source\
**Created:** [September 28, 2018, 9:24am UTC](https://forum.rasa.com/t/optional-item-in-a-story/1474 "2018-09-28T09:24:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![noisefield](https://avatars.discourse-cdn.com/v4/letter/n/4da419/32.png) [@noisefield](https://forum.rasa.com/u/noisefield)\
**Post date:** [September 28, 2018, 9:24am UTC](https://forum.rasa.com/t/optional-item-in-a-story/1474/1 "2018-09-28T09:24:34Z")

</div>

Hi, I am trying to set up a chatbot, and I want to deal with two kinds of situations in the beginning of a dialog:

1. The person greets the bot
2. The person goes straight to business.

My story file is something like this:

```auto
## Problem with service
* intent_greet
    - utter_greet
* intent_service_problem
    - utter_here_is_how_you_solve_the_problem

```

It goes ok if I first greet the bot. But in case I state my problem directly, it either greets the person, or does nothing until I respectively restate the problem or greet the bot. Do I have to repeat the story without greeting intent, or is there some syntax of stories I do not know about?

---

<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 4, 2018, 11:30am UTC](https://forum.rasa.com/t/optional-item-in-a-story/1474/2 "2018-10-04T11:30:01Z")

</div>

You should repeat it without the greet intent

---

<div class="post-metadata">

**Author:** ![Remy](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/remy/32/2030_2.png) [@Remy](https://forum.rasa.com/u/Remy)\
**Post date:** [February 26, 2019, 3:12pm UTC](https://forum.rasa.com/t/optional-item-in-a-story/1474/3 "2019-02-26T15:12:47Z")

</div>

To expand on Akela’s answer: RASA uses the stories you give it as examples to generate a conversation it can follow.

You’ve only written a story that starts with a greeting. Thus, RASA has learnt that it MUST start with a greeting. There’s no other way into the conversation.

Therefore, you should add another story that goes like this:

```auto
## Problem with service - DIRECT
* intent_service_problem
    - utter_here_is_how_you_solve_the_problem

```

Now Rasa has 2 stories to choose from. It can either greet someone or directly go to the problem at hand.

If you plan on adding more of these kinds of stories, it may be worth your while to write a story that only greets the user:

```auto
## Greeting story
* intent_greet
    - utter_greet

```

This way, the bot can stitch different stories together.
