Back to The Times of Claw

AI for Demand Generation

AI-powered demand generation: automate lead scoring, intent signals, and campaign attribution to fill your pipeline with qualified buyers.

Mark Rachapoom
Mark Rachapoom
·9 min read
AI for Demand Generation

AI for Demand Generation

AI for demand generation means using machine learning to score leads, detect buyer intent signals, attribute pipeline to the campaigns that drove it, and prioritize outbound effort on accounts most likely to buy now — rather than working from static lists and gut instinct. DenchClaw connects your demand generation data to your CRM so marketing and sales are working from the same signal, not separate spreadsheets.

Demand generation is where pipeline is born. The quality of your demand gen directly determines the quality of your pipeline — and AI dramatically improves that quality by surfacing the accounts with real buying intent, not just demographic fit. The shift from ICP-based targeting to intent-based targeting is the biggest leverage point in modern demand generation, and it requires AI to execute at scale.

The Demand Generation Problem Without AI#

Most demand gen programs suffer from the same dysfunction:

  1. Marketing optimizes for MQL volume — because that's what's measured
  2. Sales ignores most MQLs — because historical quality has been low
  3. Marketing and sales argue about lead quality — because they're using different definitions
  4. Pipeline forecasts are optimistic — because marketing over-counts influenced pipeline
  5. Attribution is a political exercise — everyone wants credit, no one has the data to prove it

AI doesn't fix the dysfunction by itself — but it gives you the data to have a fact-based conversation about each of these problems.

The Core AI Demand Generation Capabilities#

1. Lead Scoring#

Traditional lead scoring is rules-based: +10 for visiting the pricing page, +5 for opening an email, +20 for requesting a demo. The problem is the weights are arbitrary and don't account for interactions between signals.

AI-driven lead scoring learns which combinations of signals actually predict conversion:

-- Lead score model based on historical conversion data
SELECT 
  lead_id,
  company_name,
  email,
  -- Behavioral signals
  pricing_page_visits,
  feature_page_visits,
  case_study_downloads,
  demo_request_submitted,
  email_opens_last_30d,
  email_clicks_last_30d,
  -- Firmographic fit
  icp_fit_score,
  employee_count,
  industry,
  -- Composite AI score (weighted from historical conversion analysis)
  ROUND(
    (CASE WHEN demo_request_submitted THEN 40 ELSE 0 END) +
    (pricing_page_visits * 3) +
    (feature_page_visits * 2) +
    (case_study_downloads * 5) +
    (email_clicks_last_30d * 2) +
    (icp_fit_score * 0.3),
    0
  ) AS lead_score,
  -- Lead grade
  CASE 
    WHEN lead_score >= 80 THEN 'A'
    WHEN lead_score >= 60 THEN 'B'
    WHEN lead_score >= 40 THEN 'C'
    ELSE 'D'
  END AS lead_grade
FROM v_leads
WHERE created_date >= CURRENT_DATE - INTERVAL '90 days'
ORDER BY lead_score DESC

The difference between rules-based and AI scoring: rules-based gives every pricing page visitor the same score. AI scoring knows that pricing page visits from a VP at a 200-person SaaS company convert at 3x the rate of the same visit from a student email address.

2. Account-Level Intent Signals#

Individual lead scoring is table stakes. Account-level intent detection is the next level:

  • Which companies in your TAM are actively researching your category right now?
  • Which accounts are spiking on content about problems you solve?
  • Which companies have employees that visited your website from multiple different IPs in the last 30 days?

Intent data sources (Bombora, G2, LinkedIn) provide this at the account level. DenchClaw ingests these signals and combines them with your first-party behavioral data:

# Import intent data from CSV export
denchclaw import intent --file bombora-export.csv --map "company:company_name,score:intent_score,topics:intent_topics,date:signal_date"
 
# View accounts with high intent
denchclaw query "
  SELECT 
    a.company_name,
    a.assigned_rep,
    i.intent_score,
    i.intent_topics,
    a.icp_fit_score,
    (a.icp_fit_score * 0.5 + i.intent_score * 0.5) AS combined_priority_score
  FROM v_accounts a
  JOIN v_intent_signals i ON a.company_name = i.company_name
  WHERE i.signal_date >= CURRENT_DATE - INTERVAL '7 days'
    AND combined_priority_score >= 70
  ORDER BY combined_priority_score DESC
