NeuroMail is an AI-powered Gmail Assistant built using LangChain and Streamlit.
It allows you to control and manage your Gmail using natural language, with human-in-the-loop approval for sensitive actions like sending emails.
- 📧 Read, draft, and send Gmail messages using AI
- 🧠 Powered by LangChain agents
- 🔐 Secure Gmail OAuth authentication
- 🧑⚖️ Human-in-the-loop approval before executing actions
- 🌐 Simple Streamlit-based UI
- Python
- LangChain
- Streamlit
- Gmail API
- Google OAuth 2.0
Check out the full walkthrough of NeuroMail – AI Gmail Assistant on YouTube 👇
git clone https://github.com/Tridib2510/NeuroMail.git
cd NeuroMailuv add -r requirements.txt- Go to Google Cloud Console
- Create a new project (or select an existing one)
- Enable the Gmail API
- Go to APIs & Services → Credentials
- Create OAuth 2.0 Client ID
- Download the file and rename it to:
credentials.json
- Place
credentials.jsonin the project root directory
Run the configuration script:
python config.py- This will open a browser window
- Sign in with your Gmail account
- Grant the required permissions
- After successful authentication, a
token.jsonfile will be generated automatically
Once authentication is complete, start the Streamlit app:
streamlit run app.pyThe Gmail Assistant UI will open in your browser 🎉
NeuroMail/
│
├── app.py # Main Streamlit application
├── config.py # Gmail OAuth configuration
├── credentials.json # Google OAuth credentials (not committed)
├── token.json # Generated OAuth token
├── tools/ # Gmail & LangChain tools
├── utils/ # Helper utilities
├── requirements.txt
└── README.md
- Do NOT commit
credentials.jsonortoken.jsonto GitHub - Keep your Google credentials private
- Gmail actions may require manual approval depending on configuration
This project is open-source and available under the MIT License.
Tridib Roy Chowdhury
GitHub: https://github.com/Tridib2510
⭐ If you like this project, consider giving it a star!