概览 (Dialogflow)
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
借助 Actions on Google,您可以通过 Action 扩展 Google 助理的功能。Actions 可让用户通过对话界面完成各项操作,其中包括使用快速命令开灯或延长对话时间,例如玩知识问答游戏。
Dialogflow 是一个对话平台,可让您通过封装 Actions SDK 的功能来设计和构建 Action,并提供易于使用的 IDE、自然语言理解 (NLU)、机器学习等其他功能。
如需扩展 Google 助理,请按以下步骤构建操作。
设计对话
在开发之前,您应先设计对话或操作的界面。对话描述了用户如何调用您的 Action、可以对您的 Action 说哪些有效内容,以及您的 Action 如何回应用户。
了解详情
创建 Actions on Google 开发者项目和 Dialogflow 代理
前往 Actions 控制台,然后创建一个开发者项目。
通过项目,您可以定义有关 Action 的元数据,并通过审批流程管理和跟踪您的 Action。创建项目后,您可以创建一个 Dialogflow 代理来定义所有 Action。
了解详情
定义操作
您可以在 Dialogflow 代理中定义操作,并使用意图来定义操作功能的入口点。例如,假设您想构建一个可以购买某些商品、查看订单状态和显示一些每日特惠的操作。您可以定义通过说出以下内容触发的 intent:
- “Ok Google,与‘我最喜欢的鞋店’对话,购买一些鞋子”
- “Ok Google,与 My Favorite Shoe Store 对话以查看我的订单”
- “Ok Google,与‘我最喜欢的鞋店’对话,向我显示今天的优惠”
了解详情
构建和部署执行方式
当您的 Action 中的某个 Action 被调用时,它会调用执行方式来开始与用户对话,以执行该 Action。
如需创建对话,您需要在 Dialogflow 中定义 intent,以创建对话的语法,即用户可以对您的操作实际说出的内容。当用户实际说出触发意图的内容时,系统会调用您的 fulfillment 并向用户返回响应。
这种来回式请求和响应会反复发生,直到您的 fulfillment 获得足够的信息来完成任务。
了解详情
提交您的 Action 以供审批,并向用户发布该 Action

了解详情
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-24。
[null,null,["最后更新时间 (UTC):2025-07-24。"],[[["\u003cp\u003eActions on Google lets you build Actions to extend Google Assistant functionality, enabling users to interact through voice commands for tasks or conversations.\u003c/p\u003e\n"],["\u003cp\u003eDialogflow simplifies Action development by providing tools like an IDE, NLU, and machine learning, wrapping the Actions SDK functionality.\u003c/p\u003e\n"],["\u003cp\u003eBuilding an Action involves designing the conversation flow, creating a developer project and Dialogflow agent, defining Actions with intents, and building and deploying fulfillment logic.\u003c/p\u003e\n"],["\u003cp\u003eBefore submitting your Action for approval, it's essential to thoroughly design the user interaction and define how users invoke and interact with your Action.\u003c/p\u003e\n"],["\u003cp\u003eActions are invoked through specific phrases or commands, triggering intents within your Dialogflow agent, which then execute fulfillment logic to handle the user request.\u003c/p\u003e\n"]]],["Actions on Google enhance Google Assistant's capabilities through conversational interfaces. Developers use Dialogflow to build these Actions. The process involves designing the conversation flow and creating a developer project and Dialogflow agent. Define Actions using intents within the Dialogflow agent, which are triggered by user phrases. When triggered, intents call on fulfillment to complete the requested task, creating an interactive conversation until the task is done. Finally, the action is submitted for approval.\n"],null,["# Overview (Dialogflow)\n\nActions on Google lets you extend the functionality of Google Assistant with\n***Actions***. Actions let users get things done through a conversational\ninterface that can range from a quick command to turn on some lights or a\nlonger conversation, such as playing a trivia game.\n\nDialogflow is a conversational platform that lets you design and build\nActions by wrapping the functionality of the [Actions SDK](/assistant/df-asdk/actions-sdk)\nand providing additional features such as an easy-to-use IDE, natural language\nunderstanding (NLU), machine learning, and more.\n\nTo extend Google Assistant, you build an Action with the following steps.\n\nDesign your Conversation\n------------------------\n\nBefore developing, you should design your conversation, or the user interface\nfor your Action. The conversation describes how users invoke your Action, the\nvalid things that they can say to your Action, and how your Action responds to\nthem.\n\n[Learn more](/assistant/df-asdk/design)\n\nCreate an Actions on Google developer project and Dialogflow Agent\n------------------------------------------------------------------\n\nGo to the [Actions console](https://console.actions.google.com/) and create a developer project.\nThe project lets you define metadata about your Action and manage and track\nyour Action through the approval process. Once you have a project, you can\ncreate a Dialogflow agent that defines all your Actions.\n\n[Learn more](/assistant/df-asdk/dialogflow/project-agent)\n\nDefine Actions\n--------------\n\nYou define Actions in your Dialogflow agent with intents that define entry\npoints into your Action's functionality. For example, say you wanted to build an\nAction that could purchase some goods, check the status of orders, and to show\nsome daily deals. You can define intents that are triggered by saying:\n\n- *\"Ok Google, talk to My Favorite Shoe Store to purchase some shoes\"*\n- *\"Ok Google, talk to My Favorite Shoe Store to check on my order\"*\n- *\"Ok Google, talk to My Favorite Shoe Store to show me today's deals\"*\n\n[Learn more](/assistant/df-asdk/dialogflow/define-actions)\n\nBuild and deploy fulfillment\n----------------------------\n\nWhen an Action in your Action is invoked, it calls fulfillment to start a\nconversation with users to fulfill the Action.\n\nTo create your conversation, you define intents in Dialogflow to create your\nconversation's grammar, or the things users can actually say to your Action.\nWhen users actually say something to trigger an intent, your fulfillment is\ncalled and returns a response back to the user.\n\nThis back and forth request and response happens repeatedly until your\nfulfillment has enough information to complete the task.\n\n[Learn more](/assistant/df-asdk/dialogflow/fulfillment)\n\nSubmit your Action for approval and make it available to users\n--------------------------------------------------------------\n\n[Learn more](/assistant/df-asdk/submit-project)"]]