Search code examples
chatbotdialogflow-esapi-aiagents

Dialogflow Prebuilt agents language


I'm working in a chatbot with EN and ES locales. The default locale is ES.

I want to add small talk using prebuilt agents. But here is the problem: Once I import the agent, this agent only appear with ES locale. It means that when I export the intents to my chatbot, this intents only has ES responses.

I want to get both, ES and EN responses.

The question is, how can I import this prebuilt agents with both languages?


Solution

  • Yes, you can have responses in several languages within one Dialogflow agent, however, you'll need to have duplicate intents (one intent in each language). There's a Dialogflow multi-locale sample available up on Github for further reference on this. Also, you can check out the official documentation.