對話動作已於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
Actions SDK
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Actions SDK 是一組開發人員工具,可用來為 Google 助理建構動作。
SDK 提供 Webhook 程式庫、用於定義動作專案的標準檔案結構定義,以及用於管理動作專案的 CLI,因此您可以將 Google 助理的建構動作整合至現有工作流程。
主要功能
動作專案檔案型設定
Actions SDK 使用新版動作建構工具對話模型,以檔案形式呈現對話模型的所有元件:意圖、類型、情境、提示。
透過動作專案檔案型設定,您可以使用所選的檔案版本管控系統 (例如 Git) 輕鬆追蹤動作版本。
進一步瞭解動作專案檔案型設定
用戶端程式庫
Actions SDK 隨附 Node.js 用戶端程式庫,可提供對話 Webhook 通訊協定的慣用介面。Google 助理使用 Webhook 通訊協定將使用者的要求傳達給動作,並接收執行這些要求的回應。
透過 Node.js 用戶端程式庫,您可以輕鬆實作許多常見的使用者流程,例如從語音查詢中擷取參數 (例如類別或其他類型的使用者偏好設定),以及為 Google 助理產生多模態表示法 (僅語音和語音和影像內容)。
開始使用 Node.js 用戶端程式庫
gactions 指令列介面
gactions CLI 會透過一組定義動作專案的設定檔管理專案生命週期,並提供可輕鬆支援 Google 助理更多動作的功能,例如本地化和帳戶連結。
透過 gactions CLI,您可以輕鬆執行許多常見的工作流程,例如匯入現有專案並開始運用特徵分支版本新增本地化內容。
開始使用 Gactions
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-01 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2023-12-01 (世界標準時間)。"],[[["The Actions SDK offers developer tools for creating Actions for Google Assistant, simplifying the integration process."],["It provides file-based project configuration, allowing version control and easier management of conversational models."],["Client libraries, including a Node.js library, facilitate communication with the Google Assistant via the Conversation Webhook Protocol."],["The gactions CLI manages project lifecycles, enabling features like localization and account linking for advanced Actions."]]],["The Actions SDK provides tools for developing Google Assistant Actions. It uses a file-based system for configuring intents, types, scenes, and prompts, allowing version control via tools like Git. A Node.js client library facilitates communication between the user's requests and the Action's response. The `gactions` CLI manages the project lifecycle, supporting localization and account linking, and enabling workflows like importing existing projects and working on feature branches.\n"]]