Default embed
Every ready avatar has a default embed, enabled on any origin until restricted.- Open Avatars in the dashboard.
- Select a ready avatar, then Embed.
- Find the default embed under Current Embed.
Additional embeds
New Embed creates a second configuration for another site, environment, or campaign. It starts enabled, with domain restrictions off. To restrict it, open Advanced Options, turn on Domain Restrictions, and add origins under Allowed Website Origins. An origin is scheme, host, and optional port. Paths, query strings, fragments, and wildcards are rejected.
One origin per line. Each domain and subdomain is separate, so
https://acme.com does not allow https://www.acme.com.
With restrictions off, the embed works on any website, which is
convenient while testing. Restrict production embeds to the origins you
actually use.
Share link
The share link in the Embed panel opens a Protoface-hosted page. Nothing is added to your site.iframe embed
Copy Embed Code from the panel:Embed events
The<protoface-avatar> element dispatches browser events as the
conversation progresses, which you can use to update your own page. They
report state and do not control it, and the embed works whether or not
you listen.
detail carries the payload.
On transcripts,
role is either user or agent, and final is true
once that part of the transcript is complete. room identifies the
individual conversation.
Custom UI
Withprotoface-client, you own consent, controls, placement,
transcripts, errors, and status in your own layout. Start from the
conversations quickstart
and swap in the public ID from the Embed panel.
The frontend needs nothing beyond that ID. Embed settings and account
limits still apply server-side.

