Language Confusion
# 🤝help
a
german botbuilder here tryin to play the ai game i noticed confusion with languages used on cards. figured that execute cards are only working with english language. got the problem that my expressions are not working. AI is telling the capture card (raw input) to capture the user mainproblem transitioning to a variance of options without using choosing options. I tried intents (added utterances in the intent library), doesnt work; i tried expressions like workflow.mainproblem!== workflow.donate, doesnt work at least in german - im afraid changing the utterances and the overall logic in english might be a problem for the user in the end. I was setting the user language to german on the very first welcome card. Any ideas? I tried the following 4 things (in german) 1. workflow.mainproblem !== workflow.donate 2. workflow.donate === donate 3. Intent is: user wants to donate with utterances 4. workflow.mainproblem === 'donate' all in german of course - doesnt transition to the next card really got no clue when it comes to js sry Video on how to change the language has been watched! Love your Videos and still the language confusion hits me everytime maybe we’re solving this Problem once and for all. For my last tries i added a language choosing node and i simply let the bot recognize the spoken language Thanks in advance folks
r
@adamant-gold-84199 if I understand correctly, you want a Raw Input to flow to an Option when the user says something in a different language than english (but the option text is in English) ?
a
Everything is in German in my case- namens of variables, utterances Everything but execute code And yes i want the bot to recognize the mainproblem and send the user to the topic he wants to
He will be send to a node that asks if he got it right like „we are Talking about donations. Are we on the same Page?“ and its always only the very first option that gets picked with the above mentioned expressions/intents
r
@adamant-gold-84199 oh ok i think i understand - so it's the intent transition that doesn't detect correctly ?
a
Eather the intent or the expression transitions
thats where i am researching right now thats why i was basically asking a js question maybe if expression is the way to go and meanwhile i‘m not trusting the given english translations of the expression card neather can my intend handle german commands or german prompt results
r
gotcha can you screenshot what you tried here so far? like your transitions in the right panel
a
@User explaining via AI Task that users should be correctly transitioned to the desired topic, capturing mainproblem/Hauptproblem via raw input. "Was führt dich zu uns?" means why your here basically. First transition example reads "mainproblem is emergency-call", 2nd just reads "emergencycall" - the given condition in the second seems to react while testing but it reacts to everything else too so it rly doesnt understand when to transition exactly

https://cdn.discordapp.com/attachments/1133523399268913253/1133794882490732624/Overview.png

https://cdn.discordapp.com/attachments/1133523399268913253/1133794882834673684/AI_Task.png

https://cdn.discordapp.com/attachments/1133523399268913253/1133794883174400045/Screenshot_2023-07-26_180531.png

https://cdn.discordapp.com/attachments/1133523399268913253/1133794883388313791/Screenshot_2023-07-26_180625.png

https://cdn.discordapp.com/attachments/1133523399268913253/1133794883606425660/Screenshot_2023-07-26_180709.png

https://cdn.discordapp.com/attachments/1133523399268913253/1133794883816128613/looking_for_hausnotruf_this_expression_reacts.png

@rich-battery-69172 can you see my problem? 🫣
c
Do you need to use the AI Task for this? Can you just use intents alone with utterances to direct to the correct node?
a
funny thing: without AI Task its not working at all! Thanks for asking thats an interesting finding
s
I have a similar problem @rich-battery-69172 and @adamant-gold-84199. The workflow works as expected in english (default language), but whenever I choose the single choice "Change Language" (Norwegian in my case), the workflow continues to the execute code instead of following the transition from the chosen Single Select. Not sure why this happens, it probably has something to do with the translating, but is there a way to always following the transition in the Single Select (even though it's in a translated language). In the attached screen capture video, you can see that the transition works as intended when I choose the translated Single Choice option for the second time, maybe this makes it easier to troubleshoot https://cdn.discordapp.com/attachments/1133523399268913253/1135854228326330378/Screen_Capture_on_2023-08-01_at_17-24-13.mp4

https://cdn.discordapp.com/attachments/1133523399268913253/1135854228733186099/Screenshot_2023-08-01_at_17.26.19.png

@famous-jewelry-85388
f
If you can DM me the bot too that will be extremly helpful
s
I appreciate that @famous-jewelry-85388, I'll message you and share what we find here if it's relevant for other botpressers