An open API service indexing awesome lists of open source software.

https://github.com/rabbikazmi/rule-based-chatbot

a rule based vaccine chatbot
https://github.com/rabbikazmi/rule-based-chatbot

chatbot flask python rule-based

Last synced: 7 months ago
JSON representation

a rule based vaccine chatbot

Awesome Lists containing this project

README

          

# "HealthShield" - A Rule-Based Vaccine Chatbot

![image](https://github.com/user-attachments/assets/2796f5dd-2403-45fe-8c0e-37407a56eeef)

A simple rule-based chatbot built using Flask to answer questions related to vaccines — including safety, side effects, schedules, and more.
![image](https://github.com/user-attachments/assets/3b82315e-8dd8-4e13-8214-d7848b2cb75e)

# Prerequisites

Make sure you have the following installed:

Python 3.7+

Git (optional, for cloning)

A terminal or command prompt

# Step 1: Clone or Download the Repository

git clone https://github.com/your-username/rule-based-chatbot.git

cd rule-based-chatbot

Or download the ZIP from GitHub and extract it.

# Step 2: Set Up a Virtual Environment

Create and activate a virtual environment to isolate project dependencies.

*for windows :*

python -m venv venv

venv\Scripts\activate

*for macos/linux :*

python3 -m venv venv

source venv/bin/activate

# Step 3: Install Dependencies

pip install Flask

or just do: pip install -r requirements.txt

# Project Structure:

app.py : Main Flask app with chatbot logic.

templates/ : Contains index.html for the UI.

static/ : Contains CSS and static files.

# Step 4: Run the App

python app.py

The app will start locally, and click on the url appearing in the terminal.

![image](https://github.com/user-attachments/assets/7508cb4e-a931-4863-9aec-ccc3373f1b8e)

*Visit the URL in your browser to start chatting!*