Project AI Email Processor. - #1
Open
KaranKumar2326 wants to merge 20 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AI Email Processing System - Hackathon Submission 📧✨
🎯 Solution Overview
I've developed a comprehensive AI-powered email processing pipeline that transforms raw email files into actionable insights through intelligent summarization and advanced attachment parsing. The system handles multiple email formats (.eml, .msg) and leverages AI to provide structured summaries of email content and attachments.
🚀 Live Demo
Deployed Application: https://intern-hackathon-2025.onrender.com/
🏗️ Implementation Approach
graph TB A[Email File Upload] --> B[Email Parser] B --> C{Email Type} C -->|.eml| D[EML Parser] C -->|.msg| E[MSG Parser] D --> F[Extract Metadata] E --> F F --> G[Extract Body Content] G --> H[Extract Attachments] H --> I{Attachment Type} I -->|PDF| J[PDF Text Extractor] I -->|DOCX| K[Word Document Parser] I -->|Image| L[OCR Text Extraction] I -->|Other| M[Base64 Storage] J --> N[Compile Email Data] K --> N L --> N M --> N N --> O[AI Summarizer] O --> P[Groq API Call] P --> Q[Generate Summary] Q --> R[JSON Response] R --> S[Web Interface Display] style A fill: style O fill:#c63939 style P fill: style Q fill: style R fill: style S fill:Core Architecture
Key Technical Decisions
📂 Files Added/Modified
Core Components
src/web/app.py- Flask application with API endpointssrc/email_parser.py- Email parsing logic for .eml/.msg filessrc/summarizer.py- AI summarization with Groq API integrationsrc/document_processor.py- Universal attachment processorFrontend & Templates
src/web/templates/- HTML templates for web interfacesrc/web/static/- CSS and JavaScript assetsConfiguration & Deployment
requirements.txt- Python dependenciesDockerfile- Container configuration with Tesseract OCR.env.example- Environment variables templateREADME.md- Comprehensive documentation with architecture diagram🔧 Special Dependencies & Setup
Required API Keys
System Dependencies
Installation Steps
🎨 Architecture Flowchart
Added a comprehensive Mermaid flowchart in the README showing the complete data flow:
🧪 Testing & Validation
📊 API Response Format
The system returns structured JSON with:
🌟 Unique Features
📸 Screenshot/Preview
Ready for review! The solution is production-ready with comprehensive error handling, proper documentation, and live deployment verification.