{"id":24062450,"url":"https://github.com/mathavansg/emailautomation-agent","last_synced_at":"2025-02-26T16:29:08.180Z","repository":{"id":250840985,"uuid":"835629365","full_name":"MathavanSG/EmailAutomation-AGENT","owner":"MathavanSG","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-30T08:21:02.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-09T08:56:11.538Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MathavanSG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-30T08:12:01.000Z","updated_at":"2024-07-30T08:21:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1c9fb00-0416-4d23-b010-f0a555b909c3","html_url":"https://github.com/MathavanSG/EmailAutomation-AGENT","commit_stats":null,"previous_names":["mathavansg/emailautomation-agent"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathavanSG%2FEmailAutomation-AGENT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathavanSG%2FEmailAutomation-AGENT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathavanSG%2FEmailAutomation-AGENT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathavanSG%2FEmailAutomation-AGENT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MathavanSG","download_url":"https://codeload.github.com/MathavanSG/EmailAutomation-AGENT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240890571,"owners_count":19874020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-09T08:56:05.443Z","updated_at":"2025-02-26T16:29:08.174Z","avatar_url":"https://github.com/MathavanSG.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n### Automatic Email Reply System Agents (Beta Version)\n\n```markdown\n# Automatic Email Reply System\n\n## Project Overview\nThe Automatic Email Reply System is designed to automate the process of responding to customer emails for a fictional equipment rental service. It categorizes incoming emails, queries an SQL database for necessary information, and generates appropriate responses based on the content and category of the emails.\n\n## Features\n- **Email Categorization**: Automatically categorizes emails into predefined categories such as price inquiries, product questions, and customer feedback.\n- **Database Queries**: Retrieves product information from an SQLite database based on the email queries.\n- **Response Generation**: Uses a custom RAG (Retrieval-Augmented Generation) pipeline to generate contextually relevant responses.\n- **CRM Integration**: Records issues and interactions in a CSV file for CRM purposes.\n\n## Technologies Used\n- Python 3.8+\n- SQLite3 for the database\n- Pandas for data handling\n- GroqAPI for leveraging AI models\n- Chroma for document retrieval in RAG pipeline\n\n## Getting Started\n\n### Prerequisites\n- Python 3.8 or higher\n- Pip for package installation\n\n### Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/MathavanSG/EmailAutomation-AGENT.git\n   ```\n2. Install the required packages:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n### Configuration\n- Ensure the `.env` file is configured with the necessary API keys and database paths:\n  ```plaintext\n  GROQ_API_KEY=your_api_key_here\n  DB_PATH=path_to_your_database.db\n  ```\n\n## Usage\nTo run the system:\n```bash\npython main.py\n```\nThis script processes a batch of sample emails and demonstrates how the system categorizes and responds to different types of queries.\n\n## Project Structure\n- `create_and_populate_db.py`: Sets up the SQLite database and populates it with initial data.\n- `crm.py`: Handles interactions with the customer relationship management system.\n- `categorize_agent.py`, `email_writer.py`, `reviewer_agent.py`: Modules for categorizing emails, writing responses, and handling reviews.\n- `utils.py`: Contains utility functions for email interaction and API authentication.\n- `rag_agent.py`: Implements the RAG pipeline for response generation.\n- `main.py`: The main script that ties all components together.\n\n## Database Schema\nThe database schema includes the following table:\n```plaintext\nCREATE TABLE equipment (\n    id INTEGER PRIMARY KEY AUTOINCREMENT,\n    name TEXT NOT NULL,\n    type TEXT NOT NULL,\n    availability TEXT NOT NULL,\n    price REAL NOT NULL\n);\n```\n\n## Contributing\nContributions are welcome! For major changes, please open an issue first to discuss what you would like to change.\n\n## License\nDistributed under the MIT License. See `LICENSE` for more information.\n\n## Contact\n- Mathavan SG - [@MathavanSG](https://github.com/MathavanSG)\n\n## Acknowledgments\n- Thanks to GroqAPI for providing the AI model APIs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathavansg%2Femailautomation-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathavansg%2Femailautomation-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathavansg%2Femailautomation-agent/lists"}