Skip to content

Widget quickstart

Embed a multilingual support chat on your website in minutes. Visitors write in their own language; your team answers from the Support inbox, and every message is translated automatically.

  1. In your workspace, open Settings → Web chat and enable the widget.
  2. Add each site origin that may load the widget under Allowed origins (exact scheme + host, e.g. https://example.com).
  3. Copy the embed snippet from the same screen and paste it just before the closing </body> tag.
<script
src="https://widget.rosettachat.app/widget.js"
data-site="wgt_your_public_site_key"
async
></script>

The loader injects a launcher button inside a Shadow DOM host (isolated from your page’s CSS) and an iframe that hosts the chat panel, served from the widget origin. That’s it — a visitor can open the launcher and start a conversation in their own language.

Everything except data-site is optional; server-side configuration (see Configuration & appearance) is the source of truth for theme and behavior, and these attributes are per-page overrides.

AttributeRequiredDescription
data-siteYour public site key (wgt_…), or a test key (wgt_test_…) for the sandbox.
data-theme-colorInstant launcher color before the panel resolves the site theme (hex).
data-positionright (default) or left.
data-languageForce the visitor UI language (BCP-47 primary subtag, e.g. ja). Defaults to the browser language.
data-identityA signed identity token — see Signed visitor identity.