A simple console-based chatbot developed using Python. The chatbot uses a JSON knowledge base to store questions and answers and employs fuzzy string matching (difflib) to identify the closest matching question.
- Interactive command-line chatbot
- Fuzzy matching for user queries
- Dynamic learning of new questions and answers
- Automatic knowledge base updates using JSON
- Simple and beginner-friendly implementation
- Python
- JSON
- difflib
- The chatbot loads questions and answers from a JSON file.
- When a user enters a question, the chatbot searches for the closest matching question.
- If a match is found, the corresponding answer is displayed.
- If no match exists, the chatbot asks the user to provide an answer.
- The new question-answer pair is stored in the knowledge base for future interactions.
├── main.py ├── knowledge_base.json └── README.md
- GUI using Tkinter
- Flask-based web interface
- NLP integration using NLTK or spaCy
- Speech-to-text and text-to-speech support
- Database integration (MySQL/SQLite)
Sri Sai Rishita Tadisetti B.Tech CSE | Aspiring AI/ML Engineer