Skip to main content

Convocore Widget

The Convocore Widget is a React component that allows you to easily integrate Convocore chatbots and voice interfaces into your React applications.

Installation

Basic Usage

Single Widget

Multiple Widgets on the Same Page

When using multiple widgets on the same page, always use unique containerId and unique className values for each widget to prevent conflicts.

Advanced Configuration

Component Props

ConvocoreWidget Props

WidgetConfig Options

Best Practices

Using Multiple Widgets

When using multiple widgets on the same page:
  1. Always use unique container IDs: Set a unique containerId for each ConvocoreWidget component to ensure proper isolation.
  2. Use unique class names: Assign unique className values to each widget to prevent CSS conflicts.
  3. Use unique divClass in configs: If you specify divClass in your widget configs, make sure they are unique.

User Data Configuration

You can provide user information to the widget using the user property:

Voice Flow Variables

You can inject variables into Voice Flow using the vf_variables property:

Theme Customization

You can customize the widget’s appearance using the variables property: