Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.voltai.ai/llms.txt

Use this file to discover all available pages before exploring further.

Customize the text displayed in the widget to match your product’s voice and terminology.

Custom text

Pass a text object to override default messages. You only need to specify the text you want to change.
const voltai = Voltai.load({
  apiKey: 'your-api-key',
  text: {
    guestLimitDescription: 'Sign in to continue chatting with our AI assistant.'
  }
});

Available text options

PropertyDescription
guestLimitDescriptionMessage shown when a guest user reaches their usage limit

Initial message popup

Use the top-level initialMessage option to show a dismissible popup the first time an unauthenticated user (guest or signed-out) opens the widget. The popup uses your widget title as the heading and an OK button to dismiss.
const voltai = Voltai.load({
  apiKey: 'your-api-key',
  title: 'Support Chat',
  initialMessage: 'Welcome! Please sign in to get the full functionality of our assistant.'
});
If initialMessage is omitted, no popup is shown. The popup is shown at most once per page load — once dismissed, it will not reappear until the page is reloaded.