# User Message Translate Using CustomActions

**URL:** <https://forum.rasa.com/t/user-message-translate-using-customactions/42281>\
**Category:** Rasa Open Source\
**Created:** [April 9, 2021, 5:20pm UTC](https://forum.rasa.com/t/user-message-translate-using-customactions/42281 "2021-04-09T17:20:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eraj](https://avatars.discourse-cdn.com/v4/letter/e/6bbea6/32.png) [@Eraj](https://forum.rasa.com/u/Eraj)\
**Post date:** [April 9, 2021, 5:20pm UTC](https://forum.rasa.com/t/user-message-translate-using-customactions/42281/1 "2021-04-09T17:20:04Z")

</div>

Hello,

My team and I are creating a chatbot for a project. We want the user to have the ability to write and send messages in Spanish, and our RASA chatbot to translate it to English to map with our intents (English) and send the responses (English). I will use google trans library (python) for it.

I am not sure how to write a custom action for it!! Any help would be appreciated, Thanks!

---

<div class="post-metadata">

**Author:** ![desmarchris](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/desmarchris/32/12277_2.png) [@desmarchris](https://forum.rasa.com/u/desmarchris)\
**Post date:** [April 12, 2021, 9:21pm UTC](https://forum.rasa.com/t/user-message-translate-using-customactions/42281/2 "2021-04-12T21:21:02Z")

</div>

Hey @Eraj, actually I would build a custom NLU component to handle the translation instead of a custom action. [Our documentation shows how to do this](https://rasa.com/docs/rasa/components#custom-components)… let me know if you have any questions!

---

<div class="post-metadata">

**Author:** ![bhavikyjain](https://avatars.discourse-cdn.com/v4/letter/b/a9a28c/32.png) [@bhavikyjain](https://forum.rasa.com/u/bhavikyjain)\
**Post date:** [September 23, 2021, 6:04am UTC](https://forum.rasa.com/t/user-message-translate-using-customactions/42281/3 "2021-09-23T06:04:30Z")

</div>

Hi, I have built a custom NLU Component for Translating each and every non-english message. However, how do I make sure RASA utters the message in the original language?

Basically, **how do I transform/apply rules on responses before sending back?**
