Overview
Define structured config forms and real-time agent settings.
The Configuration Builder allows builders to define JSON schemas that generate structured config forms. These forms let managers safely update settings—like opening hours or toggle flags—across environments.
How it works
Configuration Builder separates structure (schema) from values (data).
Tab | Purpose |
---|---|
Schema | Define what fields exist (like opening hours, toggles) |
Data | Fill in the environment-specific values |
The schema ensures consistent structure and validation. The data defines what the agent uses at runtime.
Step-by-step
1. Create a schema
In Configuration Builder → Schema, define the fields your manager should configure. For example:
- A text field for
opening_hours
- A toggle for
after_hours_enabled
- A validated phone number for
fallback_number
These fields are written in JSON Schema format. The schema drives the form layout in the next step.
2. Fill in data values
Environment tabs (Draft, Pre-release, Live) will let you enter the runtime values for each field. You can leave fields blank if optional.
3. Publish
Once published, your schema will appear in the Real Time Configuration tab. Managers can populate values for any of the environments:
- Draft and Sandbox
- Pre-release
- Live
4. (Optional) Add the read config in your functions
Use the conv.project_config() helper to read real-time values.
Best practices
Design schemas for clarity. Labels and descriptions help non-technical users.
Validate critical fields (like phone numbers) with regex.
Test behavior across all environments before deploying to Live.
Keep track of which flows and functions use which configuration fields.
What happens if the schema changes?
If the schema is edited in a way that invalidates existing data, the system will prevent publishing until all environments are valid again.
Can each environment have different values?
Yes. For example, you can test one phone number in pre-release while using a different one in live.
Need help? Contact platform-support@poly-ai.com.