Configuration Properties
Common Configuration Properties
Section titled “Common Configuration Properties”Localization
Section titled “Localization”To change the language, obtain a reference to the element and update the user property with a language code (e.g., da-DK for Danish).
Tip: Codes follow the BCP-47 syntax.
const search = document.querySelector('sitesage-search');search.user = { language: 'da-DK'};Single Page Applications (SPA)
Section titled “Single Page Applications (SPA)”If you are using a framework like React or Vue, adding the use_router attribute ensures that links clicked inside the chat use the browser’s history API instead of causing a full page reload.
List of General Configuration Properties
Section titled “List of General Configuration Properties”The following is a list of generally available configuration properties:
| Attribute | Type | Description |
|---|---|---|
client_id | string | (Required) Your SiteSage Client ID |
app_url | string | (Required) Your SiteSage App URL |
backend_url | string | (Required) Your SiteSage Backend URL |
use_router | boolean | If present, enables SPA-friendly navigation (popstate/pushState). |
disable_navigation | boolean | If present, disables the window navigation buttons. |
user | object | The user context for the chat. See User Context for more information. |