Dialogflow 代理 (Dialogflow)
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
利用 Dialogflow,您可以在代理中指定多种语言,从而允许您使用意图中特定于语言区域的差异,例如“用户说”短语和“响应”。如要在代理中支持多种语言,请按以下步骤操作:
- 创建一个 Dialogflow 代理,指定为您的 Action 提供最佳体验的语言。
点击代理的齿轮图标下的 + 图标,即可为代理添加语言。系统会显示“语言”标签页:

从选择其他语言 (Select Additional Language) 下拉菜单中选择支持的语言。

如有必要,请点击所需语言的添加语言区域来指定语言区域。如果您未指定语言区域,那么该语言的所有自定义设置都会应用于该语言的所有语言区域。

照常创建 intent 并切换语言条状标签,以针对每种语言或语言区域自定义用户说短语和 Dialogflow 响应。

对于需要执行方式的 intent,请参阅 Fulfillment 了解详情。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eDialogflow allows you to create multilingual agents, enabling you to tailor user interactions and responses based on language and locale.\u003c/p\u003e\n"],["\u003cp\u003eYou can add multiple languages and locales to your agent through the agent settings, starting with a primary language for the best initial user experience.\u003c/p\u003e\n"],["\u003cp\u003eIntents can be customized for each language or locale, including user phrases and Dialogflow responses, by switching between them in the interface.\u003c/p\u003e\n"],["\u003cp\u003eWhile adding languages, you can choose to add specific locales or apply customizations to all locales of a language for broader coverage.\u003c/p\u003e\n"],["\u003cp\u003eFor intents that require fulfillment, refer to the Fulfillment documentation for localized fulfillment strategies.\u003c/p\u003e\n"]]],[],null,["# Dialogflow agents (Dialogflow)\n\nDialogflow lets you specify multiple language support in your agent, which lets you\nlocale-specific differences in an intent, such as **User says** phrases and\n**Responses**. To support multiple languages in your agent:\n\n1. Create a Dialogflow agent, specifying the language that provides the best experience for your Actions.\n2. Add languages to your agent by clicking on the **+ icon** under the agent's\n **gear icon** . The **Languages tab** appears:\n\n3. Select the languages that you want to support from the **Select Additional\n Language** drop-down menu:\n\n4. If necessary, specify locales by clicking on **Add locale** for the\n desired language. If you don't specify locales, any customizations for the\n language apply to all locales of that language.\n\n\n5. Create intents as normal and switch between languages by clicking on the\n language chips to customize **User says** phrases and Dialogflow\n **Responses** for each language or locale.\n\nFor intents that require fulfillment, see [Fulfillment](/assistant/df-asdk/localization/fulfillment)\nfor more information."]]