cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Conversational AI unable to switch between languages within a single conversation

0 Kudos

Hi,

I am creating a chatbot with SAP CAI. I noticed that when I specify 2 languages (English and Malay) to use, typing in the first user response in 1 language will force the bot to treat the following user responses in that language only. Can this behaviour be changed?

Accepted Solutions (0)

Answers (1)

Answers (1)

sebastienb
Product and Topic Expert
Product and Topic Expert

Hi,

The first sentence detected in your conversation will set the language for the rest of the conversation. In your example "Berapa cuti saya ada" will be understood as english.

You have a solution :

  1. You have to make an intent (in the english tab) with some expressions in Malay which would be something like "I want to speak in Malay"
  2. Then make a skill "Change language" which would trigger with this intent detection.
  3. In this skill, make a New message group > update conversation > change language and choose Malay
  4. There you're 🙂

Here are some extra explanations about the way we handle languages : https://cai.tools.sap/docs/concepts/action#change-language

yassersaber
Participant
0 Kudos

Hi sbeghelli,

is there any other way to automatically shift to another language like if detected the new language do reset then act with the new one.

because it is so difficult to the end-user to ask change to his language by the other one ?

Best Regards