BVector by BangDBBVector
BVector Chat

Configuration

All options passed to new ChatWidget(options) or window.BangdbChatWidget.init(options).

ChatWidgetOptions

Top-level object passed to the widget constructor.

PropertyTypeRequiredDescription
configApiConfigrequiredBangDB connection settings — see ApiConfig below.
titlestringoptionalWidget header title shown at the top of the chat panel.
logostringoptionalURL of an image to display in the widget header.
colorTokensColorTokensoptionalTheme override tokens — see Theming for the full list.

ApiConfig

Nested under config. All fields are required.

PropertyTypeRequiredDescription
apikeystringrequiredBangDB authentication token. Obtain from the BangDB dashboard.
backendURLstringrequiredBangDB service endpoint. Typically port 18080 on your instance.
resourceURLstringrequiredResource service endpoint. Typically port 18082 on your instance.
useridstringrequiredUnique identifier for the current user. Used to scope conversation history.
indexNamestringrequiredName of the BVector index to query for semantic search.

Notes

apikey security

Never expose your apikey in client-side code for production applications. Use a backend proxy or environment variables that are scoped to your server.

userid uniqueness

The userid ties conversation history to a user. Use your app's authenticated user ID or a stable session ID — avoid using random values that change on page reload.

indexName

Must match an existing index on your BVector instance. Create indexes via the BVector REST API before using them with the chat widget.

🍪 Cookie Notice

We use cookies to ensure that we give you the best experience on our website. Read cookies policies.