Hi all. I’m trying to enable the user to choose his preferred language for the conversation while chatting. However, as in the config.yml, we have a predefined language, I wonder how can I achieve this ?
A basic conversation flow is :
Bot: Which language do you prefer ?(French or english)
User : French
After this reply the bot should start the conversation in French.
Bot : OK. j’ai compris.
Thanks in advance for your reply.
Your faithfully.
You could set a slot and then that slot would determine which story it would follow.
You can check it out here on how to make slots influence stories: Slots
Or another option would be to create a custom action that reads the language slot value and returns the respective data based on the intent and slot value.
Actually, that is what I finally did. I was wondering if there is another way to do it. Also I added in config.yml, language: en,fr to test.
Thanks anyway @lahsuk