A legacy Python-based complaint classification system that integrates with AI APIs for intelligent classification and Google Drive for data storage.
- Intelligent Classification: Uses AI APIs to classify user complaints.
- Google Drive Integration: Automatically updates a centralized CSV tracking database.
- Audio Recording: Capture complaints via microphone and transcribe them using Google's Speech-to-Text.
- Multi-language Support: Interface and processing for Arabic, English, and French.
- Python 3.8+
- Active AI API Key
- Google Cloud Service Account credentials (JSON) with Drive API access.
- Google Drive file id
-
Clone the repository:
git clone https://github.com/ALZ-11/FeedbackTrail cd "FeedbackTrail"
-
Install dependencies:
pip install -r requirements.txt
(Note: You may need to install
pyaudiomanually depending on your OS). -
Set up environment variables:
- Copy
.env.exampleto.env. - Fill in your
OPENAI_API_KEY, or set up any other AI API key. - Place your
credentials.jsonin the project root or setGOOGLE_APPLICATION_CREDENTIALSin.env. - Fill in your
GOOGLE_DRIVE_FILE_IDin.env.
- Copy
Run the main script:
python main.pymain.py: Primary application script.categories.txt: List of predefined complaint categories.images/: UI assets and icons.credentials.json: Service account keys.