The Dialogflow setting for language is not remembering that I want to use Chirp for the entire phone conversation. I am using playbooks. I want to tell the agent I want to speak X language (i.e. spanish, vietnamese, etc) and remember it and continue the conversation in this language. How do I get this work?
Solved! Go to Solution.
Hi @alfie ,
You need to store the user’s language choice in a session or context parameter in Dialogflow.
Then, in each intent or playbook, check that parameter and set the language accordingly.
Without this, Dialogflow resets to the default language.
Hi alfie,
Welcome to the Google Cloud Community!
In addition to @a_aleinikov, You may need to confirm the language selection back to the user in their chosen language. This can be done using conditional responses in Dialogflow (for a small number of languages) or, preferably, using a webhook and a translation library or resource file.
For more details about Language reference, you may refer to this documentation.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
Hi @alfie ,
You need to store the user’s language choice in a session or context parameter in Dialogflow.
Then, in each intent or playbook, check that parameter and set the language accordingly.
Without this, Dialogflow resets to the default language.
It's so helpful to me
Hi alfie,
Welcome to the Google Cloud Community!
In addition to @a_aleinikov, You may need to confirm the language selection back to the user in their chosen language. This can be done using conditional responses in Dialogflow (for a small number of languages) or, preferably, using a webhook and a translation library or resource file.
For more details about Language reference, you may refer to this documentation.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
thanks for the response. The key question I have is: can I code all the prompts once in the playbooks in English, then when someone calls the phone number, and tells the playbook the language they want to speak in, the playbook will automatically continue verbally in that person's language. Also, and data fetched from a data store will be provided to the caller in the preferred language.