Skip to content

vansh-motwani/smartEmailBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated Email Categorizer & Responder

Overview

This project is an automated email categorizer and responder using Gmail API.

It scans unread emails, categorizes them into predefined categories (e.g., Interested, Not Interested), sends appropriate replies, and moves them into corresponding labels.

Demo Link-

[https://drive.google.com/file/d/1AV7dDu0ccaMunSH0EviijsIeNafb1Hu8/view?usp=sharing]

Features

- Automatically fetches unread emails.

- Categorizes emails using custom logic.

- Sends predefined replies based on the category.

- Moves emails to corresponding Gmail labels.

- Handles token expiration and auto-refreshes tokens.

Setup & Usage

Prerequisites

- Node.js (16.x or above) - NPM or Yarn

- Reddis

Installation-

1. Clone the repository: ```bash git clone

2. Navigate to the project directory: cd

3. npm install

4. Install Redis through- (Redis Win 11 installation guide)[https://redis.io/blog/install-redis-windows-11/]

Configuration

1. Set up Gmail API credentials:

-Go to Google Cloud Console.

-Create a new project and enable the Gmail API.

-Download the credentials.json file.

2. Add your credentials and tokens in a .env file:

GMAIL_CLIENT_ID=

GMAIL_CLIENT_SECRET=

GMAIL_REFRESH_TOKEN=

Running the Application

1- See the previously mentioned link for Redis and start the Redis Server with the given steps.

2- run the NodeJS server "node src/app.js"

3- Check whether you get "Connected to Redis!" or not?

4- After getting success in previous steps, Use start and stop api to on/off the email automation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published