CoolFace
Apppublic

flexfitfury9/Arman-Lead-Gen

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿš€ LeadAI Pro - AI-Powered Lead Management & Email Marketing Platform

LeadAI Pro is a comprehensive AI-powered platform for lead management and email marketing, designed for deployment on Hugging Face Spaces. It provides a complete solution for managing leads, creating targeted email campaigns, and tracking performance with advanced analytics.

โœจ Features

๐ŸŽฏ Core Features

  • โ€”๐Ÿ“ CSV Upload & Data Processing - Upload client data with automatic validation and processing
  • โ€”๐Ÿค– AI-Powered Email Generation - Generate personalized emails using free Hugging Face models
  • โ€”๐Ÿ“Š Advanced Analytics & Tracking - Real-time performance metrics and engagement tracking
  • โ€”โฐ Scheduled Email Campaigns - Schedule emails for optimal delivery times
  • โ€”๐Ÿ‘ฅ Lead Management & Scoring - Organize and score leads with categories
  • โ€”๐ŸŽฏ Role-Based Access Control - Admin and User roles with different permissions

๐Ÿ”ง Technical Features

  • โ€”User Authentication - Secure login/signup with hashed passwords
  • โ€”SQLite Database - Persistent data storage for leads, campaigns, and tracking
  • โ€”Email Tracking - Track opens, clicks, and engagement metrics
  • โ€”AI Assistant - Free Hugging Face models for content generation and improvement
  • โ€”Export Functionality - Export campaign logs and lead data as CSV
  • โ€”3D Animated UI - Modern, professional interface with smooth transitions

๐Ÿš€ Quick Start

Local Development

  1. 1.Clone the repository
  2. 2.Install dependencies:
bash
   pip install -r requirements.txt
  1. 1.Run the application:
bash
   python start_local.py

Or directly:

bash
   streamlit run deploy_app.py

Hugging Face Spaces Deployment

  1. 1.Create a new Space on Hugging Face
  2. 2.Upload all files to your Space
  3. 3.Set the Space SDK to Streamlit
  4. 4.The app will automatically deploy!

Sample Data

Use sample_leads.csv to test the application with pre-loaded lead data.

๐Ÿ“‹ File Structure

LeadAI Pro/
โ”œโ”€โ”€ deploy_app.py          # Main Streamlit application
โ”œโ”€โ”€ requirements.txt       # Python dependencies
โ”œโ”€โ”€ runtime.txt           # Hugging Face Spaces runtime
โ”œโ”€โ”€ README.md             # This file
โ””โ”€โ”€ leadai_pro.db         # SQLite database (created automatically)

๐ŸŽฏ Usage Guide

1. Authentication

  • โ€”Sign Up: Create a new account with username, email, and password
  • โ€”Login: Access your account with secure authentication
  • โ€”Roles: Admin and User roles with different access levels

2. Lead Management

  • โ€”Upload CSV: Upload client data with columns: name, email, company, phone, title, industry
  • โ€”Categorize: Assign categories to organize leads (e.g., "Graphic Design Clients")
  • โ€”View & Filter: Browse leads with category and status filters
  • โ€”Export: Download lead data as CSV

3. Email Campaigns

  • โ€”Create Campaign: Set campaign name, subject, and email body
  • โ€”AI Generation: Use AI to generate subject lines and improve content
  • โ€”Targeting: Select leads by category or send to all
  • โ€”Scheduling: Send immediately or schedule for later
  • โ€”Tracking: Monitor delivery, opens, and clicks

4. AI Assistant

  • โ€”Email Generation: Generate personalized emails for specific leads
  • โ€”Content Improvement: Enhance existing email content
  • โ€”Subject Lines: AI-powered subject line suggestions
  • โ€”Free Models: Uses free Hugging Face models (no API costs)

5. Dashboard & Analytics

  • โ€”Real-time Metrics: View lead counts, email performance, and engagement rates
  • โ€”Visual Charts: Interactive charts for lead distribution and email performance
  • โ€”Campaign History: Track all campaigns and their results
  • โ€”Export Reports: Download campaign logs and analytics

๐Ÿ”ง Configuration

Environment Variables

The app works out of the box with default settings. For production use, you can configure:

  • โ€”SMTP Settings: For actual email sending (currently simulated)
  • โ€”Database: SQLite database (automatically created)
  • โ€”AI Models: Free Hugging Face models (automatically loaded)

Database Schema

  • โ€”Users: Authentication and role management
  • โ€”Leads: Client information and categorization
  • โ€”Campaigns: Email campaign details and scheduling
  • โ€”Email Tracking: Delivery and engagement tracking

๐ŸŽจ UI/UX Features

Modern Design

  • โ€”3D Animated Interface - Smooth transitions and hover effects
  • โ€”Professional Styling - Clean, modern design with gradient backgrounds
  • โ€”Responsive Layout - Works on desktop and mobile devices
  • โ€”Interactive Elements - Engaging buttons and animations

