對話動作已於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
設定開發人員專案和帳戶設定
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
設定 Actions 主控台專案
由 Actions 控制台管理的 Google Cloud Platform 專案,可讓專案存取 Google 助理 API。專案會追蹤配額用量,並提供硬體提出的要求相關實用指標。
如要啟用 Google 助理 API 的存取權,請按照下列步驟操作:
開啟 Actions 管理中心。
前往 Actions 控制台
按一下「新增/匯入專案」。
如要建立新專案,請在「專案名稱」方塊中輸入名稱,然後按一下「建立專案」。
如果您已有 Google Cloud Platform 專案,可以選取並匯入該專案,不必新建專案。
如果您建立了新專案,請按一下頁面底部的「裝置註冊」方塊。如果您匯入先前建立的專案,這個方塊就不會顯示;請從左側導覽列選取「Device registration」分頁 (位於「ADVANCED OPTIONS」下方)。
請勿關閉這個瀏覽器分頁。您會在後續步驟中使用此 ID 註冊裝置型號。
為所選專案啟用 Google 助理 API (請參閱服務條款)。您必須在 Cloud Platform Console 中執行這項操作。
啟用 API
按一下「啟用」。
您必須在 Cloud Platform 控制台中,為專案設定 OAuth 同意畫面。請注意,這個頁面上的大部分欄位都是選填。
為帳戶設定活動控制項
如要使用 Google 助理,必須與 Google 分享特定活動資料。Google 助理需要這項資料才能正常運作,這並非 SDK 專屬功能。如要分享這項資料,請建立 Google 帳戶 (如果還沒有的話)。
開啟要與 Google 助理搭配使用的 Google 帳戶的活動控制項頁面。您可以使用任何 Google 帳戶,不一定要是開發人員帳戶。
確認下列切換開關已啟用 (顯示為藍色):
- 網路和應用程式活動
- 此外,請務必勾選「包括 Chrome 歷史記錄以及採用 Google 服務的網站、應用程式和裝置中的活動記錄」核取方塊。
- 裝置資訊
- 語音和音訊活動
下一步
註冊裝置型號
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eAn Actions Console project provides access to the Google Assistant API, tracks quota usage, and provides valuable metrics.\u003c/p\u003e\n"],["\u003cp\u003eTo enable Assistant API access, you need to create or import a project in the Actions Console and enable the necessary API.\u003c/p\u003e\n"],["\u003cp\u003eFor the Assistant to function, ensure your Google Account's "Web & App Activity," "Device Information," and "Voice & Audio Activity" are enabled within the Activity Controls.\u003c/p\u003e\n"],["\u003cp\u003eBefore using the Assistant, be sure to register a Device Model in the Actions Console to associate with your project.\u003c/p\u003e\n"]]],["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"],null,["# Configure a Developer Project and Account Settings\n\nConfigure an Actions Console project\n------------------------------------\n\nA Google Cloud Platform project, managed by the Actions Console, gives your\nproject access to the Google Assistant API. The project tracks quota usage and\ngives you valuable metrics for the requests made from your hardware.\n\nTo enable access to the Google Assistant API, perform the following steps:\n\n1. Open the Actions Console.\n\n [Go\n to the Actions Console](https://console.actions.google.com/)\n2. Click **Add/import project**.\n\n3. To create a new project, enter a name in the **Project name** box and click\n **CREATE PROJECT**.\n\n \u003cbr /\u003e\n\n If you already have an existing Google Cloud Platform project, you can select that\n project and import it rather than creating a new one.\n\n4.\n If you created a new project, click the **Device registration** box near the\n bottom of the page. If you imported a previously-created project, this box\n does not appear; select the **Device registration** tab (under\n **ADVANCED OPTIONS**) from the left navbar.\n\n Keep this browser tab open. You will use it to register a device model in\n a later step.\n5. Enable the Google Assistant API on the project you selected (see the [Terms\n of Service](/assistant/sdk/terms-of-service)). You need to do this in the\n Cloud Platform Console.\n\n [Enable\n the API](https://console.developers.google.com/apis/api/embeddedassistant.googleapis.com/overview)\n\n Click **Enable**.\n6. You must configure the [OAuth consent\n screen](https://console.developers.google.com/apis/credentials/consent)\n for your project in the Cloud Platform Console. Note that most fields on\n this page are optional.\n\n\nSet activity controls for your account\n--------------------------------------\n\nIn order to use the Google Assistant, you must share certain activity data with\nGoogle. The Google Assistant needs this data to function properly; this is not\nspecific to the SDK. To share this data, create a\n[Google account](https://support.google.com/accounts/answer/27441)\nif you don't already have one.\n\nOpen the [Activity Controls page](https://myaccount.google.com/activitycontrols)\nfor the Google account that you want to use with the Assistant. You can use any\nGoogle account---it does not need to be your developer account.\n\n**Ensure the following toggle switches are enabled (blue)**:\n\n- Web \\& App Activity\n - In addition, be sure to select the **Include Chrome history and activity\n from sites, apps, and devices that use Google services** checkbox.\n- Device Information\n- Voice \\& Audio Activity\n\nNext step\n---------\n\n[Register the Device Model](/assistant/sdk/guides/service/python/embed/register-device)"]]