A Python application that automatically fetches your emails with the Gmail API, generates AI-powered summaries using Gemini LLM, and creates daily task summaries in Todoist.
- Clone the repository:
git clone https://github.com/ItsMacto/Todoist-AI-Email-Summarizer.git
cd email-summary-manager- Set Up Your Environment and Install Dependencies:
pip install -r requirements.txt- Generate Todoist API key here and store it for set up
- Generate Google Gemini API key here and store it for set up
- Allow access to gmail
- Ensure you have a valid credentials.json file downloaded from the Google Cloud Console (with Gmail API enabled)
- Place the credentials.json file in the project root alongside main.py.
- Run the application and follow fill in the config:
python main.py- Optional: Set up a cron job to run the script daily at a specific time. For example, to run the script at 8:00 AM every day, add the following cron job:
0 8 * * * /usr/bin/python3 /path/to/email-summary-manager/main.py- Add support for multiple email accounts
- Better prompting and filtering for emails
- Dynamic priority level
- Better logging
- Typing to functions