Configure your agent
Update instructions, models and tools, save a version, and select the version used by your embed.
Update a service agent's instructions, model and tools, then choose the version offered to end users. Saving configuration and selecting an embed version are separate actions. A pinned embed does not automatically adopt new configuration.
Prepare your agent
You need an existing service agent and an organization account authorized to manage it. Open Service agents → Select agent → Integration and configuration → Configuration in the Dashboard. UI labels below describe the current Chinese Dashboard.
For API access, obtain the public agent_… ID from a create or retrieve response. Set PRAXIS_API_BASE to your environment's API origin and PRAXIS_API_KEY to its organization API Key on your server. Keep the Key out of browser code. The example requires Node.js with native fetch and PRAXIS_AGENT set to the real public ID.
Update and save configuration
- In Instructions (指令), define the agent's role, answer scope and response when information is missing.
- In Model (模型), select an available model, such as
deepseek-flashwhen listed for your organization. - In Tools and authorization (工具与授权), enable tools and choose automatic execution or confirmation on every call. Configure MCP servers in MCP and credentials (MCP 与凭据). Tools must still authorize users on the server.
- Review changed groups in the bottom save bar and click Save (保存).
Expected: The configuration version increases. Reopening Instructions shows the saved text. Leaving with unsaved changes prompts you to handle them.
Save embed settings separately
Embed security policies, vault selection and embed version pinning can currently only be configured in the Dashboard.
In Configuration → Security (安全), select an available environment, add your website origin, and set token lifetime and budgets. Click Save security settings (保存安全设置). Lifetime inputs use minutes and budget inputs use US dollars. Do not paste API seconds or cents into these fields. See Secure your embed for origin rules.
For vaults, select them in MCP and credentials and click Save vaults (保存凭据库). Expected: Both saves display “已保存,不产生新版本” (saved without creating a version). These settings are separate from the configuration draft in the bottom save bar.
Select the embed version
Open Integration and configuration → Versions (版本). Click a version to compare it with its predecessor. Choose Set as embed version (设为嵌入版本) or Roll back to this version (回滚到此版本) and confirm. Check the Embedded (嵌入中) badge. Choose Unpin (取消固定) to follow the latest version again. Save a security policy first if none exists.
An explicit version in token issuance takes precedence over the pinned version. When omitted, issuance uses the pinned version, or the latest when unpinned. Existing tokens retain their version, including after rollback. Issue a new token and start a new session to verify a change.
Verify and continue
In Playground (试用调试), select the saved version and ask a question that distinguishes the new instructions from the old ones. Check the actual reply. Then obtain a new token in your host application, start a session, and confirm its version under Operations → Sessions. A loaded interface alone does not prove the new configuration is in use.
Service agents do not currently support per-message model switching, tool modes, voice input or per-end-user memory. Configuration's appearance section is a placeholder; use Customize appearance.
Next: Test your embed · Agent API · Cookbook