Skip to main content

Basic Floating Widget

The simplest integration — a floating chat bubble in the bottom-right corner:

Inline Embedded Widget

Embed the chat directly inside a page element instead of using the floating bubble. The widget fills its container and hides the toggle button.
In inline mode:
  • The toggle button is hidden
  • The chat panel fills 100% of the container
  • The close button in the header is hidden
  • The chat is automatically opened on mount

React Component Wrapper

Wrap the widget in a React component with proper lifecycle management:
Usage:
Inline in a sidebar:

Vue Component Wrapper

Wrap the widget in a Vue 3 Composition API component:
Usage:

Cart Synchronization with Store

A complete example showing cart sync between the AI assistant and your store:
The initial cart is loaded from your backend via the cart_get_url webhook when a new conversation starts. See the Cart Webhook documentation for server-side setup.

Custom Styling

Apply different visual themes by combining config options:

Dark E-commerce Theme

Minimal Light Theme

Multi-Language Setup

The language option controls the language of widget UI text (errors, status messages):
The language setting controls widget UI text only (errors, status messages). The AI assistant’s response language is determined by the user’s input — Ukrainian/Russian input gets Ukrainian responses, other languages get responses in that language.
The widget includes built-in translations for:
  • 12 error codes
  • 15 status codes (searching, thinking, adding to cart, etc.)
Russian ('ru') uses the Ukrainian translations.

Switching Between Inline and Floating

Use setMode() to switch the widget between inline and floating modes without reconnecting:

Programmatic Control

Control the widget from external buttons or triggers:

Full Production Example

A complete production-ready integration: