# Weather Bot with Multi-language Option

**URL:** <https://forum.rasa.com/t/weather-bot-with-multi-language-option/3796>\
**Category:** Getting Started with Rasa\
**Created:** [December 22, 2018, 11:58am UTC](https://forum.rasa.com/t/weather-bot-with-multi-language-option/3796 "2018-12-22T11:58:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EliBruce](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@EliBruce](https://forum.rasa.com/u/EliBruce)\
**Post date:** [December 22, 2018, 11:58am UTC](https://forum.rasa.com/t/weather-bot-with-multi-language-option/3796/1 "2018-12-22T11:58:49Z")

</div>

Hi Friend,

I am newbie in RASA, I have created a weatherbot and its working as expected. This is a English speaking bot. Can any one explain how to integrate one more language(Portuguese) to this bot.

I have shared the files related to this project. [bot\_stories.md](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/4/4f3b44bffabfde705e599108c85c113ed52b4d1b.md) (2.6 KB) [data.json](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/8/814fc75371caafdefb3a28d55473ace369c34280.json) (9.2 KB) [nlu\_model\_config.md](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/d/d2f8306cb3f0ea1510ce94711b5feea347e42f22.md) (269 Bytes) [weather\_domain.yml](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/d/d0bf8fd2d1f7b23f83ba0eab092a2df52d33883c.yml) (463 Bytes)

Thanks in Advance, EB

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [January 3, 2019, 4:19pm UTC](https://forum.rasa.com/t/weather-bot-with-multi-language-option/3796/2 "2019-01-03T16:19:42Z")

</div>

Hi EB,

using the spacy pipeline you have to train different bots for different languages since spacy is using the language model for **one** specific language. The tensorflow embedded pipeline could probably handle multiple languages, but I would not recommend that.

---

<div class="post-metadata">

**Author:** ![alexissmirnov](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/alexissmirnov/32/845_2.png) [@alexissmirnov](https://forum.rasa.com/u/alexissmirnov)\
**Post date:** [February 25, 2019, 3:47pm UTC](https://forum.rasa.com/t/weather-bot-with-multi-language-option/3796/3 "2019-02-25T15:47:37Z")

</div>

Hi Tobias,

We ([dialogue.co](http://dialogue.co), @moaazsidat ) are also thinking about supporting users with different language preferences. When a user starts the chat, we have a user profile that includes the user’s language preference.

This is especially important when the bot needs to initiate the chat by sending the very first greeting message in the language of the user’s preference.

It makes sense to have a language-specific rasa\_nlu process/endpoint that loads a model trained on a specific language.

My understanding is, rasa\_core runs the channel connector in-process. Whenever it receives the message, it sends the message to rasa\_nlu _without doing any pre-processing_. So there’s no way to route the message coming from a channel into a rasa\_nlu endpoint based on message metadata.

In [Can Rasa\_core connect multiple Rasa\_nlu · Issue #379 · RasaHQ/rasa\_core · GitHub](https://github.com/RasaHQ/rasa_core/issues/379) @amn41 mentions subclassing the `Interpreter` class, creating something like a `MetaRasaNLUInterpreter`. To use this approach, one would also need to extend `UserMessage` to allow channels to pass message metadata (such as language preference or another metadata that could help the interpreter to determine which NLU model to use).

Thanks, Alexis

---

<div class="post-metadata">

**Author:** ![alexissmirnov](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/alexissmirnov/32/845_2.png) [@alexissmirnov](https://forum.rasa.com/u/alexissmirnov)\
**Post date:** [February 26, 2019, 2:17pm UTC](https://forum.rasa.com/t/weather-bot-with-multi-language-option/3796/4 "2019-02-26T14:17:40Z")

</div>

I’ve put together some thoughts of how Rasa could be enhanced to support multi-language use-cases in a more flexible way: [Dynamic configuration of NLU endpoint (Tracker Aware Interpreter) · Issue #1764 · RasaHQ/rasa\_core · GitHub](https://github.com/RasaHQ/rasa_core/issues/1764) and can propose a PR for it, if the solution makes sense.

@amn41 and team, would love your feedback.
