# Is it possible to build a chatbot only using Mapping Policy?

**URL:** <https://forum.rasa.com/t/is-it-possible-to-build-a-chatbot-only-using-mapping-policy/12797>\
**Category:** Rasa Open Source\
**Created:** [July 11, 2019, 8:58am UTC](https://forum.rasa.com/t/is-it-possible-to-build-a-chatbot-only-using-mapping-policy/12797 "2019-07-11T08:58:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![guillecarc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/guillecarc/32/2140_2.png) [@guillecarc](https://forum.rasa.com/u/guillecarc)\
**Post date:** [July 11, 2019, 8:58am UTC](https://forum.rasa.com/t/is-it-possible-to-build-a-chatbot-only-using-mapping-policy/12797/1 "2019-07-11T08:58:01Z")

</div>

I am creating a FAQ Chatbot, and so the order or story line does not matters. I tried to do it, but always i want to train the chatbot is asks me for stories. The thing is for the mapping policy anything mapped can be in the stories.

Has somebody else tried this approach?

---

<div class="post-metadata">

**Author:** ![MetcalfeTom](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/metcalfetom/32/1422_2.png) [@MetcalfeTom](https://forum.rasa.com/u/MetcalfeTom)\
**Post date:** [July 11, 2019, 3:21pm UTC](https://forum.rasa.com/t/is-it-possible-to-build-a-chatbot-only-using-mapping-policy/12797/2 "2019-07-11T15:21:52Z")

</div>

HI @guillecarc,

To use the `MappingPolicy`, you still need to include the mapping stories in the training data, see the [note in the docs](https://rasa.com/docs/rasa/core/policies/#mapping-policy). So at the moment there is no way around writing stories.

---

<div class="post-metadata">

**Author:** ![ordiep](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ordiep/32/2544_2.png) [@ordiep](https://forum.rasa.com/u/ordiep)\
**Post date:** [July 11, 2019, 3:49pm UTC](https://forum.rasa.com/t/is-it-possible-to-build-a-chatbot-only-using-mapping-policy/12797/3 "2019-07-11T15:49:13Z")

</div>

@guillecarc Try mapping your intent to an action and then having the action return a response and the return the `UserUtteranceReverted()` to make it not part of the dialogue. I think this does not require a story. @MetcalfeTom has a link to the docs.

---

<div class="post-metadata">

**Author:** ![guillecarc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/guillecarc/32/2140_2.png) [@guillecarc](https://forum.rasa.com/u/guillecarc)\
**Post date:** [July 12, 2019, 9:11am UTC](https://forum.rasa.com/t/is-it-possible-to-build-a-chatbot-only-using-mapping-policy/12797/4 "2019-07-12T09:11:40Z")

</div>

I do not completely get it.

In the same docs you shared it says “This means you should not include the intent-action interaction in your stories.” and then it says the note you are referring to.

---

<div class="post-metadata">

**Author:** ![MetcalfeTom](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/metcalfetom/32/1422_2.png) [@MetcalfeTom](https://forum.rasa.com/u/MetcalfeTom)\
**Post date:** [July 12, 2019, 10:31am UTC](https://forum.rasa.com/t/is-it-possible-to-build-a-chatbot-only-using-mapping-policy/12797/5 "2019-07-12T10:31:59Z")

</div>

Hi again,

As @ordiep pointed out, you can omit the story if the action returns `UserUtteranceReverted()`, however we currently don’t support training without _any stories at all_, since we can’t guarantee that the user has made actions that return this event.

---

<div class="post-metadata">

**Author:** ![guillecarc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/guillecarc/32/2140_2.png) [@guillecarc](https://forum.rasa.com/u/guillecarc)\
**Post date:** [July 12, 2019, 12:11pm UTC](https://forum.rasa.com/t/is-it-possible-to-build-a-chatbot-only-using-mapping-policy/12797/6 "2019-07-12T12:11:38Z")

</div>

Thanks!

---

<div class="post-metadata">

**Author:** ![guillecarc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/guillecarc/32/2140_2.png) [@guillecarc](https://forum.rasa.com/u/guillecarc)\
**Post date:** [July 21, 2019, 3:50am UTC](https://forum.rasa.com/t/is-it-possible-to-build-a-chatbot-only-using-mapping-policy/12797/8 "2019-07-21T03:50:48Z")

</div>

Thanks @ordiep and @MetcalfeTom for your support.

I just built a FAQ Chatbot by only using the Mapping Policy and 1 story sample 🙂

[https://github.com/guillecarc/MPMD-Pal-a-FAQ-Chatbot√](https://github.com/guillecarc/MPMD-Pal-a-FAQ-Chatbot%E2%88%9A)