"

3. Campaign Attribution#

Attribution is the hardest problem in demand generation. Every channel wants credit; the truth is usually that multiple touchpoints contributed to a deal. AI builds multi-touch attribution models that give credit where it's due:

-- Multi-touch attribution: pipeline attributed to each campaign
SELECT 
  campaign_name,
  campaign_type,
  campaign_spend,
  COUNT(DISTINCT deal_id) AS influenced_deals,
  SUM(arr) AS total_arr_influenced,
  -- U-shaped attribution (40% first, 40% last, 20% middle)
  SUM(
    CASE 
      WHEN touchpoint_position = 'first' THEN arr * 0.40
      WHEN touchpoint_position = 'last' THEN arr * 0.40
      ELSE arr * 0.20 / NULLIF(middle_touchpoint_count, 0)
    END
  ) AS attributed_arr,
  -- ROI
  ROUND(
    SUM(CASE 
      WHEN touchpoint_position = 'first' THEN arr * 0.40
      WHEN touchpoint_position = 'last' THEN arr * 0.40
      ELSE arr * 0.20 / NULLIF(middle_touchpoint_count, 0)
    END) / NULLIF(campaign_spend, 0),
    1
  ) AS pipeline_roi
FROM v_campaign_touchpoints
WHERE deal_close_date >= CURRENT_DATE - INTERVAL '12 months'
GROUP BY campaign_name, campaign_type, campaign_spend
ORDER BY pipeline_roi DESC

4. ICP Refinement from Closed-Won Data#

AI analyzes your closed-won deals to continuously refine your ICP:

-- ICP analysis from closed-won deals
SELECT 
  industry,
  employee_count_range,
  revenue_range,
  tech_stack_primary,
  deal_source,
  COUNT(*) AS deals_won,
  AVG(arr) AS avg_arr,
  AVG(sales_cycle_days) AS avg_cycle_days,
  ROUND(COUNT(*)::float / total_deals_in_segment * 100, 1) AS win_rate_pct
FROM v_closed_deals
CROSS JOIN (SELECT COUNT(*) AS total_deals_in_segment FROM v_closed_deals WHERE outcome IN ('won','lost')) t
WHERE outcome = 'won'
  AND close_date >= CURRENT_DATE - INTERVAL '12 months'
GROUP BY industry, employee_count_range, revenue_range, tech_stack_primary, deal_source, total_deals_in_segment
ORDER BY deals_won DESC, avg_arr DESC

The output isn't "here's who we're targeting" — it's "here's who we're actually winning, at what deal size, and how fast." This feeds back into your demand gen targeting to improve lead quality continuously.

5. Outbound Prioritization#

For outbound demand generation (SDR teams), AI ranks accounts by combined intent + ICP fit + relationship signal:

# Build daily outbound priority list
denchclaw view create OutboundPriorityList \
  --object Account \
  --filter "lead_stage = 'prospect' AND assigned_rep IS NOT NULL" \
  --compute "combined_priority_score" \
  --sort "combined_priority_score" \
  --descending \
  --limit 50

Each morning, each SDR sees their top 50 accounts sorted by priority. No more working from alphabetical lists or gut feel.

Building Your AI Demand Gen Stack in DenchClaw#

Step 1: Define Your Lead Object and Score Fields#

denchclaw object create Lead
 
denchclaw field add Lead --name lead_score --type number
denchclaw field add Lead --name lead_grade --type select --options "A,B,C,D"
denchclaw field add Lead --name lead_source --type select \
  --options "organic-search,paid-search,content,event,referral,outbound,product-led,social"
denchclaw field add Lead --name intent_score --type number
denchclaw field add Lead --name icp_fit_score --type number
denchclaw field add Lead --name first_touch_campaign --type text
denchclaw field add Lead --name last_touch_campaign --type text
denchclaw field add Lead --name mql_date --type date
denchclaw field add Lead --name sql_date --type date
denchclaw field add Lead --name lead_to_opp_days --type number

