Base Settings
Review the basic configuration settings for our widgets.
The base configuration provides core settings for all Inkeep widgets. These settings control authentication, branding, theming, and general behavior.
Basic Configuration
Configuration Options
Core Settings
Essential configuration options for authentication, branding, and basic widget setup. These settings form the foundation of your Inkeep integration.
Each setting serves a specific purpose in customizing the widget behavior:
Option | Type | Required | Description |
---|---|---|---|
env | 'production' | 'development' | No | Environment setting (defaults to 'production') |
apiKey | string | Yes | Your Inkeep API key |
organizationDisplayName | string | No | Display name for your organization |
primaryBrandColor | string | Yes | Primary brand color (hex code) |
aiApiBaseUrl | string | No | Custom base URL for API endpoints |
analyticsApiBaseUrl | string | No | Custom base URL for analytics endpoints |
shadowHost | HTMLElement | null | No | Reference to shadow DOM host element |
rootElement | HTMLElement | null | No | Reference to root mounting element |
shouldBypassCaptcha | boolean | No | Bypass captcha challenge (server-side API only) |
tags | string[] | No | Custom tags for widget identification |
prism | Prism | No | Instance of Prism for syntax highlighting. You can add support for additional languages by importing them from prismjs and passing in the Prism instance |
User Properties
Configure user-specific information for personalization, tracking, and authentication. This allows you to identify users and provide personalized experiences.
Property | Type | Required | Description |
---|---|---|---|
userProperties | UserProperties | No | User identification and metadata |
userAuthToken | string | No | Authentication token for the user |
Privacy Preferences
Control analytics and cookie preferences for tracking user interactions with the widget.
Property | Type | Required | Description |
---|---|---|---|
privacyPreferences | PrivacyPreferences | No | Privacy preferences configuration |
Event Handling
Configure callbacks for tracking and processing widget events. This allows you to integrate with your own analytics or monitoring systems.
Property | Type | Required | Description |
---|---|---|---|
onEvent | (event: InkeepCallbackEvent) => void | No | Event processing callback function |
You can see the Analytics guide for more information.
Color Mode
Synchronize the widget's appearance with your application's theme. This enables seamless dark/light mode integration.
Property | Type | Required | Description |
---|---|---|---|
colorMode | ColorMode | No | Theme synchronization configuration |
Theme Customization
Configure advanced styling and branding options for the widget. This includes colors, styles, and custom CSS.
Property | Type | Required | Description |
---|---|---|---|
theme | UserTheme | No | Theme customization settings |
You can see the Theme Customization guide for more information.
Custom Icons
Configure custom icons for various widget elements. You can use built-in icons from popular icon libraries or provide custom SVG URLs.
Property | Type | Required | Description |
---|---|---|---|
customIcons | CustomIconMap | No | Custom icon configurations |
You can see the Custom Icons guide for more information.
URL Parameters
Configure URL parameters that will be automatically appended to all links within the widget. This is useful for tracking and maintaining context across page navigations.
Property | Type | Required | Description |
---|---|---|---|
urlQueryParamsToAppend | object | No | URL parameters to append to links |
Source Transformation
See the Source Transformation guide for more information on how to customize how source information is displayed in the search and chat results.
Custom Filters
See the Search and Chat Filters guide for more information on how to use filters to dynamically filter search and chat results.