MailAgent is an AI-powered assistant designed to streamline your email tasks and enhance productivity. This project demonstrates the integration of tools, LangGraph, and Gmail, showcasing the power of modern AI agents.
- Agent-Based Experience:
- Proactive AI capable of performing specific tasks with minimal user input.
- Tool Integration:
- Seamless connection to Gmail API for managing emails (drafting, sending, and more).
- LangGraph:
- Leverages LangChain's LangGraph for orchestrating tasks and workflows efficiently.
- Gmail Functionality:
- Automated email drafting and sending.
- Handles user-specific email tasks dynamically.
- Python 3.12.7 or higher
- A Gmail account with API enabled (Enable Gmail API)
- OAuth credentials file (
credentials.json
)
- Clone the repository:
git clone https://github.com/khantkyaw6339/MailAgent.git
- Install dependencies:
pip install -r requirements.txt
- Open the main notebook file:
Agent.ipynb
- Run the notebook:
- Example query:
- send an email to example@gmail.com thanking them for coffee and inviting for dinner.
- Agent: Powered by LangChain for task management.
- Tools:
- GmailToolkit: Manages Gmail integration for email-related tasks.
- LangGraph:
- Provides structured task execution and advanced orchestration.
This project is licensed under the MIT License - see the LICENSE file for details.