配置开发者项目和帐号设置
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
配置 Actions 控制台项目
由 Actions 控制台管理的 Google Cloud Platform 项目可让您的项目访问 Google Assistant API。该项目会跟踪配额使用情况,并针对从硬件发出的请求为您提供有价值的指标。
如需启用对 Google Assistant API 的访问权限,请执行以下步骤:
打开 Actions 控制台。
前往 Actions 控制台
点击添加/导入项目。
如需创建新项目,请在项目名称框中输入名称,然后点击创建项目。
如果您已有 Google Cloud Platform 项目,则可以选择该项目并将其导入,而无需创建新项目。
如果您创建了一个新项目,请点击页面底部附近的设备注册框。如果您导入了之前创建的项目,系统不会显示此框;请从左侧导航栏中选择设备注册标签页(在高级选项下)。
请让此浏览器标签页保持打开状态。在后续步骤中,您将用它来注册设备模型。
为您选择的项目启用 Google Assistant API(请参阅服务条款)。您需要在 Cloud Platform 控制台中执行此操作。
启用 API
点击启用。
您必须在 Cloud Platform Console 中为您的项目配置 OAuth 同意屏幕。请注意,此页面上的大多数字段都是选填的。
为您的帐号设置活动控件
为了使用 Google 助理,您必须与 Google 分享某些活动数据。Google 助理需要这些数据才能正常运行;该数据并非 SDK 特有。如果您还没有 Google 帐号,请创建一个,以共享此数据。
打开要与 Google 助理搭配使用的 Google 帐号的“活动控件”页面。您可以使用任何 Google 帐号,不一定要是您的开发者帐号。
确保已启用以下切换开关(蓝色):
- 网络与应用活动记录
- 此外,请务必选中包括 Chrome 历史记录和使用 Google 服务的网站、应用和设备上的活动记录复选框。
- 设备信息
- 语音和音频活动记录
后续步骤
注册设备模型
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-09。
[[["易于理解","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):2024-11-09。"],[[["An Actions Console project provides access to the Google Assistant API, tracks quota usage, and provides valuable metrics."],["To enable Assistant API access, you need to create or import a project in the Actions Console and enable the necessary API."],["For the Assistant to function, ensure your Google Account's \"Web & App Activity,\" \"Device Information,\" and \"Voice & Audio Activity\" are enabled within the Activity Controls."],["Before using the Assistant, be sure to register a Device Model in the Actions Console to associate with your project."]]],["To begin, open the Actions Console and add or import a Google Cloud Platform project. If creating a new project, enter a name and proceed to \"Device registration\"; if importing, go directly to the \"Device registration\" tab. Then, enable the Google Assistant API in the Cloud Platform Console. Lastly, configure the OAuth consent screen for your project in the Cloud Platform Console. Ensure your Google account's activity controls are enabled for Web & App, Device Information, and Voice & Audio activity.\n"]]