Skip to content

teja656/AI-Email-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI Email Assistant

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

Setup

  1. Create and activate a Python environment:

    python -m venv .venv
    .\.venv\Scripts\Activate.ps1
  2. Install dependencies:

    pip install -r requirements.txt
  3. Set your Google Generative AI API key:

    $env:GOOGLE_API_KEY = "your_api_key_here"

Run

Web UI (Streamlit)

streamlit run streamlit_app.py

Then paste your email text or upload a file, and the app will display emotion, intent, and a generated reply.

Command Line

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.txt

Project structure

  • main.py - prompt chaining workflow and runtime entrypoint
  • requirements.txt - Python dependency list

About

AI Email Assistant Description: A Python-based AI-powered email analysis tool that uses Google Generative AI (Gemini) to automatically analyze incoming emails and generate intelligent responses. The system employs prompt chaining to first detect the sender's emotion, then understand their intent, and finally craft a professional reply.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages