GithubHelp home page GithubHelp logo

email-assistant's Introduction

GPT-4 Email Assistant

This project provides a GPT-4 email assistant that responds to emails and fulfills various tasks for the user. The assistant has access to numerous commands, resources, and can interact with Google Calendar API. To set up the project, follow the instructions below.

Demo Video

GPT-4.Email.Assistant.mp4

YouTube link

Requirements

Python 3.8 or higher

Setup

  1. Install the required packages using requirements.txt:
pip install -r requirements.txt
  1. Follow the instructions at Google Calendar Simple API Getting Started to set up the Google Calendar API credentials. Copy the credentials to ~/.credentials

  2. Set up an email account for your bot which you will use to email to and the bot will monitor. I used Gmail and got an app password.

  3. Set up a serper.dev account to provide Search.

Environment Variables

To set up environment variables for the project, rename the sample_env file to .env and fill in the necessary information. Here's a description of each variable:

  • OPENAI_API_KEY: Your OpenAI API key for the GPT-4 model.
  • SERPER_API_KEY: Your serper.dev API key for search functionality.
  • EMAIL_USER: The email address of your bot.
  • EMAIL_PASSWORD: The API key or password for your bot's email account.
  • EXPECTED_SENDERS: A comma-separated list of email addresses that are allowed to send commands to the bot.
  • CALENDAR_USER: The google calendar user.
  • CALENDAR_TOKEN_PICKLE: File location of token pickle from Google Calendar install above.

Example:

OPENAI_API_KEY=your_openai_key
SERPER_API_KEY=your_serper_key
SCRAPINGANT_API_KEY=your_scrapingant_key (optional)
[email protected]
EMAIL_PASSWORD=your_bot_email_password
[email protected],[email protected]
[email protected]
CALENDAR_TOKEN_PATH=/home/user/.credentials/token.pickle

Running

Run the email assistant which runs in a loop - I just ran mine in screen and detach it:

python code/main.py

To test on console run with --testconsole argument:

python code/main.py --testconsole

Acknowledgements

email-assistant's People

Contributors

limyewjin avatar askory avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.