ml-react-chatbot

0.4.8 • Public • Published

React Chatbot

A chatbot component to create conversation chats

Getting Start

npm install ml-react-chatbot --save

Usage

import ChatBot from 'ml-react-chatbot';
 
const steps = [
  {
    id: '0',
    message: 'Welcome to react chatbot!',
    trigger: '1',
  },
  {
    id: '1',
    message: 'Bye!',
    end: true,
  },
];
 
ReactDOM.render(
  <div>
    <ChatBot steps={steps} />
  </div>,
  document.getElementById('root')
);

/ml-react-chatbot/

    Package Sidebar

    Install

    npm i ml-react-chatbot

    Weekly Downloads

    0

    Version

    0.4.8

    License

    MIT

    Unpacked Size

    62.6 kB

    Total Files

    4

    Last publish

    Collaborators

    • mobylogikas