對話動作已於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
上傳動作套件 (Dialogflow)
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
建立 Action 套件並部署執行要求後,
你可以將動作套件上傳至 Actions 主控台Actions 主控台
這項動作專案會使用動作專案,將對話動作與中繼資料 (例如評論) 分門別類
「Google 助理」目錄中的狀態和顯示名稱
建立專案
- 前往動作控制台。
- 按一下「New Project」、輸入專案名稱,然後點選「建立專案」。
- 在「更多選項」部分中,按一下「動作 SDK」。
- 在出現的互動視窗中,寫下或儲存
gactions
指令
或更新提示您將使用類似下方的指令來上傳 Action 套件。
- 按一下「OK」完成專案建立程序。
專案建立完成後,您可以使用專案的 ID 參照專案。
使用 gactions 上傳 Action 套件
Actions 主控台提供的 gactions
指令包含預留位置
動作套件的套件名稱和專案 ID 的值。目的地:
從終端機上傳 Action 套件,然後執行下列指令。
將 PACKAGE_NAME
和 PROJECT_ID
替換為以下項目的相關值:
專案:
gactions update --action_package PACKAGE_NAME --project PROJECT_ID
在上述指令中,套件名稱即為 Actions 套件的檔案名稱
.JSON
檔案 (包括副檔名)。您可以在
Actions 控制台中的「專案設定」頁面。
如需動作套件本身的參考資訊,請參閱
動作套件參考資料。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eAfter creating and deploying your Action package and fulfillment, you need to upload it to the Actions console using an Action project for organization and management.\u003c/p\u003e\n"],["\u003cp\u003eTo begin, create a new Actions SDK project in the Actions console, noting the provided \u003ccode\u003egactions\u003c/code\u003e command for later use.\u003c/p\u003e\n"],["\u003cp\u003eUpload your Action package using the \u003ccode\u003egactions\u003c/code\u003e command, replacing placeholders with your package name and project ID, found in the console.\u003c/p\u003e\n"]]],[],null,["# Upload your Action package (Dialogflow)\n\nOnce you [create your Action package](/assistant/df-asdk/actions-sdk/define-actions) and [deploy its fulfillment](/assistant/df-asdk/deploy-fulfillment),\nyou can upload your Action package to the Actions console. The Actions console\nuses Action projects to group your Conversational Action with metadata, like its review\nstatus and display name in the Assistant directory.\n\nCreate a project\n----------------\n\n1. Go to the [Actions console](//console.actions.google.com/).\n2. Click **New Project** , enter name for the project, and click **Create Project**.\n3. In the **More options** section, click **Actions SDK**.\n4. In the modal window that appears, write down or save the `gactions` command provided. You'll use a command similar to this to upload your Action package.\n5. Click **OK** to finish creating your project.\n\nNow that your project is created, you can reference it using its project ID.\n\nUpload Action package using gactions\n------------------------------------\n\nThe `gactions` command provided by the Actions console contains placeholder\nvalues for the package name of your Action package and for your project ID. To\nupload your Action package from the terminal, run the following command,\nreplacing `PACKAGE_NAME` and `PROJECT_ID` with the relevant values for your\nproject: \n\n```\ngactions update --action_package PACKAGE_NAME --project PROJECT_ID\n```\n\nIn the above command, the package name is the file name for your Actions package\n`.JSON` file (including the file extension). You can get your project ID on the\n**Project settings** page in the Actions console.\n\nFor reference information about the Action package itself, see the\n[Action package reference](/assistant/df-asdk/reference/action-package/rest/Shared.Types/ActionPackage)."]]