# Custom buttons in action.py file

**URL:** <https://forum.rasa.com/t/custom-buttons-in-action-py-file/6970>\
**Category:** Rasa Open Source\
**Created:** [April 13, 2019, 5:10am UTC](https://forum.rasa.com/t/custom-buttons-in-action-py-file/6970 "2019-04-13T05:10:25Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Nishet](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@Nishet](https://forum.rasa.com/u/Nishet)\
**Post date:** [April 18, 2019, 7:32am UTC](https://forum.rasa.com/t/custom-buttons-in-action-py-file/6970/9 "2019-04-18T07:32:41Z")

</div>

yes yes @srikar_1996 it’s similar to mongo db and now i got it how to create button. but now problem in insert data with validation. i mean like if hr want to insert data then first bots want name like rohan, then bot ask give a number then hr enter number, then bot ask give email id , then hr gives a email id. now i want all this data into database.i successfully insert employee name into database .i train all name into nlu.md file and then store using slot value.so its only for name.but now if i want to fatch all detail and insert into database.so how i can do this? everytime i train name ,mail,mobileno in slot and fatch that slot and insert?or any other method for that that store multiple slot? i see form action but i cannot find good example.and also form action may not provide validation.so how can i do this?Thanks.

---

_[View the full topic](https://forum.rasa.com/t/custom-buttons-in-action-py-file/6970)._
