Skip to main content
Here are some common ways to use the Voltai Widget.

Basic setup

The simplest integration—just load and go:

Custom branded theme

Match the widget to your brand colors:

Help button integration

Open the widget from your own button instead of (or in addition to) the floating button:

Contextual help

Send a pre-filled question based on where the user is on your site:

Event tracking

Track widget usage for analytics:

Sync host auth before opening

Use onAuthReady when you want to make an auth decision before the widget is opened:
If the visitor later opens the widget without a session and guest access is enabled, the normal captcha and guest verification flow still happens inside the widget.

Handle widget auth clicks yourself

Use authClickEvents.mode when you want the widget to emit auth click events but let your app decide what to do next.
  • observe keeps the normal widget auth flow
  • intercept stops the normal widget auth flow so your page can handle auth itself
voltai.login() and voltai.logout() still work normally in intercept mode.

Widget control buttons

Create a custom control panel:

Form with topic selection

Let users choose a topic before starting a chat:

React integration

Using the widget in a React application:
Make sure the widget script is loaded before your React app mounts. You can add it to your index.html or load it dynamically.

Multi-organization authenticated users

If your users can access more than one organization, set defaultOrgName so the widget prefers the org you expect:
This is useful when a single user account belongs to multiple orgs and you want the widget to open in the same org context as the rest of your site.