Skip to content

Configuration Properties

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'
};

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.

The following is a list of generally available configuration properties:

AttributeTypeDescription
client_idstring(Required) Your SiteSage Client ID
app_urlstring(Required) Your SiteSage App URL
backend_urlstring(Required) Your SiteSage Backend URL
use_routerbooleanIf present, enables SPA-friendly navigation (popstate/pushState).
disable_navigationbooleanIf present, disables the window navigation buttons.
userobjectThe user context for the chat. See User Context for more information.