lead qualification scoring api

B2B lead qualification and ICP scoring API

Score inbound signup notes, company enrichment JSON, and demo requests into enterprise AE, growth SDR, self-serve, or disqualified buckets—with calibrated probabilities in one fast API pass.

Interactive B2B lead qualification & ICP router
Input state evaluated

VP Engineering at Series B payments platform. Looking to replace 1.8M monthly GPT-4o classification calls with a sub-50ms decision API. Need SOC 2 and annual invoice.

Primary choice confidence
enterprise_ae (97%)
Est. model spend / 1k calls
$0.0038 (~201 tok)
AUTO-ESCALATE · enterprise_ae + book_ae_call P(book_ae_call) = 0.95
icp_tier → enterprise_ae 97%
curl --fail-with-body https://clef-flash.com/api/v1/decisions \
  -H "authorization: Bearer $CLEF_API_KEY" \
  -H "content-type: application/json" \
  --data-binary @- <<'CLEF_DECISION'
{
  "model": "cloudflare/clef-flash",
  "threshold": 0.82,
  "state": "VP Engineering at Series B payments platform. Looking to replace 1.8M monthly GPT-4o classification calls with a sub-50ms decision API. Need SOC 2 and annual invoice.",
  "questions": {
    "icp_tier": {
      "type": "choice",
      "instructions": "Which sales routing bucket matches this inbound signup?",
      "criteria": {
        "enterprise_ae": "high volume (>20k/day), security review, multi-team rollout or annual contract",
        "growth_sdr": "active production startup with clear API use case and near-term budget",
        "self_serve": "indie builder, prototype or small volume suited for self-serve checkout",
        "disqualified": "student homework, spam submission or unrelated solicitation"
      }
    },
    "book_ae_call": {
      "type": "noul",
      "instructions": "Should this lead trigger an immediate Account Executive alert in Slack?",
      "criteria": {
        "true": "verified enterprise volume, compliance requirement or annual procurement timeline",
        "false": "self-serve developer, early exploration or low-fit submission"
      }
    }
  }
}
CLEF_DECISION
Pro API key · $19 / 30 days · no auto-renewal

Ship this in production with a $19 Pro key

2,000 decisions/day, 8 concurrent requests in flight, text + JSON + image states, and an API key emailed in about a minute.

Replace noisy rule-based point tables with semantic ICP scoring

Traditional marketing automation scores leads by adding arbitrary points for job title keywords—missing a technical founder writing "we run 1.8M monthly calls and need SOC 2" while over-scoring students who pick "VP" from a dropdown.

Clef-Flash reads both structured CRM enrichment JSON and free-text use-case notes together, returning calibrated probabilities across your exact sales tiers plus a binary book_ae_call flag so high-intent buyers hit Slack in seconds.

  • Evaluates company size, domain, traffic volume, and free-text intent in one JSON state.
  • Zero prompt drift: always picks strictly from your configured CRM routing buckets.
  • Pairs with HubSpot, Salesforce, Attio, and Clearbit/Clay enrichment webhooks.

Lead routing tiers and decision contract

Define plain-English ideal customer profile criteria per tier and calibrate your Slack/CRM escalation threshold directly in the interactive studio above.

ICP BucketTypical SignalAutomated CRM Action
enterprise_aeHigh volume, annual procurement, security/DPAInstant Slack alert + AE calendar routing
growth_sdrProduction SaaS use case, active migrationAssign SDR sequence + tailored docs
self_serveIndie builder, prototype, low daily volumeSend quickstart guide + self-serve pricing
disqualifiedHomework, agency spam, off-topic pitchSuppress sales alert; log cleanly in CRM

Predictable unit economics for high-volume freemium funnels

PLG startups receiving thousands of weekly signups cannot afford $3 per thousand LLM qualification calls when 80% of signups are hobbyists. At $0.019 per million input tokens on Clef-Flash, scoring 10,000 enriched signup payloads costs pennies while running inside your signup webhook at sub-50 ms model latency.

Upgrade from the free playground to a $19 Pro key (2,000 decisions/day) or $79 Scale key (20,000 decisions/day) whenever your signup funnel goes live.

Multi-question CRM enrichment in one forward pass

Along with icp_tier and book_ae_call, a single POST /api/v1/decisions call can also classify primary_use_case and urgency_score (up to 8 questions total)—populating four HubSpot or Salesforce fields cleanly with zero regex extraction.

Every decision returns exact probabilities per option so RevOps teams can audit why a lead routed to AE vs self-serve and tighten thresholds over time.

Frequently asked questions

Can I send Clay, Clearbit, or HubSpot JSON directly inside state?

Yes. Pass any valid JSON object up to 100,000 characters in state on /api/v1/decisions—no need to flatten CRM properties into awkward prompt prose.

How does Clef-Flash differ from asking GPT-4o to score leads?

Clef-Flash cannot invent labels outside your CRM enum, runs at ~39 ms median model latency, outputs calibrated probabilities per tier, and costs a fraction of chat-model token rates.

Can we change our ICP criteria per product line or region?

Yes. Because criteria travel in each request body with zero server-side state, each signup form or region can pass its own custom ICP rules.

How quickly can we test our real signup form payloads?

Use the interactive studio above to generate a verified curl or TypeScript call, test 25 decisions/day free in the playground, or activate a $19 Pro API key in about a minute.

Keep reading

Model notes

One short email when a new decision model lands or a benchmark changes. No spam, unsubscribe in one click.