Developer Specification

LeadMap AI Documentation

REST endpoints, data contracts, SSRF security guarantees, and deterministic scoring formulas.

Platform Overview

LeadMap AI is a multi-tenant B2B sales intelligence engine. It combines official Google Places discovery, SSRF-sandboxed DOM crawling, deterministic 0–100 opportunity scoring, and AI outreach generation into a unified API and web dashboard.

Zero Scraping

100% Places API (New)

TOS-Compliant, No IP Bans
Security

Multi-Tier SSRF Defense

Private IP & AWS Metadata Block
Mathematical

0–100 Explainable Score

4 Balanced 25pt Dimensions

Architecture Flow

Next.js 15+ Client (apps/web) ↓ HTTPS / REST (X-Workspace-ID, Bearer Sanctum) Laravel 11 Modular Monolith (apps/api) ├── PostgreSQL 16 (Relational Store + JSONB Signals) ├── Redis 7 (Cache, Sessions, Rate-Limits) └── Laravel Horizon (Redis Job Queues) ├── DiscoverBusinessesJob (Google Places API New) ├── AnalyzeWebsiteJob (SSRF-Sandboxed DOM Harvester) ├── AnalyzeLeadJob (Deterministic Scorer + AI Inference) ├── GenerateOutreachJob (Email / WhatsApp / LinkedIn) └── SyncCRMLeadJob (RiffCRM Provider Sync)