Định cấu hình dự án dành cho nhà phát triển và cài đặt tài khoản
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Định cấu hình dự án Bảng điều khiển Actions
Một dự án trên Google Cloud Platform do Actions Console quản lý sẽ cấp cho dự án của bạn quyền truy cập vào Google Assistant API. Dự án này theo dõi mức sử dụng hạn mức và cung cấp cho bạn các chỉ số có giá trị cho những yêu cầu được thực hiện từ phần cứng của bạn.
Để cho phép truy cập vào Google Assistant API, hãy thực hiện các bước sau:
Mở Actions Console.
Chuyển đến Bảng điều khiển Actions
Nhấp vào Thêm/nhập dự án.
Để tạo một dự án mới, hãy nhập tên vào hộp Tên dự án rồi nhấp vào TẠO DỰ ÁN.
Nếu đã có một dự án Google Cloud Platform, bạn có thể chọn dự án đó và nhập thay vì tạo một dự án mới.
Nếu bạn đã tạo một dự án mới, hãy nhấp vào hộp Đăng ký thiết bị ở gần cuối trang. Nếu bạn nhập một dự án đã tạo trước đó, hộp này sẽ không xuất hiện; hãy chọn thẻ Device registration (Đăng ký thiết bị) (trong ADVANCED OPTIONS (TUỲ CHỌN NÂNG CAO)) trên thanh điều hướng bên trái.
Hãy mở thẻ trình duyệt này. Bạn sẽ dùng mã này để đăng ký một mô hình thiết bị ở bước sau.
Bật Google Assistant API trên dự án bạn đã chọn (xem Điều khoản dịch vụ). Bạn cần thực hiện việc này trong Bảng điều khiển Cloud Platform.
Bật API
Nhấp vào Bật.
Bạn phải định cấu hình màn hình đồng ý OAuth cho dự án của mình trong Cloud Platform Console. Xin lưu ý rằng hầu hết các trường trên trang này đều không bắt buộc.
Đặt chế độ kiểm soát hoạt động cho tài khoản của bạn
Để sử dụng Trợ lý Google, bạn phải chia sẻ một số dữ liệu hoạt động với Google. Trợ lý Google cần dữ liệu này để hoạt động đúng cách; dữ liệu này không dành riêng cho SDK. Để chia sẻ dữ liệu này, hãy tạo một Tài khoản Google nếu bạn chưa có.
Mở trang Kiểm soát hoạt động cho Tài khoản Google mà bạn muốn dùng với Trợ lý. Bạn có thể sử dụng bất kỳ Tài khoản Google nào, không nhất thiết phải là tài khoản nhà phát triển của bạn.
Đảm bảo bạn đã bật (màu xanh dương) các nút bật/tắt sau:
- Hoạt động trên web và ứng dụng
- Ngoài ra, hãy nhớ đánh dấu vào hộp Bao gồm cả nhật ký duyệt web trên Chrome cũng như hoạt động trên những trang web, ứng dụng và thiết bị sử dụng các dịch vụ của Google.
- Thông tin thiết bị
- Hoạt động âm thanh và giọng nói
Bước tiếp theo
Đăng ký Mẫu thiết bị
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\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)"]]