MailMind is a Python-based tool that reads incoming emails from your Zoho Mail account and uses OpenAI’s GPT models to generate smart, contextual replies. It creates draft responses directly in your inbox so you can review and send with confidence.
- 🔐 Secure OAuth2-based Zoho Mail integration
- 📥 Automatically fetches unread emails
- 💡 Uses GPT-4o or GPT-4o-mini to generate contextual replies
- 📝 Saves replies as drafts — never sends without your review
- 🧠 Keeps the tone helpful, polite, and human-like
- 🔄 Marks emails as read after processing
🔗 Click the image above to watch the demo video on Google Drive
Perfect for:
- Virtual assistants and support teams
- Busy professionals needing smart auto-drafts
- Customer service inboxes
- Anyone looking to streamline routine email replies
- Python 3.9+
- Zoho Mail API
- OpenAI GPT API (
gpt-4o
,gpt-4o-mini
) - Requests + LangChain
python-dotenv
for config- Logging for traceability
git clone https://github.com/aimaster-dev/mailmind.git
cd mailmind
pip install -r requirements.txt
Create a .env
file in the root directory:
ZOHO_OAUTH_TOKEN=your_zoho_token
OPENAI_API_KEY=your_openai_key
MODEL_NAME=gpt-4o-mini # or gpt-4o
python main.py
Once you run the script, you’ll find GPT-powered draft replies in Zoho Mail under the same thread as each unread message. Every draft is:
- Contextually aware
- Friendly and professional
- Ready for your review and manual send
- Authenticates with Zoho and retrieves unread messages
- Extracts content, sender info, and subject
- Passes it to the GPT model with tailored prompts
- Creates a contextual draft reply in your inbox
- Marks the email as read after processing
Coming soon – before/after examples of Zoho Mail draft replies
- Add UI for manual review
- Scheduled background tasks
- Gmail & Outlook support
- Style and tone customization
MIT – Use it freely, improve it as needed, and contribute back!