This mini project is an AI-powered email assistant that:
- Detects the sender's emotion
- Understands the sender's intent
- Generates a smart reply using prompt chaining
-
Create and activate a Python environment:
python -m venv .venv .\.venv\Scripts\Activate.ps1 -
Install dependencies:
pip install -r requirements.txt -
Set your Google Generative AI API key:
$env:GOOGLE_API_KEY = "your_api_key_here"
streamlit run streamlit_app.pyThen paste your email text or upload a file, and the app will display emotion, intent, and a generated reply.
python main.py --email-text "Hi team, I'm frustrated with the recent delay on the report. Can we fix this today?"You can also read the email from a file:
python main.py --email-file sample-email.txtmain.py- prompt chaining workflow and runtime entrypointrequirements.txt- Python dependency list