Skip to content

Configure and install a Web Widget

Enter one host per line under Allowed Domains, without a protocol or path. For example:

example.com
www.example.com

The widget refuses to load on a host that is not listed. This prevents copied embed code from being used on an unauthorized site.

Configure the widget title, welcome message, input placeholder, greeting popover, greeting delay, reply sound, supported-device vibration, primary color, and branding options available to the workspace.

The title falls back to the assistant name when left empty. Other empty text fields use the widget’s built-in localized copy.

Create an override for a locale and fill only the fields that differ from the default. Doublewire first looks for an exact locale, then the primary language, then the channel defaults and built-in localized copy.

Language selection changes widget controls and configured overrides. It does not automatically translate your assistant prompt, forms, suggestions, or other workspace-authored text.

When channel branding controls are available, choose workspace branding, Doublewire branding, custom branding, or no attribution. A custom mode requires a brand name and can include a brand URL.

Serve the website over HTTPS and use a browser that supports the Web Locks API. Localhost is supported for development. Without that browser support, the widget is unavailable and does not send messages.

Copy the production embed code from the channel and place it on the website. The essential form is:

<script
src="https://widget.doublewire.ai/embed.js"
data-channel-id="CHANNEL_ID">
</script>

Use optional attributes only when the website needs to change a value while loading the widget. On a single-page website, keep the current reference ID updated after navigation.

Anonymous visitors keep the same identity across pages opened at the same time in the same browser.

You can install the Chat Widget on its own or alongside a Feedback Widget. When using both, copy each widget’s embed code from its own channel and keep the corresponding channel ID. Neither widget requires the other to load.