Chat widget
Learn how to embed the widget in your app
The chat widget enables you to interact with the AI customer support chatbot from your dashboard and see the changes in real-time. Open is a React web app that you can embed in your web app.
There are several ways you can integrate the chat widget into your application/webpage.
As a JavaScript File
As a React Component (via npm)
Using simple js script (Copy & Paste)
-
By using CDN script into your HTML file.
This will automatically register a new function called
initOpenWidget
on the global window object. -
Init the widget (when document fully loads) by calling the
initOpenWidget
function and passing the required options. There are plenty of options that you can pass to the widget, you can find them here
As a React Component
-
Install the widget from npm.
-
Use the Component inside your application
Available options
The chat widget is highly customizable, here is a list of all the available options:
Identifying chat users/contacts
One of the helpful options in the chat widget is the ability to identify the user/contact of the chat. This is useful if you want to track the usage of the chat widget.
To start identifying the user/contact, you can pass the user
object as an option to the chat widget, for example:
Read more about the contact APIs here
FAQ
Was this page helpful?