DevCourses AI Email Agent is an intelligent email assistant powered by RAG (Retrieval Augmented Generation). It automatically answers course inquiries using a vector-based knowledge search while ensuring reliable responses and notifying admins for uncertain questions.
Features
- RAG System: Searches course knowledge base using FAISS + OpenAI embeddings
- Confidence Detection: Automatically assesses answer reliability (high/medium/low)
- Admin Notifications: Alerts admin when the AI is uncertain
- No Hallucinations: Only responds based on knowledge base content
- Easy Testing: Simulation mode without email setup
Requirements
- Python 3.11+
- OpenRouter API key (for AI model)
- Course knowledge base (included)
Quick Start
- Install dependencies:
pip install-r requirements.txt
- Configure environment (.env):
OPENAI_API_KEY=your_openrouter_api_key_here
OPENROUTER_MODEL=openai/gpt-4o-mini
Get your API key at OpenRouter.