I would like to know if there is a way to switch the chatbot language using a script node, or through some other way within the chatbot.
Ideally, the flow should be:
chatbot enters the “Switch to English”/“Switch to …” task through utterance in a dialog task
within the task the language is changed (setting context.currentLanguage = “en” within a script node does not seem to be working)
chat is restarted / the welcome message is repeated in the correct language/the chatbot is redirected to the onConnect Dialog Task in the switched language/