ml-react-chatbot
v0.4.8
Published
React Chatbot
Downloads
10
Maintainers
Readme
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')
);