Johns Hopkins University — AI Course Midterm Project
This project builds an AI-powered email management system that helps a business leader manage their inbox efficiently using the Yesterbox productivity approach — focusing on yesterday's emails to prioritize actions for today. The system uses prompt engineering on a large language model to automate email categorization, summarization, and response drafting.
- File:
Alex_emails_march_04.csv - Description: A dataset of business emails received by a Senior Manager at a mid-sized IT company
- Size: 60 emails across multiple recipients
- Fields:
email_id,date_received,sender,subject,body,main_recipient
- Load email dataset
- Apply Yesterbox filtering — emails from March 3rd, 2025 only
- Filter emails for the target recipient
Emails are classified into one of six predefined categories:
- Urgent & High-Priority Emails
- Deadline-Driven Emails
- Routine Updates & Check-ins
- Non-Urgent Informational Emails
- Personal & Social Emails
- Spam/Unimportant Emails
Generates a top-level summary of the inbox including:
- Total email count
- Breakdown by category
- AI conclusion highlighting critical vs non-critical emails
Summarizes all Urgent & High-Priority emails with:
- Subject, Sender, Received date
- One-sentence summary
- Specific next step for each email
Summarizes all Deadline-Driven emails with:
- Full email details
- Next steps focused on meeting deadlines
- Final count and summary of actionable items
Generates professional first response drafts for all critical emails (Urgent + Deadline-Driven) including:
- Acknowledgement of the sender's request
- Key points addressed
- Clear next step
- Polite and professional tone
Evaluates the quality of AI-drafted responses across three dimensions:
- Relevance — Does the response address the email content?
- Clarity — Is the response clear and easy to understand?
- Actionability — Does the response provide clear next steps?
Results are stored in a structured DataFrame with scores and justifications.
- Prompt Engineering (Zero-Shot, One-Shot, Role Prompting)
- Yesterbox Productivity Approach
- LLM-as-a-Judge Evaluation Framework
- Structured Output Formatting
- Python 3.x
- Jupyter Notebook
- pandas
- tqdm
- LLM API access (course-provided)
- Upload
Alex_emails_march_04.csvto your notebook environment - Open
JHU_AGAI_W9_Mid_Term_Project_Solution_Notebook_12th_Feb.ipynb - Run all cells in order from top to bottom
- Outputs will be displayed inline in the notebook
- Relevance: 5/5 across all evaluated responses
- Clarity: 5/5 across all evaluated responses
- Actionability: Mostly 4/5 — minor improvements needed around specific timelines and follow-up steps
JHU AI Course — Midterm Project