How the embeddable chat widget is styled, sandboxed, previewed, and securely configured so it fits customer sites while remaining safe and performant.
The widget is the customer-facing interface — the chat bubble that lives on your customers' websites or inside their products. It needs to look like it belongs there: matching their brand colors, fonts, and style. It also needs to be secure: embedded on customer sites means exposure to the open internet, so the widget must be hardened against misuse and manipulation. This deep dive covers how the widget is configured, how customizations are validated and applied, and how you can preview changes safely before they go live.
For most of your customers' end users, the widget *is* your product. It's the surface they interact with. How it looks, how it loads, and how it behaves shapes their entire perception of the AI assistant.
An administrator configures the widget through the admin panel: choosing colors, fonts, layout variants (compact, full-screen, side drawer), and default messages. Every configuration option is validated by the server before it's saved:
- Colors are checked for accessibility (sufficient contrast between text and background)
- Custom CSS is checked against a safe list of allowed properties (preventing malicious styling)
- Localized strings are checked for length limits to prevent layout breakage
Before going live, administrators can open a sandboxed preview — a safe, isolated environment where the widget renders exactly as it will appear on a real customer site. This preview:
- Uses real configuration data, so what you see is exactly what customers will see
- Is completely isolated from production — nothing in the preview affects live users
- Updates in real time as you adjust settings
The embedding process is designed to be simple and secure:
If a new configuration causes problems, rolling back is immediate. An administrator can revert to any previous configuration version from the dashboard, and the change takes effect within seconds — no deployment needed.
The team is building:
Once live, your customers will be able to confidently customize their widget, preview the results before launch, and trust that the validation system has their back if something doesn't look right.