OneChat has an official integration with Docusaurus using the plugin @OneChat/docusaurus-plugin. This plugin enables OneChat live-chat widget in Docusaurus powered websites.

To install the plugin, follow the steps mentioned below.

Add the plugin to your project.
yarn add @OneChat/docusaurus-plugin
npm install @OneChat/docusaurus-plugin --save

Configure the plugin in docusaurus.config.js

// docusaurus.config.js
module.exports = {
plugins: ["@OneChat/docusaurus-plugin"],
themeConfig: {
OneChat: {
websiteToken: "Your website inbox token",
baseURL: "", // optional
enableInDevelopment: false, // optional
Was this article helpful?
Thank you!