Skip to content

About

๐Ÿค– AI-powered email automation that classifies, routes, and manages Gmail messages using OpenAI GPT-4o. Features human-in-the-loop approval for secure email deletion and smart reply generation. Built with n8n/LangFlow.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

ย 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โšก SmartInbox AI: The Intelligent Email Gatekeeper

n8n LLM Gmail License Security

Workflow


๐Ÿ“‘ Table of Contents

Section Description
โšก Overview Project introduction and badges
๐ŸŒช๏ธ Problem The email overload challenge
๐Ÿ’ก Solution How SmartInbox AI solves it
๐Ÿ› ๏ธ Tech Stack Technologies used
๐ŸŽฎ Demo Live workflow visualization
๐Ÿง  Logic Flow How the system works
๐Ÿš€ Quick Start Setup instructions
๐Ÿ’ก Why This Project Key demonstrations
๐Ÿ”ง Use Cases Practical applications
๐Ÿ“Š Workflow Details Node breakdown
๐ŸŒ Connect Social links

๐ŸŒช๏ธ The Problem

We receive 120+ emails daily. 80% are noise. Traditional filters are "dumb"โ€”they either miss sophisticated phishing or accidentally archive important client communications.

๐Ÿ’ก The Solution: SmartInbox AI

An autonomous Human-in-the-Loop (HITL) orchestration that uses LLMs to think like a personal assistant. It doesn't just filter; it reasons through content to determine intent.

๐Ÿ› ๏ธ The Tech Stack

  • Orchestration: LangFlow / Flowise (LLM Workflow Builder)
  • Brain: OpenAI GPT-4o Model
  • Integrations: Gmail API (OAuth 2.0)
  • Logic: Custom JSON Output Parsing & Conditional Routing

๐ŸŽฎ Live Visual Workflow

Project Workflow Demo

Real-time execution of the AI Agent analyzing and routing incoming traffic.


๐Ÿง  Strategic Logic Flow

1. Ingestion & Analysis

The flow triggers on every new Gmail thread. The Spam Analyzer Agent extracts the intent, urgency, and sender credibility.

2. The Decision Engine

Using a Routing Node, the system forks into three distinct outcomes based on the AI's classification:

Outcome Action taken Security Level
๐Ÿšจ Spam Prepares deletion message & waits for human approval. High
โœ… Legitimate Marks as Read + Triggers an AI-generated draft reply. Low
โš ๏ธ Fallback Keeps in Inbox for manual review (Safety Net). Critical

3. The "Human-in-the-Loop" Edge

Unlike basic scripts, this project features a Wait for Approval node. This demonstrates an understanding of Enterprise AI Safetyโ€”ensuring the AI never performs a destructive action (deletion) without a final human confirmation.


๐Ÿš€ Quick Start (Importing the Flow)

  1. Clone the Repository:
    git clone https://github.com/manas-shukla-101/SmartInbox-AI.git
  2. Import JSON Configuration:
    • Open your dashboard (LangFlow/Flowise).
    • Click Upload/Import and select the SmartInbox-AI file.
  3. Connect API Credentials:
    • Input your OPENAI_API_KEY or change it to gemini model and use Gemini API.
    • Authenticate the Gmail Trigger node via Google Cloud Console.
  4. Deploy:
    • Hit Publish. Your agent is now live.

๐Ÿ’ก Why This Project?

This project demonstrates:

  • AI Integration: Real-world OpenAI implementation
  • Workflow Design: Complex logic with approval gates
  • Error Prevention: Human-in-the-loop for critical actions
  • Scalability: Modular nodes for easy extension
  • Best Practices: Clean separation of concerns

๐Ÿ”ง Use Cases

  • Personal email management
  • Business spam filtering
  • Automated customer support
  • Email workflow automation
  • AI prototype testing

๐Ÿ“Š Workflow Details

Node Function Type
Gmail Trigger Listens for new emails Trigger
SpamAnalyzer Classifies content AI Agent
Route by Classification Directs flow Router
Manual Approval Human verification Approval
Delete Spam Removes spam Action
Mark as Read Processes legitimate Action
Send Reply Auto-responds Action


Made with โค๏ธ by Manas Shukla


๐ŸŒ Socials:

Portfolio Instagram LinkedIn email


About

๐Ÿค– AI-powered email automation that classifies, routes, and manages Gmail messages using OpenAI GPT-4o. Features human-in-the-loop approval for secure email deletion and smart reply generation. Built with n8n/LangFlow.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Contributors