- Install RWC client package:
npm i @onereach/rwc-client
- Add RWC styles globally. It should be placed in the main entrypoint file, e.g for
Vue - App.vue
,React - main.[ts|js]
,Next - layout.ts{x}
:
import '@onereach/rwc-client/dist/lib/richWebChat.css';
- Import RWC constructor and create a class instance:
import RWC from '@onereach/rwc-client'; // default skin
import { Sidebar, Core } from '@onereach/rwc-client'; // custom skin
var app = new RWC({...parameters})
Use Rich Web Chat Documentation for the detailed features explanation.