π¬ IAcine Mail | Intelligent Gmail Assistant with Local LLM
π Introduction
IAcine Mail is an intelligent Gmail assistant powered by a local LLM (Llama 3.2:b). It automatically reads, analyzes, and generates professional replies to your unread Gmail messages β all while preserving full data confidentiality by processing everything locally.
π Designed to boost productivity and reduce email overload, IAcine Mail turns your inbox into a well-oiled machine.
π Privacy-first: No emails are ever sent to external servers.
βοΈ Features
βοΈ Automated Email Retrieval β Reads unread messages from your Gmail inbox
βοΈ Smart Reply Generation β Uses a local LLM to craft high-quality responses
βοΈ Draft-Only Mode β Replies are saved as Gmail drafts for manual review
βοΈ OAuth 2.0 Integration β Securely connects to your Google account
βοΈ Terminal-based UI β Lightweight and straightforward
βοΈ Fully Local Execution β Ensures complete data privacy
ποΈ Technologies Used
- π Python 3.12 β Main language
- π© Google Gmail & People APIs β For mail and user info access
- π‘οΈ OAuth 2.0 β Authentication flow
- π§ Llama 3.2:b β Local language model (via Docker)
- π¨ pyfiglet + colorama β For stylized console output
- π¦ openai β (Optional) OpenAI GPT fallback
- β³ tqdm β For progress indicators
π¦ Installation
1οΈβ£ Clone the Repository
git clone https://github.com/Yacine-Mekideche/iacine-mail.git
cd iacine-mail
2οΈβ£ Install the dependencies
pip install -r requirements.txt
3οΈβ£ Add your credentials
Download your OAuth 2.0 file from Google Cloud Console, and place it in the root of the project as:
credentials.json
βοΈ Make sure to enable the following APIs in your GCP project: Gmail API People API
π On first run, a browser will prompt you to log into your Gmail and authorize access. A token.pickle file will be created for future sessions.
βΆοΈ Run the assistant
python API_mail2.py
Once authenticated, IAcine Mail will:
Scan your unread emails
Generate high-quality responses
Save them as drafts in your Gmail
π’ Emails will not be sent automatically β you remain in control.
Technical Architecture
π― Demo
π¬ Contact Me
π‘ Letβs connect! Whether youβre interested in AI, Machine Learning, or tech collaborations, feel free to reach out.
π© Email for business inquiries: contact@iacine.tech
Β© 2025 IAcine. All rights reserved.