Screencast.from.09-06-24.05.35.49.PM.IST.webm
Email Classifier is a web application that categorizes emails into predefined categories such as Important, Promotional, Social, Marketing, and Spam using Gemini API. The application uses Google OAuth for authentication and the Gmail API to fetch emails.
- User authentication with Google OAuth.
- Fetch emails from Gmail using the Gmail API.
- Classify emails into categories: Important, Promotional, Social, Marketing, and Spam and Generral using Gemini API.
- Refresh access tokens using refresh tokens for continued access.
- Display categorized emails in a user-friendly interface.
Clone the repository
git clone https://github.com/KrishavRajSingh/Email-Classifier.git
cd Email-Classifier
Install the pakages
npm i
Install next
npm i next
Copy .env.example into .env
cp .env.example .env
Fill your secrets
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
NEXTAUTH_SECRET=your-nextauth-secret
Run the application
npm run dev