# Run Custom Action After collecting User data

**URL:** <https://forum.rasa.com/t/run-custom-action-after-collecting-user-data/21883>\
**Category:** Rasa Open Source\
**Created:** [November 29, 2019, 1:51pm UTC](https://forum.rasa.com/t/run-custom-action-after-collecting-user-data/21883 "2019-11-29T13:51:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![himanshus97](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/himanshus97/32/5425_2.png) [@himanshus97](https://forum.rasa.com/u/himanshus97)\
**Post date:** [November 29, 2019, 1:51pm UTC](https://forum.rasa.com/t/run-custom-action-after-collecting-user-data/21883/1 "2019-11-29T13:51:09Z")

</div>

I Want to Create Something or Custom action which will collect user data or input no matter what intent it has and after collecting that data It will run specified action.

---

<div class="post-metadata">

**Author:** ![Gehova](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@Gehova](https://forum.rasa.com/u/Gehova)\
**Post date:** [November 29, 2019, 2:16pm UTC](https://forum.rasa.com/t/run-custom-action-after-collecting-user-data/21883/2 "2019-11-29T14:16:10Z")

</div>

Use a form:

> **[Build Contextual Assistants with Rasa Forms](https://rasa.com/blog/building-contextual-assistants-with-rasa-formaction/)**
>
> In this tutorial, you'll learn how to use the new FormPolicy in Rasa to build an AI assistant capable of making restaurant suggestions.

In the mapping function use:

```auto
    def slot_mappings(self):
    		return { "slot1": self.from_text(intent=None),
    		"slot2": self.from_text(intent=None)
    		}

```

---

<div class="post-metadata">

**Author:** ![himanshus97](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/himanshus97/32/5425_2.png) [@himanshus97](https://forum.rasa.com/u/himanshus97)\
**Post date:** [November 30, 2019, 4:04pm UTC](https://forum.rasa.com/t/run-custom-action-after-collecting-user-data/21883/3 "2019-11-30T16:04:25Z")

</div>

Thanks For your Reply @Gehova . I’ll try to implement it.
