上传您的 Action 包 (Dialogflow)
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
创建 Action 软件包并部署其执行方式后,
你可以将 Action 软件包上传到 Actions 控制台。Actions 控制台
使用 Action 项目来为对话型 Action 和元数据(例如评价)分组
状态和显示名称。
创建项目
- 转到 Actions 控制台。
- 点击 New Project,输入项目名称,然后点击 Create Project。
- 在更多选项部分中,点击 Actions SDK。
- 在显示的模态窗口中,记下或保存
gactions
命令
。您将使用与下方类似的命令上传您的 Action 包。
- 点击 OK 完成项目的创建。
现在,您的项目已创建完毕,您可以使用其项目 ID 引用它了。
使用 gactions 上传操作包
Actions 控制台提供的 gactions
命令包含占位符
值。接收者
从终端上传 Action 软件包,运行以下命令:
将 PACKAGE_NAME
和 PROJECT_ID
替换为
项目:
gactions update --action_package PACKAGE_NAME --project PROJECT_ID
在上述命令中,软件包名称是 Actions 软件包的文件名
.JSON
文件(包括文件扩展名)。您可以在以下位置获取项目 ID:
Actions 控制台中的项目设置页面。
有关操作软件包本身的参考信息,请参阅
操作软件包参考文档。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):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)."]]