Git Product home page Git Product logo

reachinbox-assignment's Introduction

Reachinbox-assignment

Overview

ReachInbox is a revolutionary AI-driven platform transforming cold outreach. This project automates the process of reading and categorizing unread emails from your Gmail account. It uses the Google Gmail API to read emails and classify them as "Interested", "Not Interested", or "More information" based on their content. Depending on the classification, an appropriate response is sent back to the sender.

Getting Started

Prerequisites

  • Node.js installed on your machine
  • Docker installed on your machine
  • Google Cloud project with Gmail API enabled

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-directory>
  2. Install the dependencies:

    npm install
  3. Create a .env file in the root directory and add your Google Client ID and Client Secret:

    id=your-google-client-id
    secret=your-google-client-secret
    aisec=your-google-api-key
  4. Start Redis using Docker:

    docker run -d -p 6379:6379 --name reachinbox-redis redis

Running the Server

  1. Start the server:

    npm run start
  2. Open your browser and go to:

    http://localhost:3000/auth/google
    
  3. Login with your Google account to grant access to your Gmail.

Usage

After logging in with your Google account, the application will automatically check for unread emails, categorize them, and send appropriate responses based on the classification.

Libraries Used

  • express: A minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
  • bullmq: A powerful, modern library for creating background jobs and processing them with workers, backed by Redis.
  • googleapis: Google's officially supported Node.js client library for using Google APIs.
  • express-session: A session middleware for Express that allows you to manage user sessions.
  • dotenv: A zero-dependency module that loads environment variables from a .env file into process.env.

reachinbox-assignment's People

Contributors

abhi200206 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.