Skip to content

Configuration reference

Every knob that controls the widget, in one place. Each setting is either:

  • Dashboard — served from the server via /api/project/config/. Change it in the dashboard; no app redeploy needed.
  • Host — provided by your app when it mounts the SDK (per-session identity, JWT, context).
  • Both — has a server value AND a host override. See Precedence below.

Identity & session Host

Set these when you mount the SDK — they identify the end user and the project.

FieldTypeDefaultDescription
projectSecretKeystring (UUID)— (required)Your project’s public key from the dashboard. Safe to ship in the client.
userIDstring— (required)Stable identifier for the end user. Drives chat-history scoping and identity. Use a per-account id when signed in, a device-persistent id for guests.
userIdSignaturestring?nullHMAC-SHA256 of userID keyed by the project’s identity_secret, computed by your backend. Required when the project has identity verification on. See Identity verification.
userContextmap?nullFree-form facts about the user (Pro state, last-viewed item, traits). Forwarded per turn under user_context; skipped when null/empty. Backend caps the serialized size at 8 KB.
authTokenstring?nullThe end user’s JWT, forwarded under user_auth_token so authenticated downstream tools attribute calls correctly. Skipped when null/empty.
currentLocalestring?device / project defaultPins the conversation language. When null the SDK auto-detects the device locale (if the project supports it), else uses default_locale.
isPreviewModeboolfalseSkips all network calls and renders purely from the host config. Used by the dashboard live preview.
isReadOnlyboolfalseDisables the composer — a transcript/read-only surface.

Identity & content Dashboard

FieldServer keyTypeDefaultDescription
namenameLocalizedText—Bot display name, per-locale. Falls back to “Assistant”.
welcomeMessagewelcome_messageLocalizedText—First message shown, per-locale.
systemInstructionssystem_instructionLocalizedText—The bot’s persona/system prompt (server-side; not rendered).
avataravatarstring?nullBot avatar — URL, data: URI, or base64. Falls back to initials. The header avatar always renders; showAvatar only gates the per-message avatar.
defaultLocaledefault_localestringenProject’s default language.
supportedLocalessupported_localesstring[]['en']Locales that have custom content. The bot can still converse in all 46 SDK languages — this only governs curated content.

Appearance & theming Dashboard

Full details in Appearance & theming.

FieldServer keyTypeDefaultDescription
colorcolorstring? (hex)null → inheritPrimary/accent colour (header rule, send button, FAB, typing dots). null = “Automatic” → inherits the host app’s theme colour.
fontFamilyfont_familystringRobotoGoogle Font applied to bot + visitor messages.
showAvatarshow_avatarbooltrueShow the avatar circle next to each bot message. When off, bubbles grow a small tail instead. Header avatar is unaffected.
hideBarsOnScrollhide_bars_on_scrollboolfalseAuto-hide the header + input bars while scrolling up through history; they slide back when scrolling toward the newest message.
chatAppearancechat_appearanceobject?nullPer-tenant light-mode chat-surface palette (see below). Null → SDK/Material defaults.
chatAppearanceDarkchat_appearance_darkobject?nullDark-mode counterpart.
showThemeToggleshow_theme_togglebooltrueShow the light/dark switch in the more-options menu.
defaultThemeModedefault_theme_modelight|dark|systemsystemMode the chat opens in before the visitor overrides it.

chatAppearance / chatAppearanceDark object

Each field is a hex string; any left unset falls through to the Material 3 default.

FieldServer keyDescription
surfaceColorsurface_colorBackground behind the message list.
botBubbleColorbot_bubble_colorBot message bubble background.
userBubbleColoruser_bubble_colorVisitor message bubble background.
botTextColorbot_text_colorText inside bot bubbles.
userTextColoruser_text_colorText inside visitor bubbles.

Feature toggles Both

AND-merged — either the dashboard or the host can turn any of these off.

FieldServer keyTypeDefaultDescription
enableUserExportenable_user_exportbooltrue”Export chat” item in the more-options menu (downloads a transcript .zip).
enableClearHistoryenable_clear_historybooltrue”Clear chat history” menu item.
enableFileAttachenable_file_attachbooltruePaperclip image-attach button in the composer.
messageReportingEnabledmessage_reporting_enabledbooltrueLong-press “Good/Bad response” reporting on bot messages (App Store UGC baseline).

Localization Dashboard

See Localization.

FieldServer keyTypeDefaultDescription
dynamicLanguageEnableddynamic_language_enabledbooltrueMaster switch: exposes the manual language picker and the bot’s live change_language tool.
languageSwitchAutoDetectlanguage_switch_auto_detectbooltrueWhen on, the bot may switch language proactively if the visitor writes in another supported language (not only on explicit request).

AI disclosure & compliance Dashboard

EU AI Act Art. 50. See AI disclosure & compliance.

FieldServer keyTypeDefaultDescription
aiDisclosureEnabledai_disclosure_enabledbooltrueShow the “You’re chatting with an AI” notice.
aiDisclosureTextai_disclosure_textLocalizedText?nullCustom per-locale disclosure text. Null → SDK default string.
aiDisclosureRequireAckai_disclosure_require_ackbooltrue*Require a one-time “Got it” acknowledgement. Once acknowledged it’s remembered per project and collapses to a small “AI” chip.
aiDataReuseNoticeai_data_reuse_noticeboolfalseShow the extra “chats may be used to improve this service” line.
aiInfoUrlai_info_urlstring?null”Learn more” → an About-AI page.
privacyUrlprivacy_urlstring?nullPrivacy link; used as the “Learn more” fallback when aiInfoUrl is unset.

Sub-objects

  • FAB configuration (fab_configuration) — web/embed launcher button. See FAB configuration.
  • Sound configuration (sound_configuration) — per-event audio + volume. See Sound configuration.

Security keys (server-only)

These are never sent to the browser — they live on your backend and appear in the dashboard’s Data & Privacy section only.

KeyPurpose
server_api_keyAdmin key for /api/server/* (user data export/delete).
identity_secretHMAC key your backend signs userID with. See Identity verification.
identity_verification_requiredWhen true, /api/chat/* rejects requests without a valid signature.