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 uniquecontainerId
and unique className
values for each widget to prevent conflicts.
Advanced Configuration
Component Props
TixaeWidget Props
Prop | Type | Description | Default |
---|---|---|---|
configs | WidgetConfig[] | Array of widget configurations | Required |
className | string | CSS class for the container | '' |
style | React.CSSProperties | Custom styles for the container | {} |
containerId | string | Unique ID for the widget container | Auto-generated |
height | string | Height of the container | '500px' |
width | string | Width of the container | '100%' |
WidgetConfig Options
Property | Type | Description | Required |
---|---|---|---|
ID | string | The ID of the widget | Yes |
region | string | The region of the widget (e.g., ‘eu’, ‘na’) | Yes |
render | string | The rendering position | Yes |
divClass | string | Custom class for the container div | No |
user | object | User data (name, email, phone, etc.) | No |
userID | string | Custom user ID | No |
autostart | boolean | Whether to auto-start the chatbot | No |
modalMode | boolean | Whether to open the widget in modal mode | No |
stylesheets | string[] | List of custom stylesheet URLs | No |
vf_variables | Record<string,any> | Voice Flow variables to inject | No |
variables | object | Theme customization (avatarImageUrl, etc.) | No |
Best Practices
Using Multiple Widgets
When using multiple widgets on the same page:-
Always use unique container IDs: Set a unique
containerId
for each TixaeWidget component to ensure proper isolation. -
Use unique class names: Assign unique
className
values to each widget to prevent CSS conflicts. -
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 theuser
property:
Voice Flow Variables
You can inject variables into Voice Flow using thevf_variables
property:
Theme Customization
You can customize the widget’s appearance using thevariables
property: