Skip to content

Kommunicate-io/kommunicate-chatbot-plugin

Repository files navigation

kommunicate-chatbot-plugin

npm

A npm plugin for kommunicates' chat widget.

Install

npm i @kommunicate/kommunicate-chatbot-plugin

Usage

In your index.js file,

  1. Import the widget as Kommunicate.
  2. Add Kommunicate.init("YOUR_APP_ID" , {...optionalSettings}) outside ReactDOM.render()
  3. Replace YOUR_APP_ID with APP_ID provided to you by Kommunicate. You can get your APP_ID from here
import Kommunicate from '@kommunicate/kommunicate-chatbot-plugin';

Kommunicate.init("YOUR_APP_ID" , {...optionalSettings})

ReactDOM.render(
  ...
    <App />
  ...
  document.getElementById('root')
);