Actions API
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.
Dịch vụ RESTful cho Actions API.
Dịch vụ: actions.googleapis.com
Để gọi dịch vụ này, bạn nên sử dụng thư viện ứng dụng do Google cung cấp. Nếu ứng dụng của bạn cần sử dụng thư viện của riêng bạn để gọi dịch vụ này, hãy sử dụng thông tin sau đây khi đưa ra yêu cầu API.
Tài liệu khám phá
Tài liệu khám phá là một thông số kỹ thuật mà máy đọc được để mô tả và sử dụng các API REST. API này được dùng để xây dựng thư viện ứng dụng, trình bổ trợ IDE và các công cụ khác tương tác với các API của Google. Một dịch vụ có thể cung cấp nhiều tài liệu khám phá. Dịch vụ này cung cấp tài liệu khám phá sau đây:
Điểm cuối dịch vụ
Điểm cuối dịch vụ là một URL cơ sở chỉ định địa chỉ mạng của dịch vụ API. Một dịch vụ có thể có nhiều điểm cuối dịch vụ. Dịch vụ này có điểm cuối của dịch vụ sau đây và tất cả các URI bên dưới đều liên quan đến điểm cuối của dịch vụ này:
https://actions.googleapis.com
Tài nguyên REST: v2
Phương thức |
decryptSecret |
POST /v2:decryptSecret
Giải mã mật khẩu ứng dụng khách OAuth được dùng trong các quy trình liên kết tài khoản. |
encryptSecret |
POST /v2:encryptSecret
Mã hoá mật khẩu ứng dụng khách OAuth được dùng trong các quy trình liên kết tài khoản. |
setWebAndAppActivityControl |
POST /v2:setWebAndAppActivityControl
Thiết lập chế độ kiểm soát Hoạt động trên web và ứng dụng cho tài khoản dịch vụ. |
Phương thức |
matchIntents |
POST /v2/{project=projects/*}:matchIntents
Tìm các ý định phù hợp với một truy vấn nhất định. |
sendInteraction |
POST /v2/{project=projects/*}:sendInteraction
Phát một vòng của cuộc trò chuyện. |
Phương thức |
read |
POST /v2/{name=projects/*/draft}:read
Đọc toàn bộ nội dung của bản nháp dự án. |
write |
POST /v2/{parent=projects/*}/draft:write
Cập nhật bản nháp dự án dựa trên mô hình. |
Phương thức |
write |
POST /v2/{parent=projects/*}/preview:write
Cập nhật bản xem trước dự án của người dùng dựa trên mô hình. |
Phương thức |
list |
GET /v2/{parent=projects/*}/releaseChannels
Liệt kê tất cả các kênh phát hành và phiên bản tương ứng, nếu có. |
Phương thức |
create |
POST /v2/{parent=projects/*}/versions:create
Tạo một phiên bản dự án dựa trên mô hình và kích hoạt quá trình triển khai cho kênh phát hành đã chỉ định, nếu được chỉ định. |
list |
GET /v2/{parent=projects/*}/versions
Liệt kê tất cả phiên bản và trạng thái hiện tại của phiên bản đó. |
read |
POST /v2/{name=projects/*/versions/*}:read
Đọc toàn bộ nội dung của một phiên bản dự án. |
Phương thức |
list |
GET /v2/sampleProjects
Liệt kê tất cả dự án mẫu mà gactions CLI hỗ trợ. |
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\u003eThis is a RESTful API service for Google Actions, allowing developers to build and manage conversational experiences.\u003c/p\u003e\n"],["\u003cp\u003eIt provides access to various resources for tasks like intent matching, conversation interactions, project draft management, and version control.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can leverage Google-provided client libraries or utilize the provided discovery document and service endpoint for custom integrations.\u003c/p\u003e\n"],["\u003cp\u003eThe service offers functionalities for encrypting/decrypting secrets, managing web and app activity control, and working with sample projects.\u003c/p\u003e\n"],["\u003cp\u003eAll API requests are relative to the service endpoint: \u003ccode\u003ehttps://actions.googleapis.com\u003c/code\u003e.\u003c/p\u003e\n"]]],["The Actions API offers a RESTful service with resources for managing projects, drafts, previews, release channels, and versions. Key actions include: decrypting/encrypting OAuth secrets, managing web and app activity controls, matching intents to queries, and simulating conversations. Project drafts can be read and updated. Project previews can be updated. Release channels and project versions can be listed, and project versions can be created and read. The service also provides a list of available sample projects.\n"],null,["# Actions API\n\nA RESTful service for the Actions API.\n\n- [REST Resource: v2](#v2)\n- [REST Resource: v2.projects](#v2.projects)\n- [REST Resource: v2.projects.draft](#v2.projects.draft)\n- [REST Resource: v2.projects.preview](#v2.projects.preview)\n- [REST Resource: v2.projects.releaseChannels](#v2.projects.releaseChannels)\n- [REST Resource: v2.projects.versions](#v2.projects.versions)\n- [REST Resource: v2.sampleProjects](#v2.sampleProjects)\n\nService: actions.googleapis.com\n-------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://actions.googleapis.com/$discovery/rest?version=v2\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://actions.googleapis.com`\n\nREST Resource: [v2](/assistant/actions/api/reference/rest/v2/TopLevel)\n----------------------------------------------------------------------\n\n| Methods ||\n|--------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|\n| [decryptSecret](/assistant/actions/api/reference/rest/v2/TopLevel/decryptSecret) | `POST /v2:decryptSecret` Decrypts the OAuth client secret used in account linking flows. |\n| [encryptSecret](/assistant/actions/api/reference/rest/v2/TopLevel/encryptSecret) | `POST /v2:encryptSecret` Encrypts the OAuth client secret used in account linking flows. |\n| [setWebAndAppActivityControl](/assistant/actions/api/reference/rest/v2/TopLevel/setWebAndAppActivityControl) | `POST /v2:setWebAndAppActivityControl` Sets the Web \\& App Activity control on a service account. |\n\nREST Resource: [v2.projects](/assistant/actions/api/reference/rest/v2/projects)\n-------------------------------------------------------------------------------\n\n| Methods ||\n|--------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|\n| [matchIntents](/assistant/actions/api/reference/rest/v2/projects/matchIntents) | `POST /v2/{project=projects/*}:matchIntents` Finds the intents that match a given query. |\n| [sendInteraction](/assistant/actions/api/reference/rest/v2/projects/sendInteraction) | `POST /v2/{project=projects/*}:sendInteraction` Plays one round of the conversation. |\n\nREST Resource: [v2.projects.draft](/assistant/actions/api/reference/rest/v2/projects.draft)\n-------------------------------------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------------------------|------------------------------------------------------------------------------------------|\n| [read](/assistant/actions/api/reference/rest/v2/projects.draft/read) | `POST /v2/{name=projects/*/draft}:read` Reads the entire content of the project draft. |\n| [write](/assistant/actions/api/reference/rest/v2/projects.draft/write) | `POST /v2/{parent=projects/*}/draft:write` Updates the project draft based on the model. |\n\nREST Resource: [v2.projects.preview](/assistant/actions/api/reference/rest/v2/projects.preview)\n-----------------------------------------------------------------------------------------------\n\n| Methods ||\n|--------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|\n| [write](/assistant/actions/api/reference/rest/v2/projects.preview/write) | `POST /v2/{parent=projects/*}/preview:write` Updates the user's project preview based on the model. |\n\nREST Resource: [v2.projects.releaseChannels](/assistant/actions/api/reference/rest/v2/projects.releaseChannels)\n---------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|--------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|\n| [list](/assistant/actions/api/reference/rest/v2/projects.releaseChannels/list) | `GET /v2/{parent=projects/*}/releaseChannels` Lists all release channels and corresponding versions, if any. |\n\nREST Resource: [v2.projects.versions](/assistant/actions/api/reference/rest/v2/projects.versions)\n-------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [create](/assistant/actions/api/reference/rest/v2/projects.versions/create) | `POST /v2/{parent=projects/*}/versions:create` Creates a project version based on the model and triggers deployment to the specified release channel, if specified. |\n| [list](/assistant/actions/api/reference/rest/v2/projects.versions/list) | `GET /v2/{parent=projects/*}/versions` Lists all versions and their current states. |\n| [read](/assistant/actions/api/reference/rest/v2/projects.versions/read) | `POST /v2/{name=projects/*/versions/*}:read` Reads the entire content of a project version. |\n\nREST Resource: [v2.sampleProjects](/assistant/actions/api/reference/rest/v2/sampleProjects)\n-------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------|---------------------------------------------------------------------------------------|\n| [list](/assistant/actions/api/reference/rest/v2/sampleProjects/list) | `GET /v2/sampleProjects` Lists all the sample projects supported by the gactions CLI. |"]]