Publishing and installing the widget

Open the Publish Widget dialog, switch websites on, copy the script tag and paste it before the closing body tag of your site.

Saving a tab stores your settings. Publishing is what puts the widget live and gives you the code to paste into your website.

The Publish Widget dialog

Click Publish (the button with the code-bracket icon) in the editor header. The Publish Widget dialog has three parts.

Websites

Websites (n) lists the domains the widget can run on, with a refresh icon on the right. Each row shows the site’s favicon, its domain, an ● Active badge and a toggle. Turn the toggle off to take the widget off that site without deleting anything. The domains come from the Allowed Domains box on the Setup tab. See Widget setup.

Add Widget to Your Website

This section carries the note “This AI Agent will be active on your widget” and a code box labelled Html with a Copy button. The snippet has this shape:

<!-- Zoie Widget -->
<script
  src="https://[your Zoie domain]/widget-bundle.js"
  data-widget-id="[your widget id]"
  defer>
</script>

Always copy the snippet from the dialog rather than retyping it. The src points at the widget bundle for your Zoie environment and data-widget-id identifies this exact widget. The defer attribute makes the script load after your page has finished parsing, so it does not slow the page down.

Installation Instructions

The dialog ends with three steps:

  1. Open your website builder or HTML editor.
  2. Paste the code just before the closing </body> tag.
  3. Save and publish your website.

Click Publish to confirm, or Cancel to close without changes. Once published, the badge in the editor header and in the widget list turns to a green Active.

Where to paste the code

  • Custom HTML sites. Add the snippet to the shared footer template so it loads on every page.
  • Site builders. Most builders have a custom code or footer code setting. Paste the snippet there and republish the site.
  • Tag managers. Add the snippet as a custom HTML tag that fires on all pages.

Whatever the method, the widget appears on every page where the script is present and the page’s domain is allowed.

Changing a live widget

Edits saved on any tab apply to the published widget. You do not need to paste a new snippet after changing colours, greetings or the agent. Only a Delete Widget or a new widget requires touching the site code again.