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.
| Field | Type | Default | Description |
|---|---|---|---|
projectSecretKey | string (UUID) | — (required) | Your project’s public key from the dashboard. Safe to ship in the client. |
userID | string | — (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. |
userIdSignature | string? | null | HMAC-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. |
userContext | map? | null | Free-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. |
authToken | string? | null | The end user’s JWT, forwarded under user_auth_token so authenticated downstream tools attribute calls correctly. Skipped when null/empty. |
currentLocale | string? | device / project default | Pins the conversation language. When null the SDK auto-detects the device locale (if the project supports it), else uses default_locale. |
isPreviewMode | bool | false | Skips all network calls and renders purely from the host config. Used by the dashboard live preview. |
isReadOnly | bool | false | Disables the composer — a transcript/read-only surface. |
Identity & content Dashboard
| Field | Server key | Type | Default | Description |
|---|---|---|---|---|
name | name | LocalizedText | — | Bot display name, per-locale. Falls back to “Assistant”. |
welcomeMessage | welcome_message | LocalizedText | — | First message shown, per-locale. |
systemInstructions | system_instruction | LocalizedText | — | The bot’s persona/system prompt (server-side; not rendered). |
avatar | avatar | string? | null | Bot avatar — URL, data: URI, or base64. Falls back to initials. The header avatar always renders; showAvatar only gates the per-message avatar. |
defaultLocale | default_locale | string | en | Project’s default language. |
supportedLocales | supported_locales | string[] | ['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.
| Field | Server key | Type | Default | Description |
|---|---|---|---|---|
color | color | string? (hex) | null → inherit | Primary/accent colour (header rule, send button, FAB, typing dots). null = “Automatic” → inherits the host app’s theme colour. |
fontFamily | font_family | string | Roboto | Google Font applied to bot + visitor messages. |
showAvatar | show_avatar | bool | true | Show the avatar circle next to each bot message. When off, bubbles grow a small tail instead. Header avatar is unaffected. |
hideBarsOnScroll | hide_bars_on_scroll | bool | false | Auto-hide the header + input bars while scrolling up through history; they slide back when scrolling toward the newest message. |
chatAppearance | chat_appearance | object? | null | Per-tenant light-mode chat-surface palette (see below). Null → SDK/Material defaults. |
chatAppearanceDark | chat_appearance_dark | object? | null | Dark-mode counterpart. |
showThemeToggle | show_theme_toggle | bool | true | Show the light/dark switch in the more-options menu. |
defaultThemeMode | default_theme_mode | light|dark|system | system | Mode 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.
| Field | Server key | Description |
|---|---|---|
surfaceColor | surface_color | Background behind the message list. |
botBubbleColor | bot_bubble_color | Bot message bubble background. |
userBubbleColor | user_bubble_color | Visitor message bubble background. |
botTextColor | bot_text_color | Text inside bot bubbles. |
userTextColor | user_text_color | Text inside visitor bubbles. |
Feature toggles Both
AND-merged — either the dashboard or the host can turn any of these off.
| Field | Server key | Type | Default | Description |
|---|---|---|---|---|
enableUserExport | enable_user_export | bool | true | ”Export chat” item in the more-options menu (downloads a transcript .zip). |
enableClearHistory | enable_clear_history | bool | true | ”Clear chat history” menu item. |
enableFileAttach | enable_file_attach | bool | true | Paperclip image-attach button in the composer. |
messageReportingEnabled | message_reporting_enabled | bool | true | Long-press “Good/Bad response” reporting on bot messages (App Store UGC baseline). |
Localization Dashboard
See Localization.
| Field | Server key | Type | Default | Description |
|---|---|---|---|---|
dynamicLanguageEnabled | dynamic_language_enabled | bool | true | Master switch: exposes the manual language picker and the bot’s live change_language tool. |
languageSwitchAutoDetect | language_switch_auto_detect | bool | true | When 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.
| Field | Server key | Type | Default | Description |
|---|---|---|---|---|
aiDisclosureEnabled | ai_disclosure_enabled | bool | true | Show the “You’re chatting with an AI” notice. |
aiDisclosureText | ai_disclosure_text | LocalizedText? | null | Custom per-locale disclosure text. Null → SDK default string. |
aiDisclosureRequireAck | ai_disclosure_require_ack | bool | true* | Require a one-time “Got it” acknowledgement. Once acknowledged it’s remembered per project and collapses to a small “AI” chip. |
aiDataReuseNotice | ai_data_reuse_notice | bool | false | Show the extra “chats may be used to improve this service” line. |
aiInfoUrl | ai_info_url | string? | null | ”Learn more” → an About-AI page. |
privacyUrl | privacy_url | string? | null | Privacy 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.
| Key | Purpose |
|---|---|
server_api_key | Admin key for /api/server/* (user data export/delete). |
identity_secret | HMAC key your backend signs userID with. See Identity verification. |
identity_verification_required | When true, /api/chat/* rejects requests without a valid signature. |