Reputation: 53
My team and I are building a bot for Facebook Messenger using Dialogflow, but since our users don't speak the same language (Spanish is the default language in the project), we want to implement an English version of our project, but here's the issue we have implemented both languages as explained in Dialogflow's documentation (Gear - Languages - Select additional languages in the console), but we can't get a response in a language different from Spanish, even disabling ML for all of our intents or talking to our bot in English and languageCode key in JSON response from the server is always "es", no matter what. Here's the question, how can we achieve interaction with our users in both or even more languages dynamically? Any ideas?
Thanks in advance.
Upvotes: 4
Views: 1284
Reputation: 2963
Each user will have their own language set on the hardware they are using, so I am not sure what you mean by dynamically, but if you want to test English and can't get it not to be in Spanish, just test on the simulator where you can set the language with a dropdown. Go to the Actions on Google console. On the left, under Test, click Simulator. Here is what the language dropdown looks like.
I hope that helps. If it does not answer your question perhaps be more specific about what you are testing on (Simulator, Android, iPhone, Google Home, etc).
Upvotes: 1