c.l.cladDocs

Configuration

Every widget configuration option — workspace, region, theming, launcher, and more.

You configure a widget either by assigning window.SupportChatSettings before the loader runs (the Quickstart snippet does exactly this) or by passing the same options to SupportChat.createChat(...):

// Option 1 — set settings, let the loader auto‑boot:
window.SupportChatSettings = {
  workspaceId: "{YOUR_WORKSPACE_ID}",
  widgetId: "{YOUR_WIDGET_ID}",
};
 
// Option 2 — create an instance programmatically:
const chat = SupportChat.createChat({
  workspaceId: "{YOUR_WORKSPACE_ID}",
  widgetId: "{YOUR_WIDGET_ID}",
});
OptionTypeDefaultDescription
workspaceIdstringRequired. Your workspace id (ws_…).
widgetIdstringWidget id (wgt_…). Optional only if the workspace has a default widget.
region"us" | "eu" | "au" | "custom""us"Data‑residency endpoints.
apiBasestringregion defaultAPI base URL (for custom/self‑host).
widgetBasestringregion defaultHosted widget UI base URL.
autoBootbooleantrueAuto‑boot an anonymous session on load.
autorenderbooleantrueMount the floating widget automatically.
localestringworkspace defaultBCP‑47 locale, e.g. "en-US".
themeThemeConfigworkspace defaultInitial theme overrides.
launcherLauncherConfigworkspace defaultLauncher position/label/badge.
privacyPrivacyConfig{}Initial cookie‑consent level.
debugbooleanfalseVerbose console diagnostics.

These options are read once when the session is created; network work happens on boot(). Ongoing changes are made with the runtime methods documented below (for example update() and setTheme()).