A ChatBot with some plus functions.
For this project I've used Python Flask for BackEnd and React Native for FrontEnd
First you got to setup the BackEnd. For this, download Python 3.6
After it, you must download the dependencies by executing the following commands
hello@world:~$ pip install Flask
hello@world:~$ pip install chatterbot
Now you just have to run it.
For the frontend you'll have to install NodeJS
After it, you'll need to install Expo, just execute the following command
hello@world:~$ npm install -g expo-cli
Now go to the FrontEnd directory and execute
hello@world:~$ npm i
hello@world:~$ npm start
And now all you gotta do is download Expo in your cellphone, scan the given QRCode and enjoy :D
Route | Method | Description |
---|---|---|
/post |
POST | Receive the message and responds to it |
/editmsg |
POST | Receive two parameters (question and answer) and then add it to it's memory |