language keeps swapping back to ENG, when it shoul...
# 🤝help
q
Hi, my bot keeps switching back to english, when it has to answer a question from the KB. #help
it does behave the same while enabling/disabling certain options in the Translator Agent config.
Here's the flow where I'm using the option which lets the end-user to change language for themselves.
j
yooo
click on the nodes, and disaable the language detecotd on the right hand side
q
Hi Theo, you mean this option should be disabled?
disabled it, still the same
this is the node, which searches the KB and gives an answer.
j
hmm
q
In the emulator I can see, that the bot is answering in the correct language (Slovak), then it starts loading and translates it to English. Any other messages in the emulator are coming in English and it's translating it to Slovak... For me it looks like as if it wanted to translate between the 2 languages making the language choosing in the beginning obsolete
j
turn all of it off
and then try it again
hmm
q
yes, did it that way as well
j
how did you setup the language ?
q
just these 2 so far, as we are not sure how many more we'd need to add in the future
j
@quick-musician-29561
can you help him please
i dont know anything about code
GL !
q
thanks 😉
j
np
q
I took it from the language settings' video from YT
j
oh alright
f
Hi there @quick-sugar-8871 Just before it sends the message can you console.log or print out the {{user.TranslatorAgent.language}} variable
To find out if it isn't being set properly for the whole conversation or if its an issue with the translation
q
Hi @fresh-fireman-491 I would gladly do it, I'm just not sure how 🙂
f
Lets try and do this with a hook so we can see it every time. Go into hooks, create a new before outgoing message hook and then console.log(user.TranslatorAgent.language)
This will log the language in the console before every message from the bot
q
Personally, I think the issue is here...
f
Is that the only message that gets translated wrong?
q
yes, in this flow
f
I tried to recreate the error like this
But I think it worked just fine
I don't know Slovak so I can't tell
q
KB's website is in Slovak as well
indexed 300+ pages
(all slovak)
and here it looks like the chatbot doesn't recognize it as slovak, but "is"
In the emulator I can see, that the bot is answering in the correct language (Slovak), then it starts loading and translates it to English. Any other messages in the emulator are coming in English and it's translating it to Slovak...
f
If you don't have any sensitive or private information on your bot could you export it to me in a DM so I can try it out and see if I can reacreate the error?
q
yes, let's try it
f
Update This seems to be an issue on Botpress' side with the translator agent
q
Thanks for the update, do we have an estimate timeline on the fix?
I just created a report as well - f3a327a4-a302-4d83-9a23-f9e4e029ce06
c
@acceptable-kangaroo-64719 would you mind looking at this thread and report ID tomorrow before we escalate things to the Product team. Thank you!!! ✨
a
Hey @quick-sugar-8871 the bit about the emulator loading English and then translating that to Slovak is limited to the studio emulator only. When the bot is published (like this https://mediafiles.botpress.cloud/5fcacb4c-baae-4061-a258-0a7d47b060d3/webchat/bot.html), once Slovak language is chosen, the bot stays in Slovak with no indication of English messages.
q
Hi @acceptable-kangaroo-64719 I'm sorry but that's not entirely true as you can see from this screenshot. (I can send more, if needed)
Here's another one from 1 minute ago
plus it looks like as if it would have an issue reading from the knowledge base. Here I sent the bot links to the products I wanted to ask about (from the actual KB), then I asked my question and it replied with "Sorry, we don't have that product, please select another one."
are there any news, please?
j
yyes
i understand why
give me your chatbot
q
how do I "give" my chatbot to you?
f
I think he wants you to export it to him
q
I see, ok
j
yep
q
are there any news, please?
f
I am going to be in a meeting with the Botpress team this Thursday, I will ask them there
Just to make sure, you have tested it again today right? Just to make sure that they haven't pushed something without notifying us
q
yes, still the same
f
Hey @acceptable-kangaroo-64719 Sorry to ping you but could tell if there is a fix coming?
c
@witty-football-93730 any insights here?
q
I have set only 1 language this time (Slovak) and it still does the same thing
it's detecting the language from KB as "sl", when the whole KB is written in Slovak language
which is 'sk'
at least, that's how I see it - in case there's a mismatch in the language the bot is expecting, it suddenly can't cope with the answers' language - but the answer was correct.
😭🥺
c
Hi @quick-sugar-8871 , can you please send a report ID?
q
f3a327a4-a302-4d83-9a23-f9e4e029ce06 I have sent this on the 15th of January, is this OK, or should I create a new one?
c
It's ok, thanks
I'm sorry actually, I saw the report ID earlier. I missed it!
q
Hello all, Not trying to be pushy, but it would be nice to get a response as our client is getting nervous about this, plus we have another client lined up for a multi-language bot, which would include Slovak language as well.
c
Hi @famous-jewelry-85388 , have you ever seen this? And what would be the best way to avoid having the bot switch from Slovak to English?
f
@crooked-van-25152 I will look into it, sometimes happen due to some misconfiguration or wrong prompts. Will take a look 🙂
@quick-sugar-8871 hey man, can you give me the steps to reproduce it?
Okay, I have removed those and reindexed the product section of the website.
I am still looking into it, but here is what I got so far:
I removed the KB from the Capture information, passed the user query into the Query KB, then showed the answer
Okay, I am not sure what is happening, I have opened a case with the Team. For now, you can use the above 👆
Keep me posted
c
Thanks so much Bassam
q
Hello, I just had a chance to look at this today. I set the node up as per your instructions, but it doesn't seem to work for me. Maybe I'm missing something extra? Of course, I did remove the KBs and fetched the product sites as you did as well, so that should be fine
10 Views