Skip to content
WebChat AI
HomeFeaturesHow it worksIntegrationsPricingDocs
WebChat AI

Build intelligent AI assistants trained on your website content.

Connect with us

Product

  • Features
  • How it works
  • Integrations
  • Pricing
  • Security

Resources

  • Documentation
  • API reference

Legal

  • Privacy Policy
  • Terms of Service

© 2026 WebChat AI. All rights reserved.

Get Started
OverviewQuickstart
Knowledge sourcesFile uploadsRAG & grounding
EmbedCustomizationConfigurationTesting
ConversationsAnalytics & usage
API referenceSecurityTroubleshooting
Changelog

Ready to launch?

Get Started Free
DocsWidgetConfiguration

Widget Configuration Reference

Complete reference of all widget configuration properties, types, defaults, and API validation bounds.

Where settings are edited

All properties can be configured interactively from the dashboard Widget Builder, or programmatically via PATCH /api/websites/{id}/widget.

Theme & Typography

Theme & Typography options
OptionTypeDefaultDescription
theme'light' | 'dark' | 'auto''light'Base color mode. "auto" follows the visitor's operating system prefers-color-scheme.
theme_presetpreset id'' (classic)Curated palette preset id (11 options available). Empty string uses the custom classic palette.
primary_color#rrggbb (hex)#10A37FPrimary action color for the launcher icon, header, and send button.
accent_color#rrggbb (hex)#25D366Secondary accent color for badges and highlights.
font_size'sm' | 'md' | 'lg''md'Base font size inside the chat window (14px, 16px, or 18px).
dark_modebooleanfalseForce dark theme mode regardless of the visitor system setting.
font_familystring | nullnullFont family stack. Null uses system default. Accepts any of the 10 curated typography options.

Appearance & Identity

Appearance & Identity options
OptionTypeDefaultDescription
bot_namestring (max 60)'AI Assistant'Assistant name displayed in the top header and message bubbles.
bot_status_textstring (max 40)'Online'Presence indicator line under the bot name.
logo_urlhttps://... | nullnullBrand logo displayed in the widget header.
avatar_urlhttps://... | nullnullImage avatar URL displayed next to bot messages.
header_color#rrggbb | nullnullCustom header background color; null uses the theme preset default.
secondary_color#rrggbb | nullnullSecondary gradient color; null uses accent color.
background_color#rrggbb | nullnullChat window surface color; null uses theme default.
text_color#rrggbb | nullnullPrimary text color; null uses theme default.

Behavior & Engagement

Behavior & Engagement options
OptionTypeDefaultDescription
position'bottom-right' | 'bottom-left''bottom-right'Corner of the browser viewport where the launcher sits.
welcome_messagestring (max 500)'Hi! How can I help you today?'Greeting message displayed above the first visitor turn.
placeholderstring (max 120)'Type your message...'Input composer placeholder text.
suggested_questionsstring[] (max 5)[]Quick-prompt suggestion chips offered to new visitors (max 200 chars each).
brandingbooleantrueDisplay the "Powered by WebChat AI" attribution link in the footer.
auto_openbooleanfalseAutomatically open the chat window when a new visitor lands on the page.
enabledbooleantrueMaster toggle. When false, the widget does not render on host pages.

Dimensions & Layout

Dimensions & Layout options
OptionTypeDefaultDescription
widthCSS length (max 20)'400px'Chat window width (supports px, rem, vw). Enforces responsive mobile constraints.
heightCSS length (max 20)'640px'Chat window height (supports px, rem, vh).
border_radiusCSS length (max 20)'16px'Corner radius for the chat window container.
launcher_sizeCSS length (max 20)'56px'Diameter of the floating launcher action button.

Origin Security

Origin Security options
OptionTypeDefaultDescription
allowed_domainsstring[] (max 50)auto-seededHostnames permitted to embed this widget (e.g. "example.com", "*.example.com"). Unlisted origins receive 403.

Available theme preset IDs (11 total)

Curated color palettes bundling header, surface, bubble, and text tokens.

classicwhatsapp-classicios-nativeenterprise-slateocean-bluemidnight-darkemerald-supportpurple-aiminimal-whitesunsetmodern-gradient

Available typography options (10 total)

On-demand curated font families loaded securely via Google Fonts.

systeminterpoppinsnunitorobotoopen-sansmontserratlatoplayfair-displayspace-grotesk

Validation bounds & limits

Constraints enforced by the REST API.

  • bot_name: String between 1 and 60 characters.
  • bot_status_text: String up to 40 characters.
  • welcome_message: String up to 500 characters.
  • placeholder: String up to 120 characters.
  • suggested_questions: Array of up to 5 items; each question max 200 characters.
  • allowed_domains: Array of up to 50 hostname patterns.
  • logo_url and avatar_url: HTTPS URLs up to 2048 characters.
  • width, height, border_radius, launcher_size: Valid CSS lengths up to 20 characters.

Related documentation

Customization Guide

Visual overview of presets, typography, and palette overrides.

Read guide

Embed & Security Guide

How allowed_domains and CSP protect your widget.

Read guide

API Reference

Learn how to update widget configuration programmatically.

Read guide

PreviousCustomizationNext Testing

Ready to build?

Register a website and get a live assistant in minutes.

Get Started Free