Skip to content
All case studies
SignatureSaaS / Sales Enablement

Cap Compass

AI lead qualification & CRM automation

In short: Cap Compass (SaaS / Sales Enablement) is a case study from Daniyal Alam’s portfolio: AI lead qualification & CRM automation. Core stack: React 19, TypeScript, Vite.

An AI-driven lead-qualification pipeline that bridges email (Calendly via Gmail), research (Perplexity) and CRM (HubSpot) — capturing, scoring and routing inbound opportunities automatically.

Industry
SaaS / Sales Enablement
Scope
Flagship, multi-system platforms
Core stack
React 19 · TypeScript · Vite · Express

The problem

Sales teams waste hours manually researching and qualifying inbound leads, with brittle integrations across email, research and CRM.

The solution

A Gmail/Pub-Sub webhook captures Calendly bookings, Perplexity researches the company, AI assigns weighted fit scores, and qualified leads sync to HubSpot — managed via a drag-and-drop Kanban.

Technical challenges

The engineering problems this build had to get right.

  • Event-driven async pipeline with transactional consistency
  • Real-time multi-user dashboard updates
  • Secure multi-provider OAuth with token refresh

Architecture

Frontend
React 19 + TypeScript + Vite + Tailwind + Radix
Backend
Node.js + Express
Database
PostgreSQL (Knex)
Infrastructure
Google Cloud Pub/Sub, Perplexity API, HubSpot API, Socket.IO

Implementation — what shipped

Automated lead capture from Calendly (Gmail Pub/Sub)
AI company research via Perplexity
Weighted fit scoring
HubSpot CRM sync
Drag-and-drop Kanban pipeline
Lead detail drawer with editable email drafts
Real-time notifications (Socket.IO)
Live integration settings (OAuth)

Engineering notes

Lesson for similar SaaS builds: design for event-driven async pipeline with transactional consistency and real-time multi-user dashboard updates up front — these are the parts that are expensive to retrofit once the feature list grows.

Technologies

  • React 19
  • TypeScript
  • Vite
  • Express
  • PostgreSQL
  • Knex
  • Perplexity
  • HubSpot
  • Socket.IO
  • Google Cloud

Building something similar?

A 30-minute discovery call is enough to scope the approach and a realistic budget. Related at DanixSoft: AI & Machine Learning.