new-contact-hygiene-workflow
关于
This HubSpot workflow skill automatically enriches new contacts by setting their lifecycle stage and copying company data from associated records. It includes conditional branching based on data completeness, but must be manually built in the HubSpot UI due to API limitations for "is unknown" conditions and copy actions. Use this for developers needing to implement initial contact staging and data hygiene automation.
快速安装
Claude Code
推荐npx skills add TomGranot/hubspot-admin-skills -a claude-code/plugin add https://github.com/TomGranot/hubspot-admin-skillsgit clone https://github.com/TomGranot/hubspot-admin-skills.git ~/.claude/skills/new-contact-hygiene-workflow在 Claude Code 中复制并粘贴此命令以安装该技能
技能文档
New Contact Hygiene Workflow
Build a workflow that automatically enriches every new contact at creation time. This ensures contacts enter the database with a lifecycle stage, company name, and industry before any human touches them.
Why This Cannot Be Fully Automated via API
Three HubSpot API limitations prevent full automation:
- "Is unknown" branch conditions are not supported programmatically — the Workflows API cannot create branches that check whether a property has never been set.
- Copy from associated object actions (e.g., copy company name from the associated company) are not available via API.
- Workflows API v4 is beta and unstable — production workflows should not depend on it.
You have three options for building this workflow, described below.
Building the Workflow: Three Options
Option 1: Manual UI Build
Follow the step-by-step instructions in the "Execute" section below. This is the most reliable method and gives you full control over every trigger, branch, and action.
Option 2: HubSpot Breeze AI
HubSpot's built-in Breeze AI can generate a workflow skeleton from a natural language prompt. Navigate to Automation > Workflows > Create workflow > "Describe what you want" and paste the following prompt:
Create a contact-based workflow that triggers when a contact is created. It should:
1. Set the lifecycle stage to "Lead" if it is empty
2. Copy the company name from the associated company to the contact's Company property
3. Copy the industry from the associated company to the contact's Industry property
4. Wait a short delay (3-10 minutes, recommended: 5)
5. Check if the contact's Company property is still empty — if yes, send an internal notification to the admin saying the contact has no company association
CRITICAL WARNING: Breeze trigger limitations. Breeze creates event-based triggers (OR logic) instead of filter-based triggers (AND logic). After Breeze creates the workflow, you MUST manually verify and fix the trigger/enrollment conditions in the UI. Breeze is best used for creating the workflow skeleton (actions, branches, delays) -- the trigger conditions almost always need manual correction.
Additional Breeze limitations for this workflow:
- Breeze cannot create "is unknown" branch conditions -- you must add these manually
- Breeze cannot create "copy property from associated object" actions -- you must add these manually
- Breeze cannot configure re-enrollment rules
Given these limitations, Breeze provides minimal value for this particular workflow. Manual build (Option 1) is recommended.
Option 3: Claude Anthropic Chrome Extension
The Claude Anthropic Chrome extension lets Claude see and interact with the HubSpot workflow builder UI directly. You can describe the workflow logic in natural language and Claude will click through the UI to build it. This is often more accurate than Breeze for complex workflows because Claude can verify each step visually, including "is unknown" branch conditions and copy-from-association actions that Breeze cannot handle.
To use this approach:
- Open the HubSpot workflow builder in Chrome (Automation > Workflows > Create workflow)
- Activate the Claude Chrome extension
- Describe the workflow using the design diagram and instructions from this skill
Note on Fast Mode: If you're using Claude Code's Fast Mode to speed up workflow creation, be aware of the billing model: Haiku usage is included in your subscription, but Opus in Fast Mode consumes extra credits. For workflow building tasks (which are UI-heavy and may require many interactions), consider whether the speed tradeoff is worth the credit cost.
Prerequisites
- HubSpot Marketing Professional or Enterprise plan
- Workflow creation permissions in HubSpot
- Company association enrichment completed (run
/enrich-company-nameand/enrich-industryfirst for existing contacts)
Workflow Design
TRIGGER: Contact create date is known
(fires for every new contact)
│
▼
┌─────────────────────────┐
│ Set lifecycle stage │
│ = "Lead" (if empty) │
└────────────┬────────────┘
│
▼
┌─────────────────────────┐
│ Copy company name from │
│ associated company │
└────────────┬────────────┘
│
▼
┌─────────────────────────┐
│ Copy industry from │
│ associated company │
└────────────┬────────────┘
│
▼
┌─────────────────────────┐
│ Delay: short wait │
│ (3-10 min, rec: 5) │
└────────────┬────────────┘
│
▼
┌─────────────────────────┐
│ IF/THEN BRANCH: │
│ Company name is unknown? │
├──────────┬──────────────┘
│ YES │ NO
│ │
▼ ▼
Retry Continue
copy (enriched)
+ notify
admin
Step-by-Step Build Instructions
Stage 1: Before — Verify Prerequisites
- Confirm company enrichment processes have run for existing data.
- Open HubSpot > Automation > Workflows > Create workflow.
- Select "Contact-based" workflow, start from scratch.
Stage 2: Execute — Build the Workflow
-
Set enrollment trigger:
- Property: "Create date" > "is known"
- This enrolls every new contact automatically.
-
Add action: Set property value
- Property: "Lifecycle stage"
- Value: "Lead"
- Condition: Only if lifecycle stage is unknown (use an if/then branch before this step, or rely on HubSpot's "only if empty" option if available in your plan).
-
Add action: Copy property
- Source: Associated company > "Company name"
- Target: Contact > "Company" property
-
Add action: Copy property
- Source: Associated company > "Industry"
- Target: Contact > "Industry" property
-
Add delay: a short delay (3-10 minutes, recommended: 5)
- Purpose: Allow time for company associations to sync (especially for form submissions or integrations that create contacts before associating them). Adjust the duration based on how quickly your integrations typically create associations.
-
Add if/then branch:
- Condition: Contact "Company" property is unknown
- YES branch: Add internal notification to CRM admin — "New contact {firstname} {lastname} ({email}) has no company association after enrichment attempt."
- NO branch: No further action needed (contact is enriched).
-
Review settings:
- Re-enrollment: OFF (each contact should only go through this once)
- Unenrollment: None needed
- Time zone: Not applicable (no time-based actions beyond delay)
-
Turn on the workflow.
Stage 3: After — Verify
- Create a test contact manually. Confirm:
- Lifecycle stage is set to "Lead"
- Company name copied from associated company
- Industry copied from associated company
- Create a test contact with no company association. Confirm:
- Admin notification fires after the configured delay
- Check workflow history for any errors in the first 24 hours.
Stage 4: Rollback
- Turn off the workflow in HubSpot > Automation > Workflows.
- Contacts already enriched retain their values — no destructive changes to undo.
- If lifecycle stages were set incorrectly, use the Search API to find contacts created after the workflow activation date and reset as needed.
Edge Cases
- Contacts created via import: These fire the trigger. If imports include company name/industry, the copy action will overwrite with the associated company's values. Consider excluding imported contacts via a list filter.
- Contacts without company associations: The copy action silently fails. The branch handles notification.
- Multiple associated companies: HubSpot copies from the primary associated company only.
GitHub 仓库
相关推荐技能
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是理想选择。
