# Story files

**URL:** <https://forum.rasa.com/t/story-files/4080>\
**Category:** Rasa Open Source\
**Created:** [January 7, 2019, 4:54am UTC](https://forum.rasa.com/t/story-files/4080 "2019-01-07T04:54:26Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akshit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akshit/32/1431_2.png) [@Akshit](https://forum.rasa.com/u/Akshit)\
**Post date:** [January 7, 2019, 4:54am UTC](https://forum.rasa.com/t/story-files/4080/1 "2019-01-07T04:54:26Z")

</div>

Hi guys! So this is a general question on rasa dialogue training.

1. How story blocks get trained?
2. Should I create shorter stories or longer stories.
3. How should I train story to be more accurate
4. Is there a way to make permutations for story files without adding all possible conversation scenarios
5. Please give me a brief idea about how story block works! Like what’s the flow?

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [January 7, 2019, 9:08am UTC](https://forum.rasa.com/t/story-files/4080/2 "2019-01-07T09:08:24Z")

</div>

Hey @Akshit you can read this blog by @souvikg10, it might answer some of your questions :

> **[Contextual Conversational Engine— The Rasa Core Approach — Part 1](https://medium.com/strai/contextual-conversational-engine-the-rasa-core-approach-part-1-1acf95b3d237)**
>
> I have been really active in the Rasa community for the past 10 months or so and been experimenting quite a bit with Rasa Core . While…

> **[Contextual Conversational Engine — The Rasa Core Approach — Part 2](https://medium.com/@souvikghosh_archidev/contextual-conversational-engine-the-rasa-core-approach-part-2-c1d2f4bf631e)**
>
> Let’s do a quick recap, the previous part, we have learned about the basic components of Rasa Core. Now let’s apply it to the below problem…

🙂

---

<div class="post-metadata">

**Author:** ![Akshit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akshit/32/1431_2.png) [@Akshit](https://forum.rasa.com/u/Akshit)\
**Post date:** [January 7, 2019, 9:09am UTC](https://forum.rasa.com/t/story-files/4080/3 "2019-01-07T09:09:01Z")

</div>

Hey! Thanks Hey do you have a guide for formpolicy. I tried to run formbot but it didn’t run correctly. Is there an example that you can refer or maybe a bot that you have made? @JiteshGaikwad

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [January 7, 2019, 9:13am UTC](https://forum.rasa.com/t/story-files/4080/4 "2019-01-07T09:13:24Z")

</div>

hey @Akshit, i haven’t worked on Formbot yet but i can help you with an example, you can get it here :

> **[RasaHQ/forms\_bot](https://github.com/RasaHQ/forms_bot)**
>
> bot which uses forms to do hotel and restaurant booking task

🙂

---

<div class="post-metadata">

**Author:** ![Akshit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akshit/32/1431_2.png) [@Akshit](https://forum.rasa.com/u/Akshit)\
**Post date:** [January 7, 2019, 9:14am UTC](https://forum.rasa.com/t/story-files/4080/5 "2019-01-07T09:14:28Z")

</div>

I’ll take a look thanks!

---

<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:** [January 7, 2019, 9:39am UTC](https://forum.rasa.com/t/story-files/4080/6 "2019-01-07T09:39:36Z")

</div>

formbot works fine what issue you are facing pls explain maybe we can help with that!

---

<div class="post-metadata">

**Author:** ![Akshit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akshit/32/1431_2.png) [@Akshit](https://forum.rasa.com/u/Akshit)\
**Post date:** [January 7, 2019, 9:44am UTC](https://forum.rasa.com/t/story-files/4080/7 "2019-01-07T09:44:04Z")

</div>

So i tried to say “I want to book a restaurant” and it asked for cuisine and then people. but at people something went wrong and after that everything i added went to sorry i dont understand.

I trained a new model just to be sure and still same issue occured.

Is there some other example than restaurant bot? Let’s book something other than food 😛

---

<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:** [January 7, 2019, 10:02am UTC](https://forum.rasa.com/t/story-files/4080/8 "2019-01-07T10:02:14Z")

</div>

yes in case of responses i can say it is very unstable but that is a simple example for understanding basic working for form-action for full fledged example follow sara bot i.e rasa demo

[https://github.com/RasaHQ/rasa-demo/tree/master/demo](https://github.com/RasaHQ/rasa-demo/tree/master/demo)

Here you can find form-actions and many different things

---

<div class="post-metadata">

**Author:** ![Akshit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akshit/32/1431_2.png) [@Akshit](https://forum.rasa.com/u/Akshit)\
**Post date:** [January 7, 2019, 10:04am UTC](https://forum.rasa.com/t/story-files/4080/9 "2019-01-07T10:04:50Z")

</div>

Oh okay ! Thanks! Hey can you help me with one thing. I have a question like

Q. How is Akshit doing?

and in custom action I’m supposed to call multiple API’s and get information on the name. but I need to pass an id as a parameter in my api call. How can I save a name and a corresponding id in my lookup table. Also I have added names in a lookup table is there any better method?

---

<div class="post-metadata">

**Author:** ![Akshit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akshit/32/1431_2.png) [@Akshit](https://forum.rasa.com/u/Akshit)\
**Post date:** [January 7, 2019, 10:05am UTC](https://forum.rasa.com/t/story-files/4080/10 "2019-01-07T10:05:49Z")

</div>

I’m also calling an Api and getting the names of existing users. So how should i save these values in my lookup table

---

<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:** [January 7, 2019, 10:15am UTC](https://forum.rasa.com/t/story-files/4080/11 "2019-01-07T10:15:01Z")

</div>

umm, sorry i have no exp with lookup tables as of now!. But as far i have understood, You need to query your api when user types his name. In that case you will be needing names to be extracted and in case of id you will either have to set it using your code instead of asking it from the user. So that you can feed to your api.

---

<div class="post-metadata">

**Author:** ![Akshit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akshit/32/1431_2.png) [@Akshit](https://forum.rasa.com/u/Akshit)\
**Post date:** [January 7, 2019, 10:17am UTC](https://forum.rasa.com/t/story-files/4080/12 "2019-01-07T10:17:16Z")

</div>

Okay Thanks for your help 🙂 😄
