Overview
The AI Chat SDK provides extensive configuration options to control features, customize appearance, and integrate with your data sources. All configuration is passed during SDK initialization.Initialization signature
Required parameters
apiKey
Type:string
Your API key for authentication with the chat backend.
Contact [email protected] to receive your API key.
Configuration options
enableDebug
Enable detailed console logging for debugging.Debug mode should be disabled in production builds to reduce console noise and improve performance.
Chat configuration
Configure the chat panel behavior, styling, and content usingchatConfig.
isFloating
Applies floating panel styles (border, border-radius, box shadow) when enabled. Set tofalse for a flat/embedded appearance.
usePageContext
When enabled, the AI can reference and respond based on what the user is currently viewing on the page.messageLimitPerThread
Maximum number of messages per conversation thread.content
Customize text content displayed in the chat interface.assistant
Configure the AI assistant’s identity.brand
Configure your brand identity.styling
Configure colors and fonts. See the Customization guide for details.layout
Configure the chat panel’s position and size. See Layout configuration below.Badge configuration
Configure the floating badge entry point usingbadgeConfig.
allowExpand
Whether the badge can expand on hover to show prompts.autoCollapse
Whether the badge automatically collapses after a delay.content
Customize badge text content.Inline configuration
Configure the inline input entry point usinginlineConfig.
layout (inline)
For inline rendering, you must specify a container selector.content
Customize inline input text.Layout configuration
Control positioning and sizing for chat panel and badge.Position
Size
Common layout examples
- Floating window
- Bottom panel

