When you use Wanxiaozhi to build a website, some features may need to call external services, such as data APIs, external models, or third-party backend services. Secret management centrally stores the secrets (API keys) that these external services require. Secrets are encrypted and never appear in your website code.
External services typically require a secret (API key) to verify your identity and permissions. You must first obtain the secret from the corresponding service provider. Wanxiaozhi does not provide the secrets for external services. After you describe your requirements in an AI conversation, Wanxiaozhi automatically generates the code required to implement the feature. If the feature needs to call an external service, the system automatically opens a secret configuration window and guides you through entering the secret from the service provider.
Wanxiaozhi provides the following two ways to configure and manage secrets:
Configure secrets in an AI conversation: When the feature that you describe requires an external service, the system automatically identifies the required secrets and opens a window that guides you through the configuration.
Manage secrets: Centrally view, add, and delete secrets on the secret management page in the console. Use this page when you already have the secret from the service provider or need to maintain configured secrets. Secrets that you configure in an AI conversation also appear on this page.
Configure secrets in an AI conversation
When you describe your website feature requirements in a conversation and implementing the feature requires calling an external service, the system automatically opens a secret input window and guides you through the secret configuration.
Example prompts: Describe your requirements in natural language without specifying implementation details. For example:
|
|
Based on your requirements, the window displays one or more sets of secret input fields. Each set contains three fields: Key, Name, and Value.
|
|
Notes:
If you continue the conversation without entering a Value, the card in the window becomes inactive (grayed out). You must enter the secret before you can continue.
After the secret is configured, the system uses it in subsequent conversations to call the corresponding third-party API.
Manage secrets
You can centrally manage all configured secrets on the secret management page in the Wanxiaozhi console.
Go to the secret management page: In the left-side navigation pane, choose Develop > Secret Management.
Features on the secret management page:
Search for secrets: Enter a keyword in the search box.
Add a secret: Click Add Secret, enter the following information in the window, and save the secret:
Key: Can contain only letters, digits, and underscores, and must start with a letter or an underscore.
Name: Enter a name in Chinese. You can edit this field.
Value: Enter the secret value. The value is masked as
****by default. Click the
icon to view it in plaintext.
When you save the secret, the system validates the Key format. If the Key does not meet the requirements, the secret cannot be saved.
View secrets: The secret list displays only the Key and Name, not the Value.
Delete a secret: Click Delete in the row of the secret that you want to delete. In the confirmation window, confirm the deletion.
ImportantBefore you delete a secret, make sure that no application is using it. This operation cannot be undone.
Secrets that the system creates by default cannot be deleted.
Editing is not supported: To change a secret, delete it and add it again.
For security, the plaintext value of a secret is no longer displayed after the secret is saved. Keep a secure backup of the original secret from the service provider in case you need to replace or reconfigure it later.

