概览 (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。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-24。"],[[["Actions on Google lets you build Actions to extend Google Assistant functionality, enabling users to interact through voice commands for tasks or conversations."],["Dialogflow simplifies Action development by providing tools like an IDE, NLU, and machine learning, wrapping the Actions SDK functionality."],["Building an Action involves designing the conversation flow, creating a developer project and Dialogflow agent, defining Actions with intents, and building and deploying fulfillment logic."],["Before submitting your Action for approval, it's essential to thoroughly design the user interaction and define how users invoke and interact with your Action."],["Actions are invoked through specific phrases or commands, triggering intents within your Dialogflow agent, which then execute fulfillment logic to handle the user request."]]],["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"]]