SKILL·A2CDD9

waterfall-enrich-contacts

TomGranot
更新于 3 days ago
51
14
51
在 GitHub 上查看
ai

关于

This skill enriches HubSpot contact records by fetching missing emails, phone numbers, and job titles from external data providers and safely writing them back. Its key feature is a pluggable adapter system, defaulting to the FullEnrich waterfall aggregator but including adapters for Apollo, Hunter, and Dropcontact, with a template for custom providers. Use it to automate contact data completion within your HubSpot workflows.

快速安装

Claude Code

推荐
主要方式
npx skills add TomGranot/hubspot-admin-skills -a claude-code
插件命令备选方式
/plugin add https://github.com/TomGranot/hubspot-admin-skills
Git 克隆备选方式
git clone https://github.com/TomGranot/hubspot-admin-skills.git ~/.claude/skills/waterfall-enrich-contacts

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

Waterfall-Enrich Contacts with External Providers

Fill missing emails, phone numbers, and job titles on HubSpot contacts using an external enrichment provider, then write results back with a full audit trail. The provider layer is pluggable: FullEnrich (a waterfall aggregator that queries 20+ upstream sources until one hits) is the default, with Apollo, Hunter, and Dropcontact adapters included and a template for whatever provider your team already pays for.

Why This Matters

The internal enrichment skills (/enrich-company-name, /enrich-industry, /backfill-geo-data) only move data the portal already has. When a contact's email, direct dial, or title simply isn't anywhere in HubSpot, external enrichment is the only fix — and it costs real money per lookup, which is why this skill is built around cost caps, previews, and typed confirmations.

Provider Landscape

ProviderAdapterStrengthModel
FullEnrich (default)providers/fullenrich.pyWaterfall across 20+ sources — best hit rates for email + mobileCredits per lookup, async bulk API
Apolloproviders/apollo.pyLarge B2B database, titles + firmographicsCredits; personal-data reveals plan-gated
Hunterproviders/hunter.pyEmail finding by name+domain, confidence scoresRequests per plan; email only
Dropcontactproviders/dropcontact.pyGDPR-first, algorithmic (no stored database)Credits, async
Your providercopy providers/_template.pyWhatever you already use
Mock (testing only)providers/mock.pyDeterministic fake data for /sandbox-self-test and dry runs — no networkFree; never use on production
HubSpot Breeze Intelligence(native, no adapter)In-platform enrichment + form shorteningCredit add-on; programmatic API access is enterprise-gated — which is exactly why this skill defaults to provider-agnostic adapters

Switch providers with one env var: ENRICHMENT_PROVIDER=apollo.

Prerequisites

  • A HubSpot private app access token (HUBSPOT_ACCESS_TOKEN in .env) with contact read/write scopes
  • Python 3.10+ with uv
  • An account + API key with your chosen provider (e.g. FULLENRICH_API_KEY from FullEnrich dashboard > Settings > API)
  • A compliance check: enrichment sends contact names and company data to a third party and imports personal data (emails, phones). Confirm this fits your data processing agreements and the applicable privacy rules (GDPR/CCPA) before running.

Scripts

StageScriptRun with
Beforescripts/before.pyuv run skills/waterfall-enrich-contacts/scripts/before.py
Executescripts/execute.pyuv run skills/waterfall-enrich-contacts/scripts/execute.py
Afterscripts/after.pyuv run skills/waterfall-enrich-contacts/scripts/after.py

Provider adapters live in scripts/providers/ — one module per provider implementing enrich(contacts) -> results (see _template.py for the contract).

Configuration

Everything is set in .env:

HUBSPOT_ACCESS_TOKEN=pat-na1-xxxxxxxx
ENRICHMENT_PROVIDER=fullenrich          # fullenrich | apollo | hunter | dropcontact | mock | yours
FULLENRICH_API_KEY=...                  # the chosen provider's key
ENRICHMENT_TARGET_FIELD=phone           # phone | email | jobtitle
ENRICHMENT_MAX_CONTACTS=100             # hard cap per run — credits cost money
ENRICHMENT_OVERWRITE=false              # never overwrite existing values (default)
ENRICHMENT_CREDITS_PER_CONTACT=1        # for before.py's cost preview

Execution Pattern

Stage 1: Plan

  1. Choose the provider and the target field (a phone backfill and an email backfill are separate runs).
  2. Confirm the compliance check above with whoever owns data privacy.
  3. Confirm budget: MAX_CONTACTS × credits-per-lookup is the per-run ceiling. Start with a small run (25-50) and inspect quality before scaling.

Stage 2: Before

uv run skills/waterfall-enrich-contacts/scripts/before.py

Counts candidates (contacts with first name + last name + company but missing the target field) and prints a cost ceiling. Read-only.

Stage 3: Execute

uv run skills/waterfall-enrich-contacts/scripts/execute.py

The script:

  1. Selects up to MAX_CONTACTS candidates via the Search API
  2. Asks for typed confirmation (ENRICH) before spending credits
  3. Calls the provider adapter (async providers poll until done)
  4. Computes writes — existing non-empty HubSpot values are never overwritten unless ENRICHMENT_OVERWRITE=true; skipped values are still recorded in the audit CSV
  5. Asks for a second typed confirmation (WRITE) before touching HubSpot
  6. Batch-updates contacts and writes the audit CSV (old value, new value, action, source per field)

Stage 4: After

uv run skills/waterfall-enrich-contacts/scripts/after.py

Compares candidate counts against the baseline, then spot-check 10-20 enriched contacts by hand — provider quality varies by segment, and the audit CSV tells you exactly what was written where.

Safety Mechanisms

MechanismDetail
Per-run capMAX_CONTACTS (default 100) bounds credit spend per run. Deliberately low — raise it only after verifying quality.
No-overwrite defaultExisting non-empty values are never replaced unless ENRICHMENT_OVERWRITE=true. Enrichment fills gaps; it does not correct data.
Double confirmationTyped ENRICH before credits are spent; typed WRITE before HubSpot is touched. Aborting between the two costs credits but changes nothing.
CSV audit trailEvery field written (and every skip) recorded with old value, new value, and provider source.
Rollback dataThe audit CSV's old column is the rollback: batch-update those values back to undo a run.

Rollback

  • The execute audit CSV records the previous value of every field it wrote. To undo, batch-update those contact/field pairs back to the old values (empty string clears a field).
  • Values are also individually recoverable from each contact's property history.

Technical Gotchas

  1. Verify adapter payloads against current provider docs. Provider APIs move fast; each adapter's docstring links the docs and flags what to check. The adapters fail loudly (clear SystemExit messages) on auth or credit errors before touching HubSpot.
  2. Waterfall providers are asynchronous. FullEnrich and Dropcontact return results in seconds-to-minutes; the adapters poll. Don't kill the script mid-poll — credits are consumed at submission.
  3. Enriched emails are unverified senders' risk. A found email is not consent to market. New emails enter as non-marketing data points; your normal opt-in and deliverability rules apply before any sends.
  4. Match rates of 40-70% are normal. Providers can't find everyone. The audit CSV separates "provider found nothing" (absent) from "found but skipped" (existing value).
  5. Domain quality drives hit rates. Candidates whose email domain or company website is missing enrich poorly. Run /enrich-company-name first — better identity inputs, better waterfall results.
  6. Internal-data-first. If the value exists anywhere in the portal (associated company, ip_country, form submissions), the free internal skills should fill it — save credits for data HubSpot genuinely doesn't have.

GitHub 仓库

TomGranot/hubspot-admin-skills
路径: skills/waterfall-enrich-contacts
0
hubspothubspot-apihubspot-crmhubspot-integration
FAQ

Frequently asked questions

What is the waterfall-enrich-contacts skill?

waterfall-enrich-contacts is a Claude Skill by TomGranot. Skills package instructions and resources that Claude loads on demand, so Claude can perform waterfall-enrich-contacts-related tasks without extra prompting.

How do I install waterfall-enrich-contacts?

Use the install commands on this page: add waterfall-enrich-contacts to Claude Code as a plugin, or clone its repository into your skills directory, then restart Claude so it picks up the skill.

What category does waterfall-enrich-contacts belong to?

waterfall-enrich-contacts is in the Meta category, tagged ai.

Is waterfall-enrich-contacts free to use?

Yes. waterfall-enrich-contacts is listed on AIMCP and free to install. It runs inside Claude, so no separate service account is required to use the skill itself.

相关推荐技能

content-collections

Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。

查看技能
polymarket

这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。

查看技能
creating-opencode-plugins

该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。

查看技能
sglang

SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。

查看技能