dharma-niti-chatbot

DharmaNiti – Indian Wisdom Chatbot

DharmaNiti is a lightweight web-based chatbot that provides simple, safe guidance inspired by Bhagavad Gita and Chanakya Niti.
It uses a Flask backend and HTML/CSS/JavaScript frontend.[page:0]

Features

Tech Stack

Project Structure

ai-chatbot-project/
│ app.py
│
├── data/
│   ├── gita_verses.json
│   └── chanakya_summaries.json
│
├── templates/
│   └── index.html
│
└── static/
    ├── style.css
    └── script.js

Getting Started

1. Clone the repository

git clone https://github.com/<your-username>/dharma-niti-chatbot.git
cd dharma-niti-chatbot
python -m venv env
# Windows:
env\Scripts\activate
# Linux/macOS:
# source env/bin/activate

3. Install dependencies

pip install flask

4. Run the app

python app.py

Then open in your browser:

http://127.0.0.1:5000/

You should now see the DharmaNiti chatbot UI running locally.[page:0]


Note on GitHub Pages / Rendering

This project is built as a Flask web app, so the chatbot UI is rendered by the Python backend (app.py) and served at http://localhost:5000 when you run it locally.[page:0]

When you open the GitHub Pages link:

https://pranjali0408.github.io/dharma-niti-chatbot/

you will only see a static page generated from the repository (README-like view), not the live chatbot UI.[page:0][web:49]

This is expected because:

How to use this project right now

For now, I am using this project in two ways:

  1. Local demo (fully working chatbot)
    • Run python app.py.
    • Open http://localhost:5000 in the browser.
    • This is what I use for demos, recordings, and testing.[page:0]
  2. Public code + documentation on GitHub Pages
    • The GitHub Pages URL is used only to show the repository content and documentation.
    • It does not host the live Flask app itself.[page:0]

Future deployment options (planned)

To make the chatbot accessible online without running it locally, I am exploring:

Until one of these deployment options is set up, the chatbot will work only when run locally via python app.py and will not appear as an interactive bot on the github.io URL.[page:0][web:49]