Every B2B company faces the same challenge: a graveyard of closed-lost deals sitting dormant in their CRM.
The Hidden Cost
- πΈ $1.5M - $3.75M in lost revenue annually (typical mid-market company)
- β° 30-40% of these deals could have been won with better timing
- π Zero systematic process for re-engaging lost opportunities
- π Manual monitoring consumes 50+ hours monthly with minimal results
Set a reminder β Get busy β Forget about it β Never follow up
The result? Millions in recoverable revenue left on the table.
ReviveIQ is an intelligent AI agent that automatically monitors your closed-lost deals 24/7 and identifies the perfect moment to resurrect them based on real-world trigger events.
| π― Revival Signal | Why It Matters | Detection Method |
|---|---|---|
| π New Funding | Budget constraints eliminated, renewed purchasing power | Crunchbase API Integration |
| π Leadership Change | New decision-maker = fresh perspective and priorities | LinkedIn/Apollo Data |
| π° Competitor Problems | Their current solution isn't working out | Google News API |
| π Hiring Surge | Rapid growth signals increased budget and urgent needs | Job Posting Analysis |
| β° Annual Timing | Budget cycle renewals and contract expiration windows | Smart Date Calculation |
| π Product Launches | New initiatives require new tools and solutions | Company News Monitoring |
β
Automatic Task Creation - Ready-to-send tasks appear in HubSpot with full context
β
AI-Generated Outreach - Personalized emails tailored to the specific trigger event
β
Complete Context - Full deal history, signal details, and talking points
β
Native HubSpot Integration - Seamless workflow within your existing CRM
β
Measurable ROI - Track revenue recovered from resurrected deals
Experience ReviveIQ instantly with sample data:
npm install
npm run demo# 1. Clone and install
git clone https://github.com/yourusername/reviveiq.git
cd reviveiq
npm install
# 2. Configure environment
cp .env.example .env
# Edit .env and add your HubSpot access token
# Get it from: Settings β Integrations β Private Apps
# 3. Setup custom properties
npm run setup
# 4. Run ReviveIQ
npm startFor a company with 500 closed-lost deals:
500 deals scanned
β 50 revival signals detected (10% discovery rate)
β 10 deals successfully won (20% conversion rate)
β $250,000 annual revenue recovered
+ 50 hours saved monthly on manual research
| Company Size | Lost Deals/Year | Recoverable Revenue | Time Saved |
|---|---|---|---|
| Small (100 deals) | 100 | $50,000 | 20 hrs/month |
| Mid-Market (500 deals) | 500 | $250,000 | 50 hrs/month |
| Enterprise (2000 deals) | 2000 | $1,000,000 | 200 hrs/month |
Based on average deal size of $25,000 and industry-standard conversion rates
- Continuous scanning of closed-lost deals
- Multi-source signal detection across 6+ data providers
- Parallel processing for optimal performance (~2 seconds per deal)
- Smart filtering to focus on high-value opportunities
- Google Gemini Integration - Advanced language model for context analysis
- Confidence Scoring - Each opportunity rated 1-10 for prioritization
- Personalized Outreach - Custom emails generated for each trigger event
- Talking Points - Ready-to-use conversation starters for sales calls
- Automatic task creation with AI-generated content
- Deal notes with complete signal analysis
- Custom property updates for tracking
- Native HubSpot workflow compatibility
- Revenue recovery tracking
- Signal effectiveness metrics
- Conversion rate analysis
- Time savings measurement
- Comprehensive error handling
- API retry logic with exponential backoff
- Graceful fallbacks when services are unavailable
- Detailed logging for debugging
- Environment-based configuration
πΊ See Sample Output
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π₯ ReviveIQ - Dead Deal Resurrection Agent
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π Step 1: Fetching closed-lost deals from HubSpot...
β Found 47 closed-lost deals
π Step 2: Analyzing deals for revival signals...
π Analyzing: Stripe - Enterprise Platform ($50,000)
β Found 2 signal(s): FUNDING, ANNUAL_TIMING
π‘ Stripe raised $250M Series G - budget constraints eliminated
π
12 months since deal close - budget renewal window
π― Confidence: 9/10
β
Task created in HubSpot
π Analyzing: Shopify - Growth Package ($30,000)
β Found 1 signal(s): LEADERSHIP_CHANGE
π New VP of Engineering hired 2 weeks ago
π― Confidence: 7/10
β
Task created in HubSpot
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β¨ RESULTS
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β±οΈ Execution Time: 18.7s
π Deals Scanned: 47
π₯ Revival Opportunities: 8
π° Potential Pipeline: $340,000
π Discovery Rate: 17.0%
β Avg Confidence: 7.8/10
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
Success! Check your HubSpot Tasks tab for action items!
flowchart LR
A[HubSpot<br/>Closed-Lost Deals] --> B[Signal<br/>Detection]
B --> C[AI<br/>Analysis]
C --> D[HubSpot<br/>Task Creation]
D --> E[Sales Rep<br/>Outreach]
E --> F[Deal<br/>Resurrection]
- Fetch - Retrieves closed-lost deals from HubSpot with smart filtering
- Detect - Checks 6+ external signals across multiple data sources
- Analyze - AI generates personalized outreach and confidence scores
- Act - Creates tasks in HubSpot with complete context
- Track - Monitors outcomes and measures ROI
# HubSpot Integration (Required)
HUBSPOT_ACCESS_TOKEN=your_access_token_here
# AI Analysis (Recommended - Free Tier Available)
GEMINI_API_KEY=your_gemini_api_key# External Signal Detection (Optional but Recommended)
CRUNCHBASE_API_KEY=your_key # For funding detection
GOOGLE_NEWS_API_KEY=your_key # For competitor news detection
APOLLO_API_KEY=your_key # For leadership and hiring signals
# Agent Behavior
SCAN_MONTHS_BACK=12 # How far back to scan (default: 12)
CONFIDENCE_THRESHOLD=7 # Minimum confidence to create task (1-10)
MAX_DEALS_TO_SCAN=100 # Process limit per run- HubSpot: Settings β Integrations β Private Apps β Create app with
crm.objects.dealsscope - Google Gemini: aistudio.google.com/app/apikey - Free tier: 1,500 requests/day
- Crunchbase: data.crunchbase.com/docs - Free tier available
- Google News: newsapi.org - Free tier: 100 requests/day
- β B2B SaaS Companies using HubSpot CRM
- β Sales Teams with 100+ closed-lost deals annually
- β Revenue Operations tracking pipeline recovery
- β Growth Teams focused on expansion revenue
- β° Timing Issues - "Call us next quarter/year"
- π° Budget Constraints - "We can't afford this right now"
- π’ Organizational Changes - "We're in transition"
- π Competing Priorities - "We're not ready yet"
| Command | Description | Use Case |
|---|---|---|
npm run demo |
Run with sample data | Testing without HubSpot setup |
npm run test |
Verify configuration | Check API keys and connections |
npm run setup |
Create custom properties | First-time HubSpot setup |
npm run seed |
Add demo deals | Populate test data in HubSpot |
npm start |
Run production mode | Daily/weekly deal scanning |
npm run dev |
Development mode | Auto-reload during development |
- Runtime: Node.js 18+
- AI Model: Google Gemini (free tier available)
- CRM: HubSpot API v3
- Architecture: Modular, event-driven design
- Crunchbase API - Funding data
- Google News API - Competitor intelligence
- Apollo API - Leadership and hiring insights
- Custom crawlers - Additional signal detection
{
"axios": "^1.6.0",
"dotenv": "^16.3.1"
}Minimal dependencies by design - production-ready, lightweight, and fast
- Node.js 18 or higher
- HubSpot account (free tier works)
- Google Gemini API key (free tier available)
-
Clone the repository
git clone https://github.com/yourusername/reviveiq.git cd reviveiq -
Install dependencies
npm install
-
Configure environment
cp .env.example .env # Edit .env with your API keys -
Setup HubSpot properties
npm run setup
-
Run the demo
npm run demo
-
Go live with your data
npm start
- β Environment Variables - All sensitive keys stored securely
- β No Data Storage - Processes data in memory only
- β HubSpot Scoped Access - Minimal required permissions
- β API Rate Limiting - Respects all provider limits
- β Error Handling - No leaked credentials in logs
| Traditional Approach | ReviveIQ Advantage |
|---|---|
| Manual reminders that get forgotten | Automated 24/7 monitoring |
| Generic "checking in" emails | AI-personalized outreach tied to real events |
| No external signal awareness | 6+ data sources for trigger detection |
| Time-consuming manual research | Instant context generation |
| Focus only on new leads | Mines gold from existing relationships |
"While everyone fights over new leads, ReviveIQ recovers revenue from deals you've already invested in."
- π― Higher Conversion Rates - Warm relationships + perfect timing
- π° Lower CAC - No acquisition cost for existing prospects
- β‘ Faster Sales Cycles - Skip the education phase
- π Measurable Impact - Track every dollar recovered
Company Profile: Mid-market B2B SaaS, 500 employees, $50M ARR
Before ReviveIQ:
- 480 closed-lost deals in past 12 months
- 0 systematic re-engagement process
- Estimated $2.4M in missed opportunities
After ReviveIQ (6 months):
- 52 revival opportunities identified
- 11 deals successfully resurrected
- $275,000 in recovered revenue
- 60+ hours saved on manual research
ROI: 24x return on implementation cost
- β Core signal detection (6 types)
- β Google Gemini AI integration
- β HubSpot CRM integration
- β Automated task creation
- β CLI interface
- π Slack Integration - Daily digest of new opportunities
- π Email Automation - Auto-send approved outreach
- π Advanced Analytics - Dashboard with conversion metrics
- π Custom Signals - User-defined trigger events
- π Multi-CRM Support - Salesforce, Pipedrive integration
- π Web UI - Browser-based configuration and monitoring
We welcome contributions from the community! Here's how you can help:
- Report Bugs - Open an issue with reproduction steps
- Suggest Features - Share your ideas for improvements
- Submit PRs - Fix bugs or add new signal detectors
- Improve Docs - Help others get started faster
- Share Results - Tell us about your success stories
git clone https://github.com/yourusername/reviveiq.git
cd reviveiq
npm install
npm run devBuilt with cutting-edge AI technology:
- Google Gemini for intelligent analysis
- HubSpot API for seamless CRM integration
- Node.js for robust server-side execution
Special thanks to the open-source community for supporting innovation in sales technology.
ReviveIQ - Turning lost opportunities into recovered revenue
Built for modern B2B sales teams who refuse to leave money on the table
Built with β€οΈ by Himanshu Soni β aka h30s