Skip to content

YASSINENFAI/LeadGenius

Repository files navigation

πŸš€ LeadGenius

Free AI-Powered Lead Generation & Email Outreach Tool

Find leads β€’ Generate personalized emails β€’ Automate outreach

License: MIT Node.js TypeScript

⭐ Star this repo β€’ πŸ› Report Bug β€’ πŸ’‘ Request Feature


πŸ“– What is LeadGenius?

LeadGenius is a powerful, FREE open-source tool that helps you:

  • πŸ” Find Leads Automatically - Discover potential customers from Google Maps
  • βœ‰οΈ Generate Personalized Emails - AI creates unique emails for each lead
  • πŸ“Š Track Everything - Monitor opens, replies, and conversions
  • πŸ€– Auto Follow-ups - Automatically send follow-ups after 3 days
  • πŸ“± Telegram Notifications - Get instant alerts on your phone
  • 🌍 Multi-Language Support - Works in English, Dutch, and Arabic

✨ Features

Feature Description
πŸ” Smart Lead Discovery Scrape Google Maps for businesses in any niche
πŸ€– 8 AI Providers OpenAI, Claude, GLM, Groq, DeepSeek, Kimi, MiniMax, Ollama
βœ‰οΈ Personalized Emails AI generates unique emails for each lead
πŸ“§ Email Templates 21 templates in 3 languages (63 total)
πŸ“Š Dashboard Real-time stats and activity feed
🎯 Lead Scoring AI scores leads 0-100 based on potential
πŸ“… Email Scheduling Schedule emails for the perfect time
πŸ”„ Auto Follow-ups Smart reminders after 3 days
πŸ“± Telegram Bot Get notified instantly
🌐 Multi-Language English, Dutch, Arabic

🎬 Demo

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  πŸ“Š DASHBOARD                                                β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Total Leads: 66     Analyzed: 34    Contacted: 31         β”‚
β”‚                                                              β”‚
β”‚  βœ… Email sent to MAAK Advocaten                            β”‚
β”‚  βœ… Email sent to Restaurant Parkheuvel                     β”‚
β”‚  πŸ“§ Email opened by Kennedy Van der Laan                    β”‚
β”‚  πŸ’¬ Reply from Stibbe                                       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • PostgreSQL database
  • Redis (optional, for background jobs)
  • AI API key (OpenAI, Claude, or use FREE GLM API)

Installation

# 1. Clone the repository
git clone https://github.com/YASSINENFAI/LeadGenius.git
cd LeadGenius

# 2. Install dependencies
npm install

# 3. Set up environment variables
cp .env.example .env
# Edit .env with your settings

# 4. Set up database
npx prisma migrate dev

# 5. Start the app
npm run dev

Access the App


βš™οΈ Configuration

Environment Variables

Create a .env file in the root directory:

# Database
DATABASE_URL="postgresql://user:password@localhost:5432/leadgenius"

# AI Provider (Choose one or more)
OPENAI_API_KEY="sk-..."
ANTHROPIC_API_KEY="sk-..."
GLM_API_KEY="..."  # FREE at z.ai

# Email (Choose one)
SMTP_HOST="smtp.gmail.com"
SMTP_USER="your-email@gmail.com"
SMTP_PASS="your-app-password"

# Telegram Bot (Optional)
TELEGRAM_BOT_TOKEN="..."
TELEGRAM_CHAT_ID="..."

πŸ€– AI Providers

LeadGenius supports 8 AI providers:

Provider Free Tier Quality Speed
GLM βœ… Yes ⭐⭐⭐⭐ ⚑⚑⚑⚑⚑
OpenAI ❌ No ⭐⭐⭐⭐⭐ ⚑⚑⚑⚑
Claude ❌ No ⭐⭐⭐⭐⭐ ⚑⚑⚑
Groq βœ… Limited ⭐⭐⭐⭐ ⚑⚑⚑⚑⚑
DeepSeek βœ… Limited ⭐⭐⭐⭐ ⚑⚑⚑⚑
Kimi ❌ No ⭐⭐⭐⭐ ⚑⚑⚑
MiniMax ❌ No ⭐⭐⭐⭐ ⚑⚑⚑
Ollama βœ… Local ⭐⭐⭐ ⚑⚑

πŸ’‘ Recommended: Start with GLM - it's completely FREE!


πŸ“± Telegram Bot Setup

