Skip to content

Export

Usage

You can find the export functionality within the cxcli agent export subcommand. You can read the documentation about this command here.

Exported file format

You can export your agent in blob or json format. When you choose json format, the output file is going to be a zip file.

Example

Here is a simple example of the cxcli agent export command:

cxcli agent export test-agent --project-id test-cx-346408 --location-id us-central1 --export-format blob

The above command will give you output similar to the following:

$ cxcli agent export test-agent --project-id test-cx-346408 --location-id us-central1 --export-format json --output-file agent.zip
INFO Agent exported to file: agent.zip

are you running this command in a CI/CD pipeline?

If this is the case, we recommend that you set the --output-format parameter to json.

If you want to learn more about Dialogflow CX exports, refer to the official documentation.