MailAI is an AI-powered email auto-responder designed to help internal support teams respond faster, smarter, and with less manual effort. Built using Retrieval-Augmented Generation (RAG), it classifies, retrieves, and replies to service request emails automatically.
- Frontend: Chrome Extension (HTML, JavaScript)
- Backend: Python, Flask
- AI/ML: OpenAI GPT, SentenceTransformers, FAISS, LangChain
- Fetches unseen support request emails.
- Filters out non-reply or unauthorized domains.
- Classifies the intent using zero-shot learning.
- Retrieves relevant KB documents via semantic search.
- Generates personalized replies using GPT.
- Sends response via email or escalates to human.
bash
git clone https://github.com/yourusername/MailAI.git
cd MailAI
pip install -r requirements.txt
Create a .env file in the project root and add the following:
OPENAI_API_KEY=your_openai_key EMAIL_CREDENTIALS=your_email_credentials
Run the Server
bash
python app.py
Build Chrome Extension
- Open Chrome and go to chrome://extensions/.
- Enable Developer Mode.
- Click Load Unpacked and select the extension folder.