Set Bot Language in WebHook Session

Hi

How can I forcefully set the bot language when communicating to a chatbot via WebHook?
I tried adding a header, e.g. bot-language: de, but without success.

Thanks,
Simon

Hi Simon,

It is possible to set language through BotKit with Cheat lang command as confirmed in the document:

https://developer.kore.ai/docs/bots/advanced-topics/multi-lingual/building-multi-language-bots/

Do test and confirm if this works for you.

Thanks Sameera, the cheat language command works.

Hi Sameera ,

I am not able to configure cheat language en in botkit.
I am trying it as following in on_user_message

data.message =‘cheat language en’
sdk.sendBotMessage(data,callback)

I think you should try modifying the payload as suggested in this thread: disable language

Hi Simon,

We are using google translator to support multiple language as we do not have enough language expert to train the bot in 17 languages.
We will only create english bot and use google translator for other language.
Our requirement is when user logged in first time, we need to ask the language.
Do we have any variable which can hold the value for lifetime.