This chatbot will answer the questions related books and authors. For now only two types of questions are covered.
- Author of the particular book
- All the books written by particular author
I have setup MySQL server on my localhost.
- Database - books
- Table - books
- id: unique id (int: primary key)
- name: name of the book (varchar)
- author: name of the author (varchar)
As of now, Table has only 10 entries and likely to add more data and more complex table structure in future
-
git clone https://github.com/sociopath00/BookBot
-
Install the requirements
pip install -r requirements.txt
Note: I would recommend creating a new environment.
-
Train the model
rasa train
-
Start action server
rasa run actions
-
Start RASA server
rasa run --endpoints endpoints.yml
-
Test the responses
python talk.py
Note: change the question and try again OR you can test the responses using POSTMAN