All Docs
FeaturesSaaS FactoryUpdated February 19, 2026

Introducing the Deal Pipeline & AI-Powered Lead Scoring — v1.0.72

Introducing the Deal Pipeline & AI-Powered Lead Scoring

v1.0.72 ships a complete, autonomous sales pipeline — from lead capture and intelligent scoring through to deal management and Inngest-powered automation. This is one of the most significant Sales & Revenue milestones on the platform to date.


The Problem We Solved

Most SaaS products live and die by their sales pipeline. Traditionally, that means hiring SDRs to qualify leads, AEs to manage deals, and RevOps to keep the CRM clean. It's expensive, slow, and human-bottlenecked.

With this release, the SaaS Factory platform takes the entire pipeline off the human critical path.


What Shipped

A 100-Point Lead Scoring Engine

At the heart of this release is computeLeadScore() — a fully deterministic, 100-point lead scoring model that evaluates every inbound lead across four dimensions:

  • Firmographic signals (up to 30 pts): Who is the company? How big are they? Are they in a target industry?
  • BANT qualification (up to 25 pts): Do they have the Budget, Authority, Need, and Timeline to buy?
  • ICP Match (up to 25 pts): Does the lead's title and role align with our Ideal Customer Profile?
  • Engagement quality (up to 20 pts): Where did they come from, and how have they engaged?

The scoring model is deterministic and auditable — every point is earned through explicit logic, not a neural network that can't explain itself. Scores can be recalculated on demand as lead data is enriched.

Full Deal Pipeline CRUD

The new deals tRPC router exposes everything needed to run a pipeline:

  • Leads: create, list, get, update, rescore, and pull aggregate stats.
  • Deals: create, list, get, advance through stages, update, and add manual activity entries.
  • Pipeline summary: a single endpoint that returns an aggregated view of the entire funnel by stage — count, value, and probability-weighted pipeline.

Stage probability defaults are applied the moment a deal is created. Every stage advancement is recorded in an append-only activity log, so you always have a complete history of how a deal moved.

Live Kanban Dashboard

The DealPipelineDashboard component gives you a real-time Kanban view of every deal in the pipeline. It polls live tRPC data every 30 seconds — no manual refresh, no stale state.

Inngest Automation Hooks

Two Inngest events fire at the most important moments in the lead lifecycle:

  • leads/created — fire and forget into your automation stack the moment a lead enters the system.
  • leads/converted — trigger onboarding, suppress from marketing, notify customer health systems.

These hooks mean the pipeline doesn't just track deals — it actively drives the rest of the platform.


Under the Hood

Three new database tables power the system:

  • leads — full lead records with scoring data embedded.
  • deals — deal records linked to leads, with stage and value tracking.
  • dealActivities — an append-only log of every action taken on a deal.

The entire system is built on the same tRPC + Postgres + Inngest stack used across the rest of the platform. There's no new infrastructure to manage.


What This Means

As of v1.0.72, the platform can:

  1. Capture a lead from any source.
  2. Instantly score it across four qualification dimensions.
  3. Create a deal, assign stage probabilities, and track it through to close.
  4. Fire Inngest events to trigger the rest of the platform at every key moment.
  5. Surface the entire pipeline on a live Kanban board.

All without a single human in the sales loop.


Read the full technical documentation in the Deal Pipeline & AI-Powered Lead Scoring feature guide.