A smart agent that helps you manage your Gmail and Calendar. It extracts important information from your emails, categorizes them, and can help you schedule events.
- Email Extraction: Fetches recent emails from your Gmail inbox.
- Smart Filtering: Categorizes emails (e.g., Work, Personal, Spam).
- Calendar Integration: (Planned/In Progress) Helps schedule events based on email content.
- Chrome Extension: A popup extension to view agent status and recent emails.
- Python 3.8+
- Node.js (for building the extension, if applicable, though currently it's vanilla JS/HTML)
- Google Chrome (to load the extension)
- Google Cloud Console Project: You need a project with Gmail API enabled and
credentials.json.
-
Clone the repository (if you haven't already).
-
Set up the Python Environment:
python -m venv venv # Windows .\venv\Scripts\activate # Mac/Linux source venv/bin/activate
-
Install Dependencies:
pip install -r requirements.txt
-
Configuration:
- Copy
.env.exampleto.env:cp .env.example .env
- Edit
.envand add your OpenAI API Key:OPENAI_API_KEY=your_actual_api_key_here - Place your
credentials.json(from Google Cloud Console) in the root directory.
- Copy
- Start the backend server:
The server will start on
python src/server.py
http://127.0.0.1:8000.
- Open Google Chrome and navigate to
chrome://extensions/. - Enable Developer mode (top right toggle).
- Click Load unpacked.
- Select the
extensiondirectory in this project. - You should now see the Gmail Calendar Agent icon in your toolbar. Click it to interact with the agent.
src/: Python source code for the agent and server.extension/: Source code for the Chrome Extension (HTML, CSS, JS).tests/: Tests for the project.credentials.json: (Required) Google OAuth credentials.token.json: (Generated) Stores user access tokens.