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.
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.
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
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 Bucket | Typical Signal | Automated CRM Action |
|---|---|---|
| enterprise_ae | High volume, annual procurement, security/DPA | Instant Slack alert + AE calendar routing |
| growth_sdr | Production SaaS use case, active migration | Assign SDR sequence + tailored docs |
| self_serve | Indie builder, prototype, low daily volume | Send quickstart guide + self-serve pricing |
| disqualified | Homework, agency spam, off-topic pitch | Suppress 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
- Email routing classification API
- Customer churn detection API
- Intent classification API
- Structured output API
- Pricing & API keys
Model notes
One short email when a new decision model lands or a benchmark changes. No spam, unsubscribe in one click.