Skip to main content

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:

Environment Management
Environment Management

2. Reference Variablesโ€‹

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

Prompt Referencing Environment Variables
Prompt Referencing Environment Variables

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.

Publish with Bound Environment
Publish with Bound Environment

4. Manually Switch Environments for Testingโ€‹

During development or debugging, flexibly select environments to simulate behavior differences across scenarios.

Manage Environment Variables
Manage Environment Variables

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!