Email_Agent is a lightweight email automation and processing agent. It connects to Gmail via API, uses OAuth authentication, and processes emails with NLP to extract entities or perform automated actions. It is designed as a modular foundation for building email-driven workflows and intelligent agents.
- Gmail API integration (send, read, list messages)
- OAuth 2.0 authentication support
- NLP entity extraction and processing
- Modular pipeline design for easy extension
- Simple CLI and Python API usage
- Ready to extend with connectors (IMAP, Outlook, etc.)
| File / Module | Purpose |
|---|---|
app.py |
Main entry point for the application |
gmail_client.py |
Gmail API wrapper and utilities |
nlp_processor.py |
NLP entity extraction and parsing |
G.auth.py |
OAuth authentication logic |
a.py |
Utility / example script |
credentials.json |
Gmail OAuth credentials (local use only) |
requirements.txt |
Project dependencies |
- Python 3.8+ (3.10 recommended)
- Gmail API enabled in Google Cloud project
- OAuth 2.0 credentials (
credentials.json)
git clone https://github.com/AshvinBari/Email_Agent.git
cd Email_Agent
python -m venv .venv
source .venv/bin/activate # Linux/macOS
.venv\Scripts\activate # Windows
pip install -r requirements.txt