Coder Social home page Coder Social logo

kamalakanta01 / outbox-backend Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 12.51 MB

a node.js server that read and replies to your unread emails

Home Page: https://onebox-backend.vercel.app/

JavaScript 100.00%
ai email-sender express gemini-api mongodb nodejs nodemon oauth2 oauth2-server

outbox-backend's Introduction

Email Automation with AI

Introduction

This project aims to automate email processing and replies using Google's Generative AI and Gmail APIs. By leveraging AI, the system can understand the context of received emails and assign automatic labels. It then generates appropriate replies based on the content of the emails one at a time.

Prerequisites

Before running the application, make sure you have the following:

  • Node.js installed on your machine
  • Google Cloud Platform project with the Gmail API enabled
  • Google API credentials in JSON format
  • A valid API key for Google's Generative AI

Installation

  1. Clone the repository:
  2. git clone <repository_url>
  3. Install dependencies:
  4. npm install
  5. Set up environment variables:
  6. Create a .env file in the project root directory and add the following:

    GEMINI_API_KEY=<your_google_api_key>

    Replace <your_google_api_key> with your actual Google API key.

Usage

To start the server, run:

npm start

Endpoints

  • /login: Redirects to Google login consent screen for OAuth2 authentication.
  • /auth/google/callback: Handles Google's redirect after user login.
  • /emails: Fetches emails, processes them using AI, and sends automated replies.

Contributing

Contributions are welcome! Please read the contributing guidelines before getting started.

License

This project is licensed under the MIT License.

outbox-backend's People

Contributors

kamalakanta01 avatar

Watchers

 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.