User Message Translate Using CustomActions

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!

1 Like

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… let me know if you have any questions!

1 Like

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?