Find leads β’ Generate personalized emails β’ Automate outreach
β Star this repo β’ π Report Bug β’ π‘ Request Feature
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
| 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 |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π 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 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Node.js 18+
- PostgreSQL database
- Redis (optional, for background jobs)
- AI API key (OpenAI, Claude, or use FREE GLM API)
# 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- π Frontend: http://localhost:3000
- π API: http://localhost:3001
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="..."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!
Get instant notifications on your phone:
- Create a bot: Message @BotFather on Telegram
- Get your Chat ID: Message @userinfobot
- Add to
.env:TELEGRAM_BOT_TOKEN="your-bot-token" TELEGRAM_CHAT_ID="your-chat-id"
- Configure in Settings: Go to Settings β Notifications β Telegram
- Enable 2FA on your Gmail account
- Generate an App Password: Google Account β Security β App Passwords
- Add to
.env:SMTP_HOST="smtp.gmail.com" SMTP_PORT="587" SMTP_USER="your-email@gmail.com" SMTP_PASS="your-16-char-app-password"
- Sign up at resend.com
- Verify your domain
- Add to
.env:RESEND_API_KEY="re_..."
Go to "Agents" β Enter search query β Run
Example: "restaurants in Amsterdam"
Go to "Pipeline" β Select leads β Click "Generate Email"
AI creates personalized emails for each lead
Review emails β Send or Schedule
Dashboard shows opens, replies, and conversions
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
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
Available in 3 languages:
| Template Type | English | Dutch | Arabic |
|---|---|---|---|
| General | β | β | β |
| Restaurant | β | β | β |
| Real Estate | β | β | β |
| Healthcare | β | β | β |
| Legal | β | β | β |
| Tech | β | β | β |
| Retail | β | β | β |
| ... |
Total: 63 templates (21 types Γ 3 languages)
| Category | Technology |
|---|---|
| Backend | Node.js, Fastify, TypeScript |
| Frontend | Next.js, React, TailwindCSS |
| Database | PostgreSQL, Prisma ORM |
| Queue | Redis, BullMQ |
| AI | OpenAI SDK (multi-provider) |
| Nodemailer, Resend | |
| Scraping | Playwright, Cheerio |
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
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Free to use for personal and commercial projects!
If you find this project helpful, please consider:
- β Starring this repository
- π Reporting bugs via Issues
- π‘ Suggesting features via Issues
- π’ Sharing with others
Created by Yassine
- GitHub: @YASSINENFAI
- Email: azffhk@gmail.com
- Telegram: @FGMANO
β If you like this project, give it a star! β
Made with β€οΈ by Yassine