How sapatil2212/leadgenpilot works
LeadGenPilot combines a Maps-based lead-finding workflow with a broader multi-tenant lead-generation workspace. The documented core flow is to scrape local businesses, score and deduplicate leads, then deliver them to Google Sheets; the application also exposes CRM, targeting, campaign, AI, knowledge-base, and compliance capabilities. The graph includes both documented and indexed application branches. Evidence is limited to the README, SOURCE INDEX references, and sampled excerpts; unsampled internals and some wiring are therefore omitted.
Main entry points: server.ts Application server · main.ts CLI runner · knowledgeService.ts Knowledge base · crmRoutes.ts Lead CRM
Components 22
Lead discovery
- CLI runner
src/main.ts - Maps scraper
src/mapsScraper.ts - Lead scoring
src/leadScoring.ts - Lead deduplication
src/duplicateChecker.ts - Sheets delivery
src/googleSheetsWebhook.ts
Lead workspace
- Workspace UI
src/App.tsx - Lead CRM
crmRoutes.ts - Customer profiles
src/icp/icpService.ts - Scoring rules
src/scoring/scoringService.ts - Business profile
src/business/businessService.ts
Campaigns and outreach
- Campaign execution
src/campaign/campaignExecutor.ts - Outreach templates
src/templates/templateService.ts - Contact suppression
src/compliance/suppressionService.ts
AI and intelligence
- AI orchestration
src/ai/aiService.ts - Knowledge base
src/knowledge/knowledgeService.ts - AI assistant
src/assistant/assistantService.ts
Platform services
- Application server
server.ts - Tenant data access
src/tenancy/repository.ts - JSON utilities
src/storage.ts
Other components
- Operator
- Google Maps
- Google Sheets
Connections 24
- Operator → CLI runner: starts search
README.md - CLI runner → Maps scraper: runs scraper
README.md - Maps scraper → Google Maps: queries listings
README.md - CLI runner → Lead scoring: scores leads
README.md - CLI runner → Lead deduplication: checks duplicates
README.md - CLI runner → Sheets delivery: submits leads
README.md - Sheets delivery → Google Sheets: posts webhook
README.md - Operator → Workspace UI: uses workspace
src/App.tsx - Workspace UI → Lead CRM: imports CRM routes
src/App.tsx - Lead CRM → Tenant data access: queries tenant data
crmRoutes.ts - Application server → Lead CRM: imports CRM routes
server.ts - Application server → Campaign execution: imports campaign executor
server.ts - Application server → Contact suppression: imports suppression service
server.ts - Application server → Knowledge base: imports knowledge service
server.ts - Application server → Business profile: imports business service
server.ts - Application server → Customer profiles: imports ICP service
server.ts - Application server → Scoring rules: imports scoring service
server.ts - Application server → Outreach templates: imports template service
server.ts - Application server → AI assistant: imports assistant service
server.ts - Knowledge base → AI orchestration: uses AI service
src/knowledge/knowledgeService.ts - AI assistant → AI orchestration: uses AI service
src/assistant/assistantRoutes.ts - Knowledge base → Business profile: extracts business knowledge
src/knowledge/knowledgeRoutes.ts - Business profile → JSON utilities: uses file ingestion utilities
- Campaign execution → Contact suppression: checks opt-outs