Overview
SDK configuration options allow you to customize Moss behavior directly in your application code. These settings override Dashboard defaults when specified, giving developers fine-grained control per deployment, environment, or user segment.Priority reminder: SDK configuration options take precedence over
Dashboard settings. When you configure an option in code, it will override
the value set in the Dashboard. This allows developers to customize behavior
per-deployment while using Dashboard settings as defaults.
Required Options
These options must be provided in theAgentProvider config:
Common Options
These options are frequently used to customize SDK behavior:Language
Set the UI language for the SDK interface.undefined (auto-detects browser language)
Vision
Enable or disable screenshot analysis capabilities.true (from Dashboard)
Session Recording
Control whether user sessions are recorded for replay.true (from Dashboard)
Screen History
Include user action history in AI context.true (from Dashboard)
Appearance
Customize the visual theme of the Moss assistant UI.Using Presets
Custom Appearance
Override specific properties by passing a partial object:Customizable Properties
Session Options
Configure session management behavior:Developer Options
Advanced settings for debugging and customization:Screenshot Mode
'fullpage'
Log Level
LogLevel.INFO
logLevel takes the LogLevel enum exported by the SDK, not a string. Each level includes everything more severe than itself (DEBUG shows everything, SILENT disables logging).
Debug Mode
false
Enables verbose logging and debug features for troubleshooting.
DOM Target Selector
'body'
CSS selector for the DOM element to observe. Change this to limit observation to a specific part of your page.
DOM Stability
Configure how the SDK waits for the page to stabilize:Complete TypeScript Interface
Here’s the full TypeScript interface for SDK configuration:Settings Not Available in SDK
The following settings can only be configured through the Dashboard:- AI Assistant Instructions - Custom instructions for the AI
- API Keys - Authentication credentials
- Domain Access Control - Allowed domains list
- Vector Store Configuration - RAG system settings
Next Steps
Examples
See complete configuration examples for different use cases
Dashboard Settings
Configure application defaults in the Dashboard