Indonesiaasiifdev/business-leads-ai-automation
Open-source AI sales & marketing OS: find leads, draft outreach in your own voice, approve, close. Self-host or use alatpintar.id
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
🚀 Sponsored by CoreClaw
Turn Google Maps Data Into Real Business Leads Find websites, emails, and business contacts from Google Maps in minutes.
Prospex
Open-source AI-powered GTM automation platform
Find leads · Score them with AI · Generate personalized outreach · Close deals
What is Prospex?
Prospex is a self-hosted, open-source platform that combines lead discovery, AI-powered outreach generation, and CRM management in one dashboard.
Think Apollo.io + Instantly.ai — but open-source, self-hosted, and free.
Features
| Module | Description |
|---|---|
| Lead Discovery | Scrape Google Maps with AI-powered lead scoring |
| AI Content Engine | Personalized Email, WhatsApp, Instagram DM, LinkedIn, Cold Call scripts per lead |
| Campaign Manager | Multi-query batch campaigns with real-time progress tracking |
| CRM Pipeline | Full lead lifecycle: New → Contacted → Replied → Won/Lost |
| Analytics | Conversion funnel, industry breakdown, campaign ROI |
| Export | Download leads as CSV, JSON, or vCard |
| API | REST API with Swagger docs + API key management |
Tech Stack
| Layer | Technology |
|---|---|
| Frontend | Next.js 16, App Router, shadcn/ui, Tailwind CSS, Recharts |
| Backend | NestJS 10, Prisma ORM, REST API |
| Database | PostgreSQL 16 |
| Queue | BullMQ + Redis 7 |
| AI | OpenAI SDK (supports OpenRouter & Ollama) |
| Monorepo | Turborepo + pnpm workspaces |
| Deploy | Docker Compose |
Quickstart
Prerequisites
1. Clone & install
git clone https://github.com/asiifdev/business-leads-ai-automation.git
cd business-leads-ai-automation
pnpm install
2. Configure environment
cp .env.example apps/api/.env
cp .env.example packages/database/.env
Edit apps/api/.env with your values:
DATABASE_URL="postgresql://prospex:yourpassword@localhost:5432/prospex"
OPENAI_API_KEY=sk-your-key-here # or leave empty for mock AI
OPENAI_MODEL=gpt-4o-mini
# Optional: use OpenRouter or Ollama
# OPENAI_BASE_URL=https://openrouter.ai/api/v1
3. Start infrastructure
docker compose up -d # starts PostgreSQL + Redis
pnpm --filter @prospex/database db:push # push schema
pnpm --filter @prospex/database exec prisma generate
4. Run development servers
# Terminal 1 — API (port 3001)
pnpm --filter @prospex/api dev
# Terminal 2 — Dashboard (port 3000)
pnpm --filter @prospex/web dev
Open http://localhost:3000 and you're in.
Swagger API docs: http://localhost:3001/api/docs
Project Structure
prospex/
├── apps/
│ ├── web/ # Next.js 16 dashboard
│ ├── api/ # NestJS REST API
│ └── marketing/ # Landing page
├── packages/
│ ├── database/ # Prisma schema + migrations
│ ├── types/ # Shared TypeScript types
│ └── config/ # Shared eslint/tsconfig
├── docker-compose.yml # Local dev (PostgreSQL + Redis)
├── docker-compose.prod.yml # Production stack
└── nginx.conf # Nginx reverse proxy config
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /api/health | Health check |
GET/POST | /api/campaigns | List / create campaigns |
GET/PATCH/DELETE | /api/campaigns/:id | Campaign detail / update / delete |
POST | /api/scraper/campaigns/:id/start | Start scraping + AI pipeline |
GET | /api/leads | List leads (filter by ?campaignId=) |
PATCH | /api/leads/:id/crm | Update CRM status |
GET | /api/analytics | Overview stats |
GET | /api/analytics/industries | Leads by industry |
GET | /api/export/leads/csv | Export leads as CSV |
GET | /api/export/leads/json | Export leads as JSON |
GET | /api/export/leads/vcard | Export leads as vCard |
GET/POST/DELETE | /api/settings/api-keys | API key management |
GET/POST | /api/settings/integrations | Integration config |
Full interactive docs at /api/docs (Swagger).
Using OpenRouter / Ollama
Prospex supports any OpenAI-compatible AI provider:
OpenRouter (access Claude, Gemini, Llama, etc.):
OPENAI_API_KEY=sk-or-your-openrouter-key
OPENAI_BASE_URL=https://openrouter.ai/api/v1
OPENAI_MODEL=anthropic/claude-haiku-4-5
Ollama (local, fully offline):
OPENAI_API_KEY=ollama
OPENAI_BASE_URL=http://localhost:11434/v1
OPENAI_MODEL=llama3.2
Production Deployment
cp .env.example .env
# Edit .env with production values (strong passwords, real API key)
docker compose -f docker-compose.prod.yml up -d
This starts: PostgreSQL + Redis + NestJS API + Next.js + Nginx.
Development
pnpm install # install all dependencies
pnpm dev # start all apps (requires turbo)
pnpm build # build all apps
pnpm --filter @prospex/database db:studio # Prisma Studio (DB browser)
License
MIT — see LICENSE.
Similar Projects
Discover other similar projects and AI models.
A curated list of AI tools for finding customers, social listening, and automated outreach. The modern growth stack.
AI Marketing Suite for Claude Code. 15 marketing skills with parallel subagents — audit any website, generate copy, email sequences, ad campaigns, content calendars, competitive intelligence, and client-ready PDF reports.
Prospecção open source do Google Maps ao Pix: acha negócios no Maps, gera um site-prévia com o nome de cada um, conversa no WhatsApp e cobra por Pix, Mercado Pago ou Stripe. Pagou, fecha sozinho. Roda no seu PC, VPS ou Vercel, com API para agentes (Claude Code, Codex, n8n).
Free open-source Google Maps scraper — Chrome extension to extract business leads (name, address, phone, website, email) from Google Maps, Yandex Maps & 2GIS and export to CSV/Excel. No API key, no account.
Claude-first paid-media operations skill for Claude Code across 12 ad platforms (Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, Apple, Amazon, Reddit, Pinterest, Snapchat, X): source-grounded audits, deterministic findings and evidence coverage, versioned JSON reports, and capability-gated account changes.
Free, open-source Google Maps scraper for lead generation (Python, no API key, no Docker). Exports name, phone, email, website, rating and Instagram/Facebook/LinkedIn/TikTok/YouTube/X links to CSV. 100 places with emails in 44 s; --grid beats Google's 120 cap. MX email check, ad-pixel detection. Skill for Claude Code, Codex and Cursor.
Open-source self-hosted email marketing. Manage your own newsletters at a fraction of the cost.