User Experience

  • โ€”Intuitive Navigation - Easy-to-use tabbed interface
  • โ€”Real-time Feedback - Progress bars and status updates
  • โ€”Error Handling - Graceful error handling with helpful messages
  • โ€”Data Validation - Input validation and CSV processing

๐Ÿ”’ Security Features

  • โ€”Password Hashing - Secure password storage with SHA-256
  • โ€”Input Validation - Email validation and data sanitization
  • โ€”SQL Injection Protection - Parameterized queries
  • โ€”Session Management - Secure user sessions

๐Ÿ“Š Analytics & Tracking

Email Metrics

  • โ€”Delivery Rate - Percentage of successfully sent emails
  • โ€”Open Rate - Percentage of emails opened by recipients
  • โ€”Click Rate - Percentage of emails with link clicks
  • โ€”Engagement Tracking - Real-time engagement monitoring

Lead Analytics

  • โ€”Lead Scoring - Automatic lead scoring (20-95 points)
  • โ€”Category Distribution - Lead distribution by category
  • โ€”Status Tracking - Lead status and progression
  • โ€”Performance Metrics - Campaign performance analysis

๐Ÿค– AI Features

Free AI Models

  • โ€”Text Generation - GPT-2 model for content generation
  • โ€”Subject Line Generation - AI-powered subject line suggestions
  • โ€”Content Improvement - Enhance existing email content
  • โ€”No API Costs - Uses free Hugging Face models

AI Capabilities

  • โ€”Personalization - Generate personalized content for each lead
  • โ€”Campaign Optimization - Suggest improvements for better engagement
  • โ€”Content Enhancement - Improve email readability and effectiveness
  • โ€”Smart Suggestions - AI-powered recommendations

๐Ÿš€ Deployment

Hugging Face Spaces

  1. 1.Create Space: Go to Hugging Face Spaces
  2. 2.Upload Files: Upload all project files
  3. 3.Set SDK: Choose Streamlit as the SDK
  4. 4.Deploy: The app will automatically deploy and be available

Requirements

  • โ€”Python 3.8+ - Compatible with Hugging Face Spaces
  • โ€”Streamlit - Web framework for the application
  • โ€”Free Resources - Uses only free Hugging Face models and services

๐Ÿ”ง Troubleshooting

Common Issues

  1. 1.CSV Upload Errors: Ensure CSV has required columns (name, email, company)
  2. 2.Email Sending: Currently simulated - configure SMTP for real sending
  3. 3.AI Model Loading: Models load automatically on first use
  4. 4.Database Issues: SQLite database is created automatically

Support

  • โ€”Error Messages: Clear error messages with solutions
  • โ€”Validation: Input validation prevents common errors
  • โ€”Logging: Detailed logging for debugging
  • โ€”Fallbacks: Graceful fallbacks for AI model failures

๐Ÿ“ˆ Performance

Optimization

  • โ€”Efficient Database Queries - Optimized SQL queries
  • โ€”Lazy Loading - AI models loaded only when needed
  • โ€”Caching - Session state management for better performance
  • โ€”Async Operations - Non-blocking email sending

Scalability

  • โ€”SQLite Database - Handles thousands of leads efficiently
  • โ€”Batch Processing - Efficient bulk email sending
  • โ€”Memory Management - Optimized memory usage
  • โ€”Error Recovery - Robust error handling and recovery

๐ŸŽฏ Use Cases

Small Businesses

  • โ€”Lead Management - Organize and track potential customers
  • โ€”Email Marketing - Send targeted campaigns to leads
  • โ€”Performance Tracking - Monitor campaign effectiveness
  • โ€”AI Assistance - Generate professional email content

Marketing Agencies

  • โ€”Client Management - Manage multiple client campaigns
  • โ€”Campaign Automation - Schedule and automate email campaigns
  • โ€”Analytics & Reporting - Detailed performance analytics
  • โ€”Content Generation - AI-powered content creation

Freelancers

  • โ€”Lead Organization - Categorize and score leads
  • โ€”Professional Emails - Generate polished email content
  • โ€”Campaign Tracking - Monitor email performance
  • โ€”Time Saving - Automate repetitive tasks

๐Ÿ”ฎ Future Enhancements

Planned Features

  • โ€”Advanced AI Models - Integration with more AI models
  • โ€”Email Templates - Pre-built email templates
  • โ€”A/B Testing - Test different email versions
  • โ€”Integration APIs - Connect with external services
  • โ€”Mobile App - Native mobile application
  • โ€”Advanced Analytics - More detailed reporting

Technical Improvements

  • โ€”Real Email Sending - SMTP integration for actual email delivery
  • โ€”Advanced Security - Enhanced security features
  • โ€”Performance Optimization - Further performance improvements
  • โ€”Database Migration - Support for different databases
  • โ€”API Development - REST API for external integrations

๐Ÿ“„ License

This project is open source and available under the MIT License.

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

๐Ÿ“ž Support

For support, please open an issue on the GitHub repository or contact the development team.


LeadAI Pro - Empowering businesses with AI-driven lead management and email marketing solutions. ๐Ÿš€