This project, Customer Support Chatbot Simulation, is created as the final project for the course "Basic Programming with Python (Batch 03) under EDGE Program". The chatbot simulates a customer support system for Banglalink, providing automated responses to common queries based on predefined categories.
-
Query Categorization:
-
Predefined categories for user queries include:
Recharge Internet Call Rate SIM Replace New SIM Coverage Offers Balance Caller Tune Roaming Bill Payment Problem App Service Center -
Each category has a detailed response stored in a JSON file (
responses.json).
-
-
Chatbot Interface:
- A console-based chatbot where users can type their queries.
- The chatbot matches queries to predefined categories and provides appropriate responses.
- Default response for unmatched queries:
"Sorry, I couldn't understand that. Please try again."
-
Query Logging:
- Logs user queries, categories, and responses to a file (
query_logs.json) for review. - Each log includes:
- Timestamp
- User query
- Matched category
- Response
- Logs user queries, categories, and responses to a file (
-
Log Viewer:
- Users can view and filter logs by category or date.
-
Personalized Introduction:
- The chatbot introduces itself as Sazim from "Basic Programming with Python Batch 03".
project-directory/
|-- chatbot.py # Main Python script for the chatbot
|-- responses.json # Predefined categories and responses
|-- query_logs.json # Log file for storing user queries and responses
|-- README.md # Project documentation
-
Clone the GitHub repository:
git clone https://github.com/Sazim2019331087/Final-Project-of-Basic-Python-Programming-under-EDGE-Program/ cd Final-Project-of-Basic-Python-Programming-under-EDGE-Program -
Ensure Python is installed on system (Python 3.6 or later).
-
Install any required dependencies (if applicable).
-
Run the chatbot:
python chatbot.py
-
Interact with the chatbot through the console interface. Use the menu options to:
- Start a chat session.
- View or filter logs.
Customer Support Chatbot
1. Start Chat Session
2. View Logs
3. Exit
Enter your choice: 1
Chat Session: Type 'exit' to end the chat.
You: Balance
Chatbot: To check your balance, dial *124# from your Banglalink number.
You: exit
- Add or modify categories and responses by editing the
responses.jsonfile. - Logs are stored in
query_logs.jsonand can be filtered by category or date through the menu interface.
- Project Title: Customer Support Chatbot Simulation
- Course: Basic Programming with Python Batch 03 under EDGE Program
- Developer: Md. Sazim Mahmudur Rahman