Actions SDK
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Actions SDK 是一套开发者工具,用于为 Google 助理构建 Action。
该 SDK 提供了网络钩子库、基于文件的标准架构(用于定义 Actions 项目)和 CLI(用于管理 Actions 项目),以便您可以将构建适用于 Google 助理的 Action 集成到现有工作流中。
主要功能
Actions 项目基于文件的配置
Actions SDK 使用新的 Action Builder 对话模型,并针对对话模型的所有组件提供基于文件的表示形式:intent、类型、场景和提示。
借助基于 Action 项目的基于文件的配置,你可以使用自己选择的基于文件的版本控制系统(例如 git)轻松跟踪 Action 的版本。
详细了解 Actions 项目基于文件的配置
客户端库
Actions SDK 附带 Node.js 客户端库,为对话网络钩子协议提供惯用接口。Google 助理使用网络钩子协议将用户的请求传达给 Action,并接收满足这些请求的响应。
借助 Node.js 客户端库,可轻松实现许多常见的用户流,例如从语音查询中提取参数(例如类别或其他类型的用户偏好设置)以及为 Google 助理生成多模态表示法(仅语音以及语音和视觉元素)。
Node.js 客户端库使用入门
gactions 命令行界面
Gactions CLI 通过一组定义 Action 项目的配置文件来管理项目生命周期,并提供相关功能来轻松支持适用于 Google 助理的 Action 的更多高级功能,例如本地化和帐号关联。
借助 gactions CLI,您可以轻松执行许多常见的工作流,例如导入现有项目并开始处理功能分支以添加本地化内容。
开始使用 Google 操作
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-01。
[[["易于理解","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):2023-12-01。"],[[["The Actions SDK offers developer tools for creating Actions for Google Assistant, simplifying the integration process."],["It provides file-based project configuration, allowing version control and easier management of conversational models."],["Client libraries, including a Node.js library, facilitate communication with the Google Assistant via the Conversation Webhook Protocol."],["The gactions CLI manages project lifecycles, enabling features like localization and account linking for advanced Actions."]]],["The Actions SDK provides tools for developing Google Assistant Actions. It uses a file-based system for configuring intents, types, scenes, and prompts, allowing version control via tools like Git. A Node.js client library facilitates communication between the user's requests and the Action's response. The `gactions` CLI manages the project lifecycle, supporting localization and account linking, and enabling workflows like importing existing projects and working on feature branches.\n"]]