How riyapatil04/ai-placement-mail-organizer works
AI Placement Mail Organizer fetches Gmail messages into a local SQLite-backed email list, which the React dashboard displays and can refresh on demand. The backend also exposes separate AI classification and placement-extraction test routes; the sampled sync path does not invoke them or persist analysis results. The README describes eligibility checks and Google Calendar syncing as product goals, but no implementation for either is shown, so they appear only as unverified planned branches. Edges reflect excerpts or README statements; unsampled behavior is not assumed.
Main entry points: main.py FastAPI routes · sync_service.py Sync orchestrator · email.py Email records · db.py SQLite database
Components 16
Dashboard
- Dashboard
frontend/src/pages/Dashboard.jsx - API client
frontend/src/services/api.js - App shell
frontend/src/App.jsx
Backend API
- FastAPI routes
backend/app/main.py
Email ingestion
- Sync orchestrator
backend/app/services/sync_service.py - Gmail fetch
backend/app/services/gmail_service.py - Email records
backend/app/models/email.py - SQLite database
backend/app/database/db.py
Placement analysis
- Analysis records
backend/app/models/email_analysis.py - AI analysis
backend/app/services/ai_service.py - Prompt templates
backend/app/prompts - Eligibility checks
backend/app/services - Calendar sync
backend/app/services
Other components
- User
- Gmail
- Ollama
Connections 19
- User → Dashboard: uses
frontend/src/pages/Dashboard.jsx - App shell → Dashboard: renders
frontend/src/App.jsx - Dashboard → API client: requests data
frontend/src/pages/Dashboard.jsx - API client → FastAPI routes: HTTP requests
frontend/src/services/api.js - FastAPI routes → Sync orchestrator: dispatches sync
backend/app/main.py - Sync orchestrator → Gmail fetch: fetches messages
backend/app/services/sync_service.py - Gmail fetch → Gmail: reads messages
backend/app/services/gmail_service.py - Sync orchestrator → Email records: creates records
backend/app/services/sync_service.py - Sync orchestrator → SQLite database: commits records
backend/app/services/sync_service.py - FastAPI routes → Email records: queries emails
backend/app/main.py - FastAPI routes → SQLite database: creates tables
backend/app/main.py - Email records → SQLite database: defines mapping
backend/app/models/email.py - Analysis records → SQLite database: defines mapping
backend/app/models/email_analysis.py - FastAPI routes → AI analysis: calls test routes
backend/app/main.py - AI analysis → Ollama: sends prompts
backend/app/services/ai_service.py - AI analysis → Prompt templates: loads templates
backend/app/services/ai_service.py - Email records → Analysis records: relates to
backend/app/models/email.py - User → Eligibility checks: expects checks
README.md - User → Calendar sync: expects date sync
README.md