Website avatars & embed
Publish an IAMX character on a website, select one of eight templates, preview its size and copy the current widget snippet.
Before you start
Finish the character in IAMX Studio first: its look, voice and knowledge. Try it with Test conversation, either from the Characters page or from the chat button under the setting groups on the right of the character editor. Then press Save in the editor toolbar.
A website can only show a character that visitors are allowed to reach. Its visibility must be Unlisted or Public. For a Private character, Live preview and Copy website code stay disabled and the studio asks you to change the visibility first, because a Private character cannot accept visitors.
Publish a website widget
- Publish the character
Press Publish in the editor toolbar. It saves your edits, publishes the saved Studio scene and then publishes the character. A Private character becomes Unlisted; a Public or Unlisted character keeps its visibility.
- Open Channels › Publish
Choose Channels in the right dock. Its first tab, Publish, holds the Website Templates card.
- Choose a template
Pick one of the eight templates and check it in the layout preview for Desktop and Mobile. Choose Live preview to open the real, published assistant in the bottom-right corner of the page; Stop preview closes it. Live preview conversations use your plan’s quota.
- Adjust it
Set the Widget size (Compact, Balanced or Comfortable, or Adjust freely), the Accent color, Open on desktop, and the Speech bubble that appears beside the minimized launcher.
- Copy the code
Under Add it to your website, choose Copy website code. Paste the script before the closing
</body>tag, once per page or once in your site’s shared layout. Your choices are already in the code.
The copied code is a single line. Here it is spread over several lines for reading:
<script src="https://iamxlive.com/iamx-widget.js"
data-character="YOUR_CHARACTER_ID"
data-template="round"
data-size="balanced"
data-accent="#ff7152"
data-open="minimized"
defer></script>
| Template name | Code value | What visitors see |
|---|---|---|
| Floating Companion | floating | Your transparent character above a slim message bar. Needs a 3D GLB character. |
| Portrait Bubble | round | A circular portrait with the message bar underneath. |
| Portrait Card | square | A framed portrait with neatly grouped controls. |
| Scene Window | scene | Your character together with its saved environment. |
| Compact Guide | guide | A small character beside its reply and message bar. |
| Conversation Panel | chat | The avatar and the conversation history together. |
| Voice Companion | voice | A compact voice assistant with a text fallback. |
| Scene Concierge | concierge | A compact reception scene that visitors can expand. |
Every template sits in the bottom-right corner of the page.
Supported configuration
| Attribute | Values |
|---|---|
data-character | The character’s ID, shown in the Character ID card on the same tab. |
data-template | One of the eight code values above. |
data-size | compact, balanced or comfortable. |
data-size-percent | Optional, 80 to 140 (percent). Added once you pick a size or use Adjust freely. |
data-accent | The accent color as #rrggbb. |
data-open | desktop shows the character when the page loads on a computer; minimized starts with the launcher. On phones the widget always starts minimized. |
data-bubble / data-bubble-text | Optional. data-bubble="hidden" hides the speech bubble; data-bubble-text holds your own bubble text (plain text, up to 120 characters). Without either, the default greeting is shown. |
Change these in the studio and copy the code again rather than editing it by hand.
Publish the scene you tested
The toolbar Publish control saves and publishes the character together with its Studio scene: background, lighting, camera and character placement. The toolbar state Saved · Scene not published means your latest saved scene is not yet live on widgets and embeds; press Publish again. An existing Public character remains Public; publishing a Private character makes it Unlisted. Check the visibility on Channels › Publish before sharing.
To rehearse the real website embed before publishing, open Channels › Publish preview; Preview unsaved scene sends your unsaved scene changes only to that test. Earlier published scenes are listed under Channels › Versions & publishing. Website Experience uses its own Publish experience control.
True transparency and scene frames
The Floating Companion template renders a 3D GLB character without its scene background, so the host website shows through around it. The studio offers it only for characters that can be drawn that way. A LiveFace 2D portrait or a Pixel Streaming MetaHuman arrives as video with its own background; use a portrait or scene template for those.
Other ways to put the character on a page
The same Channels › Publish tab also has an HTML Embed (iframe) card, a one-line iframe that needs no API key for an Unlisted or Public character, and the Character ID, UE Plugin (Cloud Mode) and WebSocket (JavaScript) details for your own applications. See Where a character can live for the iframe options, kiosks and the shared live room.
Mobile audio and microphone
Use HTTPS. Browsers ask for microphone permission and may need a tap before audio can play. In the widget, a tap on the microphone starts hands-free mode and holding it is push-to-talk. Test both on the browsers your visitors use, including reopening the widget and returning from another app.
Troubleshooting
| Symptom | Check |
|---|---|
| Nothing appears | Confirm that the CMS allows scripts and that the script URL is https://iamxlive.com/iamx-widget.js. The older embed.js example is not the current loader. |
| Copy website code is disabled | The character is Private. Set its visibility to Unlisted or Public on Channels › Publish. |
| Character cannot load | Check the character’s look, its visibility and the network responses. A GLB needs a reachable model file. |
| Visitors see an older scene | The toolbar shows Saved · Scene not published. Press Publish, or Publish scene on the HTML Embed card. |
| Microphone or audio is blocked | Check HTTPS, the browser permission, a user interaction and the host page’s permission policy. |
| A frame is blocked | Review your Content Security Policy. Allow the IAMX script and frame origin, and the media origins used by your configuration. |
| Unexpected widget layout | Check other fixed elements and mobile viewport rules on the host website, then preview another size on Channels › Publish. |
Let the widget understand the website
In the character editor, open Scene & motion › Experience and its Site guide section to prepare the site map, cache visited pages, configure spoken help and keep the conversation going between pages. This is separate from choosing the widget’s template. Follow the website experience guide.
Next steps
The Channels & publishing guide covers every card on the Publish tab. The character editor guide covers scenes, animation and behavior. For rendering paths and limitations, see platform facts.
Maintained by IAMX. Updated .