Actions API
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
บริการ RESTful สำหรับ Actions API
บริการ: actions.googleapis.com
หากต้องการเรียกใช้บริการนี้ เราขอแนะนำให้คุณใช้ไลบรารีของไคลเอ็นต์ที่ Google มีให้ หากแอปพลิเคชันจำเป็นต้องใช้ไลบรารีของคุณเองเพื่อเรียกใช้บริการนี้ ให้ใช้ข้อมูลต่อไปนี้เมื่อคุณส่งคำขอ API
เอกสารการค้นพบ
เอกสารการค้นพบเป็นข้อกำหนดที่เครื่องอ่านได้สำหรับการอธิบายและใช้งาน REST API ใช้สำหรับสร้างไลบรารีของไคลเอ็นต์, ปลั๊กอิน IDE และเครื่องมืออื่นๆ ที่โต้ตอบกับ Google APIs บริการเดียวอาจมีเอกสารการค้นพบได้หลายรายการ บริการนี้มีเอกสารการค้นพบต่อไปนี้
ปลายทางบริการ
ปลายทางของบริการคือ URL พื้นฐานที่ระบุที่อยู่เครือข่ายของบริการ API บริการเดียวอาจมีปลายทางบริการหลายรายการ บริการนี้มีปลายทางบริการต่อไปนี้และ URI ด้านล่างทั้งหมดจะเกี่ยวข้องกับปลายทางของบริการนี้
https://actions.googleapis.com
ทรัพยากร REST: v2
วิธีการ |
decryptSecret |
POST /v2:decryptSecret
ถอดรหัสรหัสลับไคลเอ็นต์ OAuth ที่ใช้ในขั้นตอนการลิงก์บัญชี |
encryptSecret |
POST /v2:encryptSecret
เข้ารหัสรหัสลับไคลเอ็นต์ OAuth ที่ใช้ในการลิงก์บัญชี |
setWebAndAppActivityControl |
POST /v2:setWebAndAppActivityControl
ตั้งค่าส่วนควบคุมกิจกรรมบนเว็บและแอปในบัญชีบริการ |
วิธีการ |
matchIntents |
POST /v2/{project=projects/*}:matchIntents
ค้นหา Intent ที่ตรงกับคำค้นหาที่ระบุ |
sendInteraction |
POST /v2/{project=projects/*}:sendInteraction
เล่นการสนทนา 1 รอบ |
วิธีการ |
read |
POST /v2/{name=projects/*/draft}:read
อ่านเนื้อหาทั้งหมดของแบบร่างโปรเจ็กต์ |
write |
POST /v2/{parent=projects/*}/draft:write
อัปเดตแบบร่างของโปรเจ็กต์โดยอิงตามโมเดล |
วิธีการ |
write |
POST /v2/{parent=projects/*}/preview:write
อัปเดตตัวอย่างโปรเจ็กต์ของผู้ใช้ตามโมเดล |
วิธีการ |
list |
GET /v2/{parent=projects/*}/releaseChannels
แสดงเวอร์ชันการเผยแพร่และเวอร์ชันที่เกี่ยวข้องทั้งหมด หากมี |
วิธีการ |
create |
POST /v2/{parent=projects/*}/versions:create
สร้างเวอร์ชันโปรเจ็กต์ตามโมเดลและทริกเกอร์การทำให้ใช้งานได้สำหรับเวอร์ชันการเผยแพร่ที่ระบุ (หากระบุ) |
list |
GET /v2/{parent=projects/*}/versions
แสดงเวอร์ชันทั้งหมดและสถานะปัจจุบัน |
read |
POST /v2/{name=projects/*/versions/*}:read
อ่านเนื้อหาทั้งหมดของเวอร์ชันโปรเจ็กต์ |
วิธีการ |
list |
GET /v2/sampleProjects
แสดงรายการโปรเจ็กต์ตัวอย่างทั้งหมดที่ Gactions CLI รองรับ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]