RocketChat / Apps.Rasa

Integration between Rocket.Chat and the RASA Chatbot platform
17 stars 11 forks source link

How to send language information #12

Open gioppoluca opened 3 years ago

gioppoluca commented 3 years ago

The need is th have RocketChat able to serve different languages so having different bot for each language. Is it possible to add to the request to rasa a lang parameter? Also this lang can be collected from RocketChat? Is there a place in RocketChat where we can configure the livewidget lang? Thanks

murtaza98 commented 3 years ago

Is it possible to add to the request to rasa a lang parameter?

The endpoint which we're currently using (this one) for sending the message from Rocket.Chat to Rasa doesn't include any parameter specifying the language to be used, so by default whatever language you have configured on your Rasa NLU server that should be language that the chatbot will use.

Also this lang can be collected from RocketChat? Is there a place in RocketChat where we can configure the livewidget lang?

Yes there is a way to collect this data on Rocket.Chat. We're doing something similar in Dialogflow app here. But due to the above limitation of the Rasa's REST endpoint, we cannot pass this language info to them.

I'll need to look more into this and share will here if I have some news. Also feel free to share any ideas / solutions you might have for this issue