Automatically check your emails, draft replies, and store them in the respective folder for your review!
To get started, ensure you have the following:
- Gmail account
- Access to Gmail API. Follow these instructions to set it up.
- OpenAI API Key. Get it from OpenAi and paste it on the .env file.
- Python v3.10 or higher installed on your system
- (Optional) python3-venv module for creating virtual environments.
- Clone the repository and navigate to the EmailManager folder:
git clone https://github.com/slovanos/EmailManager
cd EmailManager
- (Optional) Create and activate a virtual environment:
python3 -m venv .myvenv
source .myvenv/bin/activate
- Install the required dependencies:
pip3 install -r requirements.txt
-
Configure the parameters.py file with your preferences, instructions, and personal data.
-
Run Email Manager from the command line with:
(.myvenv)$ python3 email-replier.py
This will fetch your emails and draft replies based on your instructions or guidelines. The responses will be pushed to your draft folder, allowing you to check, edit, and verify them before sending.
For checking emails without replying, use the following command:
(.myvenv)$ python3 email-replier.py --check
Logs for fetched and replied emails can be found under the logs folder.
ENJOY!
Note: The first time you launch it, you'll need to authorize the app via a browser logged into your Gmail account. This will download a token.json file to your local project folder. For subsequent uses, this file enables access without further authorization (~week). Should you encounter any authorization issues later, simply remove token.json and authorize again.