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.
- Node.js installed on your machine
- Docker installed on your machine
- Google Cloud project with Gmail API enabled
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Install the dependencies:
npm install
-
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
-
Start Redis using Docker:
docker run -d -p 6379:6379 --name reachinbox-redis redis
-
Start the server:
npm run start
-
Open your browser and go to:
http://localhost:3000/auth/google
-
Login with your Google account to grant access to your Gmail.
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.
- 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 intoprocess.env
.