Dialogflow Generator Multi Language Support

Hello,
I'm working on an agent that supports multiple languages and includes generators.
What is considered the best practice for supporting different languages in generators? I’m considering two approaches:
  • The first involves creating prompts in English and then specifying the desired language for the response by including a line such as "Answer in [LANGUAGE PARAM]." in the prompt.
  • The second approach is about translating the prompts into the supported languages.
Which one is better?
0 1 76
1 REPLY 1

Hi,

My suggestion is going to be to have the same generator and add what you were saying: Answer in [LANGUAGE PARAM]. However, when you create an Agent that supports multiple languages, you will need to set different fulfillments per language in the Console but you can still re-use the same generator.

Best,

Xavi