# Customized answers in the actions file don’t work when i deploy rasa to facebook by ngrok

**URL:** <https://forum.rasa.com/t/customized-answers-in-the-actions-file-don-t-work-when-i-deploy-rasa-to-facebook-by-ngrok/48615>\
**Category:** Rasa Open Source\
**Tags:** testing\
**Created:** [October 20, 2021, 12:06pm UTC](https://forum.rasa.com/t/customized-answers-in-the-actions-file-don-t-work-when-i-deploy-rasa-to-facebook-by-ngrok/48615 "2021-10-20T12:06:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![longnguyenQB](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/longnguyenqb/32/16113_2.png) [@longnguyenQB](https://forum.rasa.com/u/longnguyenQB)\
**Post date:** [October 20, 2021, 12:06pm UTC](https://forum.rasa.com/t/customized-answers-in-the-actions-file-don-t-work-when-i-deploy-rasa-to-facebook-by-ngrok/48615/1 "2021-10-20T12:06:43Z")

</div>

Hello! i have a problem when i deploy rasa to facebook it doesn’t pick up the actions.py file. My bot only answers frequently asked questions, customized answers in the actions file don’t work.

i use Vietnamese , hope you understand ^^ : [longnguyenQB/chatbot\_tuyensinh (github.com)](https://github.com/longnguyenQB/chatbot_tuyensinh)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/4/9/497183ac9babd9f51517f959979bebde1f531c86.png)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [October 20, 2021, 1:13pm UTC](https://forum.rasa.com/t/customized-answers-in-the-actions-file-don-t-work-when-i-deploy-rasa-to-facebook-by-ngrok/48615/2 "2021-10-20T13:13:53Z")

</div>

@longnguyenQB Hello, can you please share the action server logs whilst using the command `rasa run actions --debug`

@longnguyenQB I hope you mentioned the `action_search_exits` under actions in domain.yml ?

@longnguyenQB can you even share the action.py file for us.

**Question:** Is your chatbot is able to render on Facebook?

---

<div class="post-metadata">

**Author:** ![longnguyenQB](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/longnguyenqb/32/16113_2.png) [@longnguyenQB](https://forum.rasa.com/u/longnguyenQB)\
**Post date:** [October 20, 2021, 4:33pm UTC](https://forum.rasa.com/t/customized-answers-in-the-actions-file-don-t-work-when-i-deploy-rasa-to-facebook-by-ngrok/48615/3 "2021-10-20T16:33:45Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/9/f/9f39e85deb8970d5a9dbf4315ca1fb36960eaefa.png) **Question:** Is your chatbot is able to render on Facebook? → yes, but my chatbot only answers questions that are not in file actions.py

---

<div class="post-metadata">

**Author:** ![longnguyenQB](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/longnguyenqb/32/16113_2.png) [@longnguyenQB](https://forum.rasa.com/u/longnguyenQB)\
**Post date:** [October 20, 2021, 5:01pm UTC](https://forum.rasa.com/t/customized-answers-in-the-actions-file-don-t-work-when-i-deploy-rasa-to-facebook-by-ngrok/48615/4 "2021-10-20T17:01:33Z")

</div>

I already shared the github link above, thank you, last time you also helped me a lot!

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [October 20, 2021, 5:02pm UTC](https://forum.rasa.com/t/customized-answers-in-the-actions-file-don-t-work-when-i-deploy-rasa-to-facebook-by-ngrok/48615/5 "2021-10-20T17:02:00Z")

</div>

@longnguyenQB opps not seen ☹ Give me some time too see me exhausted!

---

<div class="post-metadata">

**Author:** ![longnguyenQB](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/longnguyenqb/32/16113_2.png) [@longnguyenQB](https://forum.rasa.com/u/longnguyenQB)\
**Post date:** [October 21, 2021, 1:08am UTC](https://forum.rasa.com/t/customized-answers-in-the-actions-file-don-t-work-when-i-deploy-rasa-to-facebook-by-ngrok/48615/6 "2021-10-21T01:08:06Z")

</div>

hope you help me soon :((

---

<div class="post-metadata">

**Author:** ![longnguyenQB](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/longnguyenqb/32/16113_2.png) [@longnguyenQB](https://forum.rasa.com/u/longnguyenQB)\
**Post date:** [October 21, 2021, 7:36am UTC](https://forum.rasa.com/t/customized-answers-in-the-actions-file-don-t-work-when-i-deploy-rasa-to-facebook-by-ngrok/48615/7 "2021-10-21T07:36:48Z")

</div>

im waiting for you \<3

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [October 21, 2021, 6:48pm UTC](https://forum.rasa.com/t/customized-answers-in-the-actions-file-don-t-work-when-i-deploy-rasa-to-facebook-by-ngrok/48615/8 "2021-10-21T18:48:04Z")

</div>

@longnguyenQB you need to share me the action logs for your error, open a second terminal run `rasa run actions` and in first terminal run rasa, and performed the same scenario and share me the both terminal error screenshot. I’m setting a reminder for you 🙂

@longnguyenQB you can even used this syntax for fetching the xls file, and I will suggest save the file in .csv format rather .xlxs on

Just a demo code for your ref:

```auto
class ActionSearchExits(Action):

 def __init__ (self):
        self.faq_data = pd.read_csv('./data/Tuyensinh.csv')

 def name(self) -> Text:
        return "action_search_exits"

```

**PS:** can be a issue of data frame, I am not sure!

@longnguyenQB Even check you FB secret key or I will suggest just rasa and check with rasa shell the complete code.

---

<div class="post-metadata">

**Author:** ![longnguyenQB](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/longnguyenqb/32/16113_2.png) [@longnguyenQB](https://forum.rasa.com/u/longnguyenQB)\
**Post date:** [October 22, 2021, 2:38am UTC](https://forum.rasa.com/t/customized-answers-in-the-actions-file-don-t-work-when-i-deploy-rasa-to-facebook-by-ngrok/48615/9 "2021-10-22T02:38:43Z")

</div>

Thanks bro! I have solved this problem successfully, i think the problem is in the version of rasa, when i install rasa version 2.8.1 ,everything is solved!!!