Get instant notifications on your phone:

  1. Create a bot: Message @BotFather on Telegram
  2. Get your Chat ID: Message @userinfobot
  3. Add to .env:
    TELEGRAM_BOT_TOKEN="your-bot-token"
    TELEGRAM_CHAT_ID="your-chat-id"
  4. Configure in Settings: Go to Settings β†’ Notifications β†’ Telegram

πŸ“§ Email Setup

Option 1: Gmail SMTP (Easiest)

  1. Enable 2FA on your Gmail account
  2. Generate an App Password: Google Account β†’ Security β†’ App Passwords
  3. Add to .env:
    SMTP_HOST="smtp.gmail.com"
    SMTP_PORT="587"
    SMTP_USER="your-email@gmail.com"
    SMTP_PASS="your-16-char-app-password"

Option 2: Resend (Recommended for production)

  1. Sign up at resend.com
  2. Verify your domain
  3. Add to .env:
    RESEND_API_KEY="re_..."

🎯 How to Use

1. Find Leads

Go to "Agents" β†’ Enter search query β†’ Run
Example: "restaurants in Amsterdam"

2. Generate Emails

Go to "Pipeline" β†’ Select leads β†’ Click "Generate Email"
AI creates personalized emails for each lead

3. Send & Track

Review emails β†’ Send or Schedule
Dashboard shows opens, replies, and conversions

πŸ“Š Dashboard

The dashboard shows:

  • Total Leads: All discovered businesses
  • Analyzed: Leads scored by AI
  • Contacted: Emails sent
  • Conversion Rate: Success percentage
  • Recent Activity: Real-time feed
  • Email Performance: Open & reply rates

πŸ”„ Auto Follow-ups

LeadGenius automatically sends follow-ups:

  • ⏰ After 3 days from first email
  • πŸ”’ Max 2 follow-ups per lead
  • 🚫 Skips if lead opened or replied
  • πŸ“± Telegram notification on send

🌍 Multi-Language Templates

Available in 3 languages:

Template Type English Dutch Arabic
General βœ… βœ… βœ…
Restaurant βœ… βœ… βœ…
Real Estate βœ… βœ… βœ…
Healthcare βœ… βœ… βœ…
Legal βœ… βœ… βœ…
Tech βœ… βœ… βœ…
Retail βœ… βœ… βœ…
...

Total: 63 templates (21 types Γ— 3 languages)


πŸ› οΈ Tech Stack

Category Technology
Backend Node.js, Fastify, TypeScript
Frontend Next.js, React, TailwindCSS
Database PostgreSQL, Prisma ORM
Queue Redis, BullMQ
AI OpenAI SDK (multi-provider)
Email Nodemailer, Resend
Scraping Playwright, Cheerio

πŸ“ Project Structure

LeadGenius/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ modules/
β”‚   β”‚   β”œβ”€β”€ agent/          # Lead discovery agent
β”‚   β”‚   β”œβ”€β”€ outreach/       # Email generation & sending
β”‚   β”‚   └── scoring/        # Lead scoring
β”‚   β”œβ”€β”€ workers/
β”‚   β”‚   β”œβ”€β”€ scheduler.ts    # Scheduled emails
β”‚   β”‚   └── followup.ts     # Auto follow-ups
β”‚   β”œβ”€β”€ lib/
β”‚   β”‚   β”œβ”€β”€ ai/            # AI providers
β”‚   β”‚   └── notifications/  # Telegram bot
β”‚   └── routes/            # API endpoints
β”œβ”€β”€ web/
β”‚   β”œβ”€β”€ app/               # Next.js pages
β”‚   β”œβ”€β”€ components/        # React components
β”‚   └── lib/              # Frontend utilities
β”œβ”€β”€ prisma/
β”‚   └── schema.prisma     # Database schema
└── templates/            # Email templates

🀝 Contributing

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

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

Free to use for personal and commercial projects!


πŸ™ Support

If you find this project helpful, please consider:

  • ⭐ Starring this repository
  • πŸ› Reporting bugs via Issues
  • πŸ’‘ Suggesting features via Issues
  • πŸ“’ Sharing with others

πŸ“ž Contact

Created by Yassine


⭐ If you like this project, give it a star! ⭐

Made with ❀️ by Yassine

About

πŸš€ Free AI-Powered Lead Generation & Email Outreach Tool - Find leads, generate personalized emails, and automate your outreach workflow

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages