Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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_costs takes no params).
  • At the start of each run, call crustdata_credit_costs once (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 the fields returned (headcount here).
  • Spend is the sum of each answer's credits.spent_this_call, kept in a running spent. Never a formula. For the snippet in the user's app: Node 18+ and a Crustdata API key in CRUSTDATA_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

  1. Company, one call per unique work domain (calls can run in parallel). Never one in over many domains: squatter pages on big domains crowd small companies out of the answer, and every extra row is billed. crustdata_company_search_db_v2 with {"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 on basic_info.all_domains, same shape. Before each call, check that 3 × <row rate> fits under maxCredits; if not, route that domain and the rest by unknown and set stopped: "budget".
  2. 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_domain or all_domains must contain the domain. A shared host like notion.so resolves to none and the lead goes to unknown.
  3. Segment and owner, no call. Free mail goes to personal (why: "personal email"). No company goes to unknown (why: "company not found"), and no headcount.total too (why: "company size unknown"). Otherwise the first segment whose minHeadcount the 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

Полный SKILL.md на GitHub

Установить lead-routing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdassets/crustdata-logo-dark.pngassets/crustdata-logo-light.pngassets/crustdata-mark.svgevals/evals.jsonexamples/five-signups.jsonexamples/five-signups.pngscripts/render.pysnippets/route.mjssnippets/routing-rules.json

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить lead-routing с