开始使用(Dialogflow)
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
开发使用 Interactive Canvas 的 Action 时,应遵循与构建对话型 Action 相同的一般步骤。创建 Action 项目、Dialogflow 代理、fulfillment 和 Web 应用后,即可定义 Action 和 Interactive Canvas 之间的通信。
请按照以下开发步骤构建您的 Interactive Canvas Action:
设置:设置用于开发使用 Interactive Canvas 的 Action 的各种工具和平台。
- 创建 Actions 项目:创建包含配置、管理和发布 Action 所需的元数据的项目。
- 创建 Dialogflow 代理:使用 Dialogflow 为 Action 构建对话界面。
构建对话型 Action:为 Action 中包含 HtmlResponse
的 intent 定义网络钩子逻辑。Interactive Canvas 文档介绍了如何使用 Node.js 客户端库构建 Action,但您也可以使用 Java 客户端库进行构建。
构建 Web 应用:使用现有 Web 技术创建 Web 应用,并编写利用 Interactive Canvas API 的客户端自定义逻辑。部署到您选择的网络服务器。
部署您的执行方式:使用 Firebase CLI 部署您的执行方式代码。
测试你的 Action:了解如何使用模拟器测试你的 Action。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-24。
[null,null,["最后更新时间 (UTC):2025-07-24。"],[],["Develop an Interactive Canvas Action by first setting up an Actions project and Dialogflow agent. Next, build the conversational Action, defining webhook logic for intents. Subsequently, create the web app using web technologies and the Interactive Canvas API, and deploy it. Deploy the fulfillment code using the Firebase CLI. Finally, test the Action using the simulator to ensure it works correctly. These steps outline the core process.\n"],null,[]]