You can export and import agent applications:
- Open the Gemini Enterprise for CX console.
- Select your project. The list of agent applications for your project are shown.
- Click the context menu for your application, then select import or export.
Environment file
When you export an agent application,
a file named environment.json is included
in the root directory of the downloaded archive.
This file helps you manage environment-specific settings for your application,
such as Cloud Storage buckets,
service endpoints, and data store URIs.
Utilizing this file for exports and imports has the following advantages:
- Improved Portability: Transfer agent applications between different projects or environments (for example, development to production) by modifying a single file.
- Centralized Configuration: All key external dependencies are listed in one place, simplifying management and providing a clear overview.
- Reduced Errors: Minimizes the risk of mistakes compared to manually editing settings across multiple resource files.
- Automation-Friendly: The JSON format lets you to programmatically update configurations using scripts as part of a CI/CD pipeline.
To update environment-specific settings:
- Export: Download the exported agent application and extract it.
- Modify:
Open the
environment.jsonfile located in the root directory. Modify the values for the dependencies to match your target environment's settings. - Import:
Compress the entire directory,
including the modified
environment.jsonfile, into a new zip archive. Import this new archive into the target environment. The system applies the updated values fromenvironment.json.
Environment file details
The environment.json file acts as a central manifest
for external dependencies that might change between different environments
(for example, development, testing, and production).
When you export an agent application,
the system identifies environment-specific fields
within the application's resources.
Instead of hardcoding these values,
the system extracts them and places them in the environment.json file.
The values are organized by the resource type and name.
In the original resource manifest files,
these extracted values are replaced with a placeholder variable, $env_var.
When you import the agent application,
the system reads the environment.json file.
It finds the $env_var placeholders in the resource manifests
and substitutes them with the corresponding values
from the environment.json file.
This process configures the application for the new environment.
The following fields are managed in the environment.json file:
ApiKeyConfig.key_nameApiKeyConfig.api_key_secret_versionAudioRecordingConfig.gcs_bucketBoostSpecs.data_storesConnectorTool.connectionDataStore.nameEngineSource.engineFileSearchTool.file_corpusOAuthConfig.client_secret_versionOAuthConfig.token_endpointOpenApiToolset.url(Automatically extracted fromOpenApiToolset.open_api_schema)ServiceAccountAuthConfig.service_accountVertexAiRagRetrievalTool.RagResource.rag_corpusVertexAiRagRetrievalTool.RagResource.rag_file_ids