npm.io
2.0.1 • Published 4 years ago

react-best-chatbot

Licence
Version
2.0.1
Deps
0
Size
177 kB
Vulns
0
Weekly
0
Stars
1

React Best Chatbot

Build and customize a chatbot for exactly what you need

Usage

Simple and easy to get started, free of dependencies.

import React from 'react';
import Chatbot from 'react-best-chatbot';
  
const steps = [
  {
    id: 1,
    content: "Hello, human!",
    goTo: 2
  }, 
  {
    id: 2,
    content: "See ya...",
    end: true
  }
];

const App = () => (
  <Chatbot steps={steps} />
);

export default App;

Examples and properties

Click here to access the documentation.

Info

Every user response is also accompanied by the time it took the user to interact in the chat, in milliseconds.

answers = {
  values: {
    'first_step: 'Bye'
  },
  timeInMs: {
    'first_step': 2000
  } 
};

Donate

If you liked, you can donate to support it :)

paypal