Embed
Widget embed
Mint a widget token in the console, lock origins, then drop a single script tag into your product. Chat hits the same Run path as the API.
01
Mint
Create a widget config with an agent and allowed origins.
02
Embed
Load widget.js with the token on an allowlisted host.
03
Revoke
Rotate or revoke without redeploying the agent blueprint.
Script tag
<script
src="http://127.0.0.1:8090/widget.js"
data-token="wgt_…"></script>Origins Requests from hosts outside the allowlist are rejected. Prefer exact origins over wildcards in production.