Giter Club home page Giter Club logo

email-assistant's Introduction

Email-Assistant

AI Email Assistant that replies to email requests and tries to help.

This is an AI assistant that checks its email every few minutes and tries to help with any requests it receives, replying by email.

For example, you could forward emails you've received to it and ask it to explain them, summarize them, draft a response etc.

You would need to set up a mailbox for it to use, on your server or some other mail server. Once you've done that, replace the following variables in the code with yours:

ASSISTANT_EMAIL - email address of your assistant

ASSISTANT_EMAIL_PASSWORD - email password

ASSISTANT_IMAP_SERVER - incoming mail IMAP server

ASSISTANT_SMTP_SERVER - outgoing mail SMTP server

You may also need to change the IMAP and the SMTP ports in the code (lines 19 and 23) to match yours.

Currently the model uses GPT-3.5-TURBO from OpenAI. You'll need an OpenAI API key for it to work. You'd place it in an OPENAI_API_KEY environment variable.

If you have access to GPT-4, you can change line 103 accordingly for a higher quality assistant experience. Watch out for your API fees though. I also strongly suggest not publishing your assistant email broadly once you set it up and keeping it confidential to yourself and/or trusted parties only - anyone can query your assistant with that knowledge.

Finally, you'll need to set up a cron job and point it to the web address where you set up your script to run the code every few minutes. If you don't have a server you can run cron jobs on, you could use a service like https://cron-job.org/en/

email-assistant's People

Contributors

arbuge avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jordanovich

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.