Step 2: Set Up Lead Routing#

AI-scored leads route to the right team automatically:

  • Grade A leads → immediate SDR or AE routing, same-day follow-up SLA
  • Grade B leads → SDR sequence started within 4 hours
  • Grade C leads → nurture sequence
  • Grade D leads → marketing nurture only, no sales touch

Step 3: Build the Demand Gen Dashboard#

Create a weekly demand gen dashboard that tracks:

  • MQL volume by source and grade
  • MQL-to-SQL conversion rate by source
  • Pipeline generated by campaign
  • Average deal size by lead source
  • Top 10 highest-scoring new leads this week

Step 4: Close the Loop Between Sales and Marketing#

The most critical part of AI demand gen is feeding sales outcomes back to marketing:

# Weekly lead quality feedback to marketing
denchclaw query "
  SELECT 
    lead_source,
    COUNT(*) AS total_leads,
    SUM(CASE WHEN became_opportunity = true THEN 1 ELSE 0 END) AS leads_to_opp,
    SUM(CASE WHEN deal_outcome = 'won' THEN 1 ELSE 0 END) AS leads_to_close,
    AVG(CASE WHEN deal_outcome = 'won' THEN arr END) AS avg_arr_from_source
  FROM v_leads
  WHERE created_date >= CURRENT_DATE - INTERVAL '90 days'
  GROUP BY lead_source
  ORDER BY avg_arr_from_source DESC NULLS LAST
"

When marketing sees which sources produce the highest-quality leads (not just the most leads), they can reallocate budget toward the channels that actually drive revenue.

The AI Demand Gen Flywheel#

AI demand generation creates a self-improving system:

  1. AI scores leads → better leads get prioritized → more closes
  2. More closes → more closed-won data → better ICP model
  3. Better ICP model → better targeting → higher lead quality
  4. Higher lead quality → better lead scoring → less waste

Each cycle makes the system smarter. Within 12–18 months, the difference between AI-driven and manually-managed demand gen is dramatic — not just in lead volume but in the ratio of pipeline quality to marketing spend.

Learn more about how DenchClaw structures your sales data in what is DenchClaw. See how demand gen data feeds into advanced AI sales analytics. And read AI for sales coaching to ensure your team converts the pipeline demand gen builds.

FAQ#

Q: How is AI lead scoring different from marketing automation scoring (HubSpot, Marketo)? Traditional marketing automation scoring is rule-based — you manually assign point values to activities. AI scoring learns from your historical conversion data to find the signal combinations that actually predict purchase. The result is more accurate prioritization with less manual maintenance.

Q: Do you need a separate intent data provider, or does DenchClaw generate intent signals? DenchClaw analyzes your first-party intent signals (website behavior, product usage, email engagement). For third-party intent data (companies researching your category across the web), you need a provider like Bombora, G2 Buyer Intent, or LinkedIn Intent. DenchClaw ingests both.

Q: How do you measure demand generation ROI? The cleanest metric is pipeline generated per marketing dollar, calculated with multi-touch attribution. Secondary metrics: MQL-to-close rate by source and average ARR from each channel. Avoid optimizing for MQL volume alone — it leads to quantity over quality.

Q: How long does it take to build a reliable AI lead scoring model? You need 6–12 months of lead-to-close data to train a reliable model. In the interim, use a hybrid approach: AI-scored behavioral signals combined with manually-set ICP weights. Revisit and recalibrate the model quarterly.

Q: Should marketing or sales own lead scoring? Lead scoring should be a joint process: marketing owns the methodology and tooling, sales defines what a qualified lead looks like based on their conversion experience. RevOps or sales ops typically owns the ongoing calibration. Monthly marketing-sales alignment meetings keep the definition current.

Ready to try DenchClaw? Install in one command: npx denchclaw. Full setup guide →

Mark Rachapoom

Written by

Mark Rachapoom

Building the future of AI CRM software.

Continue reading

DENCH

© 2026 DenchHQ · San Francisco, CA