Loading...
Works

IntelliMail 2024

AI-powered email client with RAG pipeline processing 100K+ emails, achieving 50ms semantic search vs 2s+ keyword search (40x speedup). Features idempotent Stripe webhook processing with Redis deduplication and dead-letter queue, reaching 98% payment success rate and $8K MRR.

IntelliMail Interface

RAG Pipeline & Search

  • Email Processing: Chunked 100K+ emails into semantic segments for efficient vector embedding generation
  • Embedding Generation: Generated embeddings via OpenAI ada-002 model with optimized batch processing
  • Vector Storage: Stored embeddings in pgvector with HNSW index for efficient similarity search
  • Search Performance: Achieved 50ms semantic search vs 2s+ keyword search—40x speedup improvement
  • RAG Retrieval: Context-aware responses using retrieved email chunks for accurate AI-generated replies
AI Assistant InterfaceEmail Composition

Email Management Features

  • Multi-Provider Support: Seamless integration with Gmail, Office365, and other major email providers via Aurinko API
  • Real-time Synchronization: Live email updates across all devices with intelligent threading and organization
  • Smart Threading: Intelligent conversation grouping and organization for better email flow management
  • Advanced Filtering: Custom labels, categories, and automated sorting with machine learning assistance
  • Secure Authentication: OAuth 2.0 integration without storing passwords, powered by Clerk authentication
Email Threading

Technical Architecture

IntelliMail features a sophisticated full-stack architecture built on Next.js 14 with App Router, utilizing tRPC for end-to-end type safety and Prisma ORM for robust database operations. The AI layer integrates OpenAI's latest models with a custom RAG search system using Orama and vector embeddings for semantic email search capabilities.

  • Frontend: Next.js 14 with TypeScript, Tailwind CSS, Radix UI components, and smooth Framer Motion animations
  • Backend: tRPC for type-safe APIs, Prisma ORM with PostgreSQL, and Zod for schema validation
  • AI Integration: OpenAI GPT models, custom embeddings pipeline, and advanced prompt engineering for email contexts
  • Search Engine: Orama full-text search with vector embeddings for semantic understanding and RAG capabilities
  • Authentication: Clerk integration with secure session management and role-based access control
Search Interface

Payment Infrastructure & Reliability

  • Idempotent Processing: Implemented idempotent Stripe webhook event processing with Redis deduplication to prevent duplicate charges
  • Dead-Letter Queue: Built dead-letter queue for failed webhook events with automated retry using exponential backoff
  • Payment Success Rate: Achieved 98% payment success rate through robust error handling and retry mechanisms
  • Revenue Growth: Reached $8K MRR through reliable subscription management and billing automation
  • Subscription Tiers: Multiple pricing tiers with usage-based billing and seamless upgrade/downgrade flows
Premium Dashboard

Key Innovations

  • RAG-Powered Search: Revolutionary email search using Retrieval Augmented Generation for contextual and semantic queries
  • Multi-Provider Architecture: Unified interface for multiple email providers without compromising security or performance
  • Intelligent AI Assistant: Context-aware AI that understands email patterns, relationships, and communication styles
  • Real-time Collaboration: Live synchronization and sharing capabilities for team-based email management
  • Privacy-First Design: End-to-end encryption, local processing options, and granular privacy controls
  • Keyboard-First Navigation: Comprehensive keyboard shortcuts and command palette for power users

IntelliMail represents the future of email management, combining the power of modern AI with intuitive design and robust engineering. The application demonstrates advanced full-stack development capabilities, AI integration expertise, and a deep understanding of user experience design in productivity applications.

© 2026 Tasnimul Mohammad Fahim. All Rights Reserved.