Environment Variables
To further enhance the platform's flexibility and maintainability, the Xpert AI Multi-Agent Platform officially launches the Env Environment Management Function. With this feature, users can define multiple runtime environments within a workspace and configure environment variables for use in agents, workflows, and toolsets. It supports critical capabilities such as sensitive information isolation, configuration reuse, and environment separation.
๐งฉ Feature Highlightsโ
โ Multi-Environment Definition and Switchingโ
Each agent workspace supports creating multiple named environments (e.g., dev
, test
, prod
), enabling independent configuration management for different business stages or runtime needs.
โ Unified Environment Variable Managementโ
Each environment can define multiple key-value pair variables, accessible across the platform using the unified syntax {{env.variable_name}}
. These can be applied to agent model parameters, tool configurations, API calls, and more.
โ Global Injection Mechanismโ
Environment variables can be dynamically resolved and injected into:
- Agent configurations (e.g., prompts)
- Workflow node parameters (e.g., HTTP params)
- Toolset connection configurations (e.g., API Key)
โ Environment Binding for Digital Expert Publishingโ
When publishing a digital expert, you can bind a specific environment, which will automatically take effect during end-user interactions. This ensures digital experts use different prompts, APIs, or tool resources at various stages for consistent and controlled behavior.
โ Runtime Environment Selectionโ
When running or testing agents or workflow tasks, you can manually select an environment, and the platform will automatically load the corresponding variable set, improving testing efficiency and scenario flexibility.
๐ How to Useโ
1. Create an Environmentโ
Go to the workspace โ Click the โEnvโ tab โ Create an environment โ Define the variable set:
For example:

2. Reference Variablesโ
Use the {{env.variable_name}}
syntax in agent, workflow, or tool configurations. For example:

3. Bind Default Environment for Digital Expertโ
In the โDigital Expertโ publishing interface, select the default environment to bind. Once bound, all end-user conversation requests will run with that environmentโs variables, ensuring response consistency and security.

4. Manually Switch Environments for Testingโ
During development or debugging, flexibly select environments to simulate behavior differences across scenarios.

The release of the Env feature marks a significant step forward for the XpertAI platform in configuration management, security control, and enterprise-grade multi-scenario deployment capabilities. Try it now and build your exclusive AI system with greater professionalism!