gcloud alpha dialogflow agent import

NAME
gcloud alpha dialogflow agent import - import a Dialogflow agent from a zip file
SYNOPSIS
gcloud alpha dialogflow agent import--source=SOURCE[--async][--replace-all][GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) Import a Dialogflow agent from a ZIP file and upload it tothe agent of the current project. By default, uploads new intents and entitytypes without deleting the existing ones. Intents and entity types with the samename are replaced with the new versions.
EXAMPLES
To import local filepath/to/agent.zip to the agent of the currentproject:
gcloudalphadialogflowagentimport--source="path/to/agent.zip"

To importagent.zip in Google Storage Bucketmybucketto the agent of the current project:

gcloudalphadialogflowagentimport--source="gs://mybucket/agent.zip"

To import local filepath/to/agent.zip to the agent of the currentproject and replace all existing resources in the agent:

gcloudalphadialogflowagentimport--source="path/to/agent.zip"--replace-all
REQUIRED FLAGS
--source=SOURCE
Path to a file or the URI to a Google Cloud Storage file containing the agent toimport. Note: A URI must start with "gs://".
OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
--replace-all
If true, replace the current agent version with a new one. All the intents andentity types in the older version will be deleted.
GCLOUD WIDE FLAGS
These flags are available to all commands:--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.

Run$gcloud help for details.

API REFERENCE
This command uses thedialogflow/v2 API. The full documentation forthis API can be found at:https://cloud.google.com/dialogflow/
NOTES
This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.