Widget
Embeddable Ultron chat widget. A single static surface that customers drop into their own websites. Frontend-only; every server-side concern (auth, agent routing, tool calls) is delegated to the agent runtime worker. Hosted as a Pages project, no functions required.
Overview
- Surface
ultron-widget(Pages project)- Production URL
ultron-widget.pages.dev- Custom domain
- widget.51ultron.com (planned)
- Functions
- None. Static assets only.
- Backend
- Delegates to ultron-agent-runtime
The widget is the public face of "talk to my AI". A workspace owner publishes an agent, copies a one-line script tag plus a data attribute, and pastes it into their site. The widget loads, mounts a chat bubble in the corner, and routes every message through the agent runtime against the configured agent.
Surface shape
Embedding the widget
| data attribute | Required | Values |
|---|---|---|
| data-ultron-agent | yes | ag_<workspace>_<slug>. Published agent reference. |
| data-ultron-position | no | bottom-right | bottom-left | top-right | top-left |
| data-ultron-theme | no | auto | light | dark |
| data-ultron-accent | no | Hex color for the launcher dot |
| data-ultron-greeting | no | Optional override of the agent's default greeting |
Auth and isolation
The widget never sees workspace credentials. It carries only the public agent reference, which the agent runtime worker resolves to a published-config snapshot (tools allowed, scopes, model). Per-visitor session is identified by a cookie scoped to widget.51ultron.com; cross-site tracking is impossible by construction.