Skip to content

AK17-dev/ChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatBotProject (Clean-Architecture Example)

This repository is a minimal example showing how to structure a chatbot using Clean Architecture and the Strategy pattern to integrate: Rasa, NLTK, ChatterBot, and custom rule-based scripts.

Files of interest:

  • src/controllers/chat_controller.py: central router using Strategy pattern
  • src/strategies/: strategy implementations and adapters
  • src/data/faqs.json: minimal FAQ file
  • run.py: small runner that demonstrates routing

Setup (PowerShell):

# create and activate venv
python -m venv .venv
.venv\Scripts\Activate.ps1

# upgrade pip and install dependencies
python -m pip install --upgrade pip
pip install -r requirements.txt

# (Optional) start Rasa if you have a trained model
# rasa train
# rasa run --enable-api --cors "*"

# Run the example
python run.py

Notes:

  • The example includes fallbacks so run.py can be executed without having nltk, chatterbot, or a running Rasa server installed; however, to use the real integrations, install the packages listed in requirements.txt and run a trained Rasa server at http://localhost:5005.

Releases

Packages

Contributors

Languages