This project automates the processing, classification, and resolution of home appliance issues using AI. The system:
- Summarizes user queries and AI responses using Facebook BART.
- Classifies intents (troubleshooting, general inquiry, repair request).
- Stores classified intents in an SQLite database.
- Queries the database to fetch or log requests.
- Schedules an email for maintenance requests.
- Pipelines the entire workflow into a seamless process.
The project follows an end-to-end pipeline, with the following steps:
- Convert JSON to CSV – Extract structured data from raw inputs.
- Summarize Queries – Use Facebook BART to generate concise summaries.
- Classify Intents – Assign intent types (
troubleshooting, inquiry, repair). - Store Data in SQLite Database – Organize troubleshooting info, inquiries, and repair requests.
- Query Database – Determine the next action based on intent.
- Schedule Maintenance Emails – Add repair requests to an email queue.
- Trigger AI Agent for Notifications – Process scheduled emails for task completion.
📁 data/ # Data directory
├── home_appliance_query_response.csv # Raw queries & responses
├── home_appliance_summary.csv # Summarized data
├── home_appliance_summary_labeled.csv # Intent-classified data
📁 database/ # SQLite database
├── home_appliance.db # Stores troubleshooting, inquiries, repairs
📁 scripts/ # All processing scripts
├── summarize_home_appliance.py # Summarization using BART
├── qdslite.py # Intent classification & database storage
├── query_database.py # Database interaction (fetch/log requests)
├── SE.py # Schedules maintenance request emails
├── test.py # AI Agent processing scheduled emails
├── run_pipeline.py # End-to-end workflow execution
📄 README.md # Documentation
Ensure you have Python 3.8+ and install required packages:
pip install pandas transformers sqlite3Initialize the SQLite database and required tables:
python query_database.pyExecute the entire AI pipeline in one command:
python run_pipeline.py- Converts JSON to CSV.
- Summarizes user-AI interactions using Facebook BART.
- Saves the output to
home_appliance_summary.csv.
- Classifies intent types (
troubleshooting, inquiry, repair). - Stores classified data in SQLite database.
- Checks for troubleshooting & inquiries.
- Logs repair requests.
- Adds pending repair requests to an email queue.
- Retrieves scheduled emails.
- Sends or logs emails for maintenance confirmation.
SELECT * FROM troubleshooting;SELECT * FROM repair_requests;SELECT * FROM email_queue;✅ End-to-end AI pipeline for query processing & classification
✅ Automated database interactions via Text-to-SQL
✅ Email scheduling for repair requests
✅ Completely modular & scalable
Below is the workflow diagram for the project
