Skip to main content
The widget reads window.OsviChatConfig and the data-* attributes of its script tag; an attribute wins over the config object. The inline <osvi-chat> element takes the same settings as attributes or properties. For how to use them, see Customise the widget and Inline panel.

Widget options

The welcome message and limits are set in the dashboard, not here.

Theme

theme.colors accepts primary, background, surface, text, userBubble and assistantBubble. Colours you leave out come from the light or dark defaults.

Inline panel only

Interface strings

Override any of these through the strings option (widget) or the strings attribute or property (inline panel). Keys you leave out keep their English default. The defaults are English labels such as “Type your message…”, “Send”, “Retry”, and “Powered by Osvi AI”.

Browser storage

Anonymous mode uses browser storage to remember a visitor and resume its active session. Clearing these keys changes that browser’s local chat state: The SDK falls back to memory if browser storage is unavailable. Server mode writes none of these values.