{"id":25007820,"url":"https://github.com/ruvenguna94/llama-agent-spam-classifier","last_synced_at":"2026-05-15T18:34:41.778Z","repository":{"id":275601878,"uuid":"926557750","full_name":"RuvenGuna94/Llama-agent-spam-classifier","owner":"RuvenGuna94","description":" Llama-Agent Spam Classifier is an AI-powered system that categorizes emails as Important, Casual, or Spam using CrewAI and the Llama 3 model. It automates email management with multi-agent collaboration, enhancing communication efficiency. 🚀","archived":false,"fork":false,"pushed_at":"2025-02-03T14:42:37.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-27T16:48:16.188Z","etag":null,"topics":["automation","crewai","email-classification","groq","llama3","llm","nlp","python3","spam-detection"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RuvenGuna94.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-02-03T13:23:15.000Z","updated_at":"2025-02-03T14:44:33.000Z","dependencies_parsed_at":"2025-02-03T15:47:29.181Z","dependency_job_id":null,"html_url":"https://github.com/RuvenGuna94/Llama-agent-spam-classifier","commit_stats":null,"previous_names":["ruvenguna94/llama-agent-spam-classifier"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RuvenGuna94/Llama-agent-spam-classifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuvenGuna94%2FLlama-agent-spam-classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuvenGuna94%2FLlama-agent-spam-classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuvenGuna94%2FLlama-agent-spam-classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuvenGuna94%2FLlama-agent-spam-classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RuvenGuna94","download_url":"https://codeload.github.com/RuvenGuna94/Llama-agent-spam-classifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuvenGuna94%2FLlama-agent-spam-classifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278948024,"owners_count":26073747,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["automation","crewai","email-classification","groq","llama3","llm","nlp","python3","spam-detection"],"created_at":"2025-02-05T02:38:42.141Z","updated_at":"2025-10-08T12:50:59.052Z","avatar_url":"https://github.com/RuvenGuna94.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Llama-Agent Spam Classifier\n\n## Overview\nThis project utilizes CrewAI to classify incoming emails and generate appropriate responses based on their importance. It employs a two-agent system powered by the **Llama-3.3-70B-Versatile** model via **Groq** API.\n\n## Features\n- **Email Classification:** Assigns emails one of three categories: **Important, Casual, or Spam**.\n- **Automated Responses:** Generates appropriate responses based on classification.\n  - **Important Emails:** Formal response.\n  - **Casual Emails:** Informal response.\n  - **Spam Emails:** Ignored.\n- **Multi-Agent Collaboration:** Uses CrewAI framework to coordinate tasks between agents.\n\n## Installation\n### Prerequisites\nEnsure you have the following installed:\n- Python 3.8+\n- pip\n\n### Setup\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/RuvenGuna94/Llama-agent-spam-classifier.git\n   cd Llama-agent-spam-classifier\n   ```\n2. Create and activate a virtual environment:\n   ```bash\n   python -m venv venv\n   source venv/bin/activate   # On Windows use: venv\\Scripts\\activate\n   ```\n3. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n4. Set up environment variables:\n   - Create a `.env` file in the root directory.\n   - Add the following line to it:\n     ```plaintext\n     GROQ_API_KEY=your_api_key_here\n     ```\n\n## Usage\n1. Run the script:\n   ```bash\n   python main.py\n   ```\n2. The agents will classify an email and generate a response accordingly.\n\n## Code Structure\n- `email_agent.py`: Core script defining agents and their tasks.\n- `.env`: Stores environment variables.\n- `requirements.txt`: Lists dependencies.\n\n## Example Output\n```\nAgent: Email Classifier\nClassification: Casual\n\nAgent: Email Responder\nResponse: \"Noted! Thanks for the update.\"\n```\n\n## Technologies Used\n- **CrewAI**: Agent-based workflow framework\n- **Llama 3**: Large language model from Groq\n- **Python**: Primary programming language\n\n## Future Improvements\n- Extend classification to include more categories.\n- Integrate with an email API (e.g., Gmail API) for real-time processing.\n- Store classified emails in a database.\n\n## License\nThis project is licensed under the MIT License.\n\n## Author\n[RuvenGuna94](https://github.com/RuvenGuna94)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruvenguna94%2Fllama-agent-spam-classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruvenguna94%2Fllama-agent-spam-classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruvenguna94%2Fllama-agent-spam-classifier/lists"}