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. Set false to mount it yourself with render().
localestringworkspace defaultBCP‑47 locale, e.g. "en-US".
themeThemeConfigworkspace defaultInitial theme overrides. See Theming.
launcherLauncherConfigworkspace defaultLauncher position/label/badge/icon.
contentContentConfigbuilt‑in defaultsHeader title + home greeting/subtitle copy. See Header & branding.
privacyPrivacyConfig{}Initial cookie‑consent level.
featuresFeatureOverridesworkspace defaultShow/hide in‑iframe surfaces from code. See below.
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()).

Feature visibility overrides (features)

Each widget has server‑side feature flags (managed under Settings → Integrations → Web Widget, or via the admin API). The features option lets you override those from your install code for a given page/app — so you can toggle surfaces without round‑tripping through the dashboard:

window.SupportChatSettings = {
  workspaceId: "{YOUR_WORKSPACE_ID}",
  widgetId: "{YOUR_WIDGET_ID}",
  features: {
    knowledgeBase: false,  // hide the "Find an answer" search
    ticketForms: true,     // show the "Quick requests" form cards
    conversations: true,   // show the message entry point + recent list
  },
};
KeySurface
conversations"Send us a message" entry point + the conversation list (live chat + past conversations).
knowledgeBaseKnowledge base search on the home screen.
ticketForms"Quick requests" ticket‑form cards on the home screen.
aiAnswersAI answers / deflection (turns KB search into the AI assistant chat).
customLauncherUse a custom launcher in place of the default bubble.

Semantics: a value of false always hides the surface; a value of true shows it, but the data behind it stays gated server‑side, so a force‑enabled surface only appears when the feature is also enabled on the widget config (e.g. ticket forms must exist and be enabled to show). Leave a key unset to inherit the dashboard setting. These are also accepted on SupportChat.createChat({ features }).