I have a bot which should work on french language only, But my bot sometimes picks random intent’s when typed something in English also . This should not be happening . I have gone through the language support doc and my nlu config is this -
like i have an intent in my french language bot for outlook. I have utterances in french only .
when i type “can you tell me how can i log into outlook?” intent for outlook is getting picked up
bot is not only accepting english phrases but also picking up other languages and for some phrases it is picking up right intents meaning they are mapping correct intents like when i type
"can you tell me how can i log into outlook?” it picks outlook intent
when i type same phrase in spanish it picks outlook intent and for some phrases in different language lets say in arabic intents are getting wrongly picked
but it is normal, it will not reject another language because embeddings dont have a notion of languages in particular. it will predict even if you put garbage in it.
what is your expectation? to send the user another message?
but for ambigious texts, short text, it will not work.
It is upto your channel tbh to handle the disambiguation based on your intro text. It would be strange for a user to type in english when the welcome text is in french. you can maybe help the user is you use language detect, just add a class implementation of lang_detect and write it in your config pipeline
Hello @NikhilBansal21, I’m trying to detect foreign languages and reply accordingly, an answer like “Sorry, I don’t speak Korean” for example. Did you manage to do it ?