lead-routing
БесплатноЗапускает вложенные скриптыНе проверенLead routing and lead assignment by company size for product-led (PLG) signups. A list of signup emails in; for each one the company behind the domain, its…
от crustdata★ 17 звёзд на GitHubОб этом скилле
Lead Routing
Input: signup emails, optionally rules. Output: a segment and an owner per email, the rule config, and a leads-to-buckets image.
Tool dependencies
Crustdata MCP at https://mcp.crustdata.com/mcp (tools mode). Tools: crustdata_company_search_db_v2 and
crustdata_credit_costs (free). Put every argument inside params and pass format: "json". A local Chrome,
Chromium or Playwright for the PNG (optional).
- Pass
user_query(the user's request, verbatim) on every call that accepts it (crustdata_credit_coststakes no params). - At the start of each run, call
crustdata_credit_costsonce (free) for this account's rates. Never quote prices from memory.<row rate>below is the company search per-result rate plus any premium group it bills for thefieldsreturned (headcounthere). - Spend is the sum of each answer's
credits.spent_this_call, kept in a runningspent. Never a formula. For the snippet in the user's app: Node 18+ and a Crustdata API key inCRUSTDATA_API_KEY.
Rules
Default (snippets/routing-rules.json). Segments are checked top to bottom; the first one whose
minHeadcount the company reaches wins. Owners rotate round-robin inside a segment.
{
"segments": [
{ "name": "Enterprise", "minHeadcount": 1000, "owners": ["Enterprise AE 1", "Enterprise AE 2"] },
{ "name": "Mid-market", "minHeadcount": 100, "owners": ["Mid-market AE"] },
{ "name": "Self-serve", "minHeadcount": 0, "owners": ["Product-led (no rep)"] }
],
"personal": "Self-serve",
"unknown": "Self-serve"
}
If the user names their own thresholds or reps ("over 500 is enterprise, Sam and Lee take it"), write them into this shape, show it back, and route with it.
1 · Estimate (free), then ask
Lowercase and dedupe the emails, and drop invalid ones. Free mail is any email whose domain's first label is one of: gmail, googlemail, yahoo, ymail, hotmail, outlook, live, msn, icloud, me, mac, aol, proton, protonmail, pm, gmx, yandex, mail, zoho, hey, fastmail, qq, 163. It costs nothing. Count the unique work domains.
Cost: unique work domains × <row rate> is likely (one row). unique work domains × 6 × <row rate> is the most
(3 rows, plus the all-domains retry). Empty results are free.
A handful of emails: say the estimate in one line and go on.
A list: tell the user and wait.
300 emails, 212 company domains, 41 personal (free). About 212 ×
credits, at most 1,272 ×
. Cap it at 10?
A budget in the prompt is
maxCredits; do not ask.
2 · Route
- Company, one call per unique work domain (calls can run in parallel). Never one
inover many domains: squatter pages on big domains crowd small companies out of the answer, and every extra row is billed.crustdata_company_search_db_v2with{"field": "basic_info.primary_domain", "type": "=", "value": "<domain>"},limit: 3,sorts: [{"field": "headcount.total", "order": "desc"}],fields: ["basic_info.name", "basic_info.primary_domain", "basic_info.all_domains", "basic_info.logo_permalink", "basic_info.employee_count_range", "headcount.total", "taxonomy.professional_network_industry", "locations.country"],user_query. No usable row: once more onbasic_info.all_domains, same shape. Before each call, check that3 × <row rate>fits undermaxCredits; if not, route that domain and the rest byunknownand setstopped: "budget". - Pick the company from the rows: keep the first (biggest) row whose name (lowercased, letters and digits only, 3+ characters)
starts with the domain's first label, or the first label starts with it. If none matches, keep the row only when
it is the only one. The kept row's
primary_domainorall_domainsmust contain the domain. A shared host likenotion.soresolves to none and the lead goes tounknown. - Segment and owner, no call. Free mail goes to
personal(why: "personal email"). No company goes tounknown(why: "company not found"), and noheadcount.totaltoo (why: "company size unknown"). Otherwise the first segment whoseminHeadcountthe headcount reaches (why: "16,894 people"). Owners rotate round-robin inside each segment, in email order.
Never invent a headcount or a company for an unknown domain.
3 · Show it
Save result.json in this shape:
{"leads": [{"email": "", "segment": "Enterprise", "owner": "Enterprise AE 1", "why": "16,894 people",
"company": "", "domain": "", "logo": "", "headcount": 0, "size": "10001+", "industry": "", "country": ""}],
"segments": [{"name": "Enterprise", "minHeadcount": 1000, "count": 1}],
"rules": {"segments": [{"name": "", "minHeadcount": 0, "owners": [""]}], "personal": "Self-serve", "unknown": "Self-serve"},
"estimate": {"emails": 0, "work": 0, "personal": 0, "domains": 0, "credits_likely": 0, "credits_max": 0},
"spent": 0, "total": 0, "fetched": 0, "complete": true, "stopped": null}
A lead with
Установить lead-routing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл lead-routing?
Lead routing and lead assignment by company size for product-led (PLG) signups. A list of signup emails in; for each one the company behind the domain, its headcount, a segment (Enterprise, Mid-market, Self-serve) and an owner from simple rules, with round-robin across several reps. Ships a ready rule config (routing-rules.json) and a copy-paste Node backend function that applies it on every new signup with a timeout, a per-domain cache and a safe fallback, so no lead is dropped. Personal emails (gmail, outlook) and unknown domains go to a fallback segment. Use when someone asks to route leads, assign signups to sales reps, segment signups by company size, decide which leads go to enterprise vs self-serve, build lead routing or territory rules, or triage inbound signups for sales.
Как установить скилл lead-routing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lead-routing запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic