Enrich Industry logo

Enrich Industry

Community
TomGranot
enrich-industry

Backfill contact-level industry from associated company records using a HubSpot workflow. Enables industry-based segmentation for targeted campaigns aligned with ICP verticals.

Overview

PublisherTomGranot
Repositoryhubspot-admin-skills
Skill nameenrich-industry
Stars
79
Forks
18
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by TomGranot on GitHub. Read the source before you install it.

Installation

Install the Enrich Industry AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/TomGranot/hubspot-admin-skills/tree/main/skills/enrich-industry
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TomGranot/hubspot-admin-skills.git /tmp/hubspot-admin-skills
mkdir -p .claude/skills
cp -r /tmp/hubspot-admin-skills/skills/enrich-industry .claude/skills/enrich-industry
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Enrich Industry in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Enrich Industry on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Enrich Industry is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Enrich Contact Industry from Associated Company

Copy industry data from company records to their associated contacts. In a typical B2B CRM, company records have industry populated at high rates (80-90%) while contact records have almost none. This workflow bridges that gap automatically.

Why This Matters

Without industry on contact records, you cannot segment email campaigns by vertical. For B2B companies targeting specific industries, this makes the difference between spray-and-pray email blasts and targeted, relevant messaging. Industry data on contacts also feeds ICP tier classification and lead scoring models.

Prerequisites

  • HubSpot Marketing Hub Professional or Sales Hub Professional (for Workflows)
  • A HubSpot service key (HUBSPOT_ACCESS_TOKEN in .env; an existing legacy private app token also works) for the scripted stages
  • Python 3.10+ with uv
  • Company name enrichment (enrich-company-name skill) should be completed first, as it may trigger new company associations
  • Access to Settings > Properties to verify/create the contact Industry property

Scripts

Script paths are relative to this skill's directory. Run them from your project directory so .env, data/, and reports/ resolve there: prefix each path with wherever this skill is installed (skills/enrich-industry/ in a clone of the repo).

StageScriptRun with
Beforescripts/before.pyuv run scripts/before.py
Afterscripts/after.pyuv run scripts/after.py

There is no execute script: the enrichment itself runs as a HubSpot workflow (see Execute below).

Plan

  1. Verify the contact Industry property exists and is compatible with the company Industry property
  2. Audit how many contacts can be enriched (before state)
  3. Build a workflow that copies industry from the associated company
  4. Verify enrichment results (after state)

Before

Check Property Compatibility

This is the most important pre-step. Contacts may have TWO industry properties: industry and industry_name. You must verify which one HubSpot uses for lists and reports.

  1. Go to Settings > Properties > Contact properties
  2. Search for "Industry"
  3. Note ALL industry-related properties on the contact object
  4. Check which property is used in existing lists, reports, and workflows
  5. The target property must be compatible with the company Industry property:
    • If both are dropdown select: option values must match exactly (same spelling, same case)
    • If the contact property is single-line text: it will accept any value (safest option)
    • If unsure, use single-line text to avoid copy failures

If no contact Industry property exists, create one:

  • Object: Contact
  • Group: Contact information
  • Label: Industry
  • Field type: Dropdown select (copy all values from the company Industry property) OR Single-line text (accepts any value)

Audit Enrichment Opportunity

Run uv run scripts/before.py. The core query:

python
resp = requests.post(f"{BASE}/crm/v3/objects/contacts/search", headers=HEADERS, json={
    "filterGroups": [{"filters": [
        {"propertyName": "industry", "operator": "NOT_HAS_PROPERTY"},
    ]}],
    "limit": 1,
})
print(f"Contacts missing industry: {resp.json()['total']}")

Also create a HubSpot list to estimate enrichable contacts:

  • Filter 1: Contact Industry > is unknown
  • Filter 2: AND Associated company > Industry > is known
  • This count tells you how many contacts will actually be enriched

Execute

Create the Enrichment Workflow

This workflow is nearly identical to the company name enrichment workflow. If you already built that one, clone it and swap the property references.

  1. Go to Automation > Workflows > Create workflow
  2. Select Contact-based > Blank workflow
  3. Name: AUTO-ENRICH: Copy Industry from Company

Enrollment trigger:

  • Contact property > Industry > is unknown
  • AND Associated company > Industry > is known

Re-enrollment:

  • Enable re-enrollment on the same criteria. This ensures contacts that later get associated with a company are also enriched.

Action: Copy property

  • Copy FROM: Company > Industry
  • Copy TO: Contact > Industry

Activate:

  • Click Review > Turn on
  • Select Yes, enroll existing contacts

Note: Unlike the company name workflow, no delay is needed here. If the contact already has an associated company with industry data (checked by the enrollment trigger), the copy can happen immediately.

After

Wait 1-2 hours for the workflow to process, then verify: uv run scripts/after.py (re-runs the before-state query and compares against the baseline).

Verification checklist:

  1. Contact industry count should jump from near-zero to tens of thousands
  2. The enrichment list (missing industry + has company association) should be near 0
  3. Spot-check 20+ contacts for accuracy:
    • Open the contact record
    • Verify the Industry field shows a value
    • Click the associated company and confirm the industry matches
  4. Check that the industry distribution on contacts roughly mirrors the company industry distribution
  5. Check workflow history for failures — most common is property value mismatch (company has a value that does not match a dropdown option on the contact)

Rollback

  • Turn off the workflow to stop further enrichment.
  • The workflow only fills empty fields. If wrong values were copied (e.g., mismatched dropdown options), filter contacts by the workflow's enrollment history and clear the contact industry property, or restore individual values from property history.

External Providers

This skill only moves industry data the portal already has (company → contact). When the company itself has no industry value, that gap needs external data — see /waterfall-enrich-contacts for the provider-agnostic enrichment path, or HubSpot's Breeze Intelligence add-on for in-platform enrichment.

Key Technical Learnings

  • Two industry properties can exist. Some HubSpot portals have both industry and industry_name on contacts. Verify which one is authoritative before building the workflow. Writing to the wrong one means your lists and reports will not see the data.
  • Dropdown value matching is case-sensitive and exact. If the company Industry has "Healthcare" and the contact Industry dropdown has "healthcare" (lowercase), the copy will fail. Ensure values match exactly.
  • Consider consolidating similar industries. Many CRMs have overlapping values like "Healthcare" and "Hospital & Health Care". For segmentation, consider creating a separate "Industry Group" property that maps similar values into broader categories. This is optional but improves list usability.
  • This does not overwrite existing values. The enrollment trigger requires "Industry is unknown", so contacts that already have industry data are not affected.
  • If using a text field instead of dropdown: Enrichment works, but you lose the ability to filter by exact dropdown values in lists. You can convert to a dropdown later but will need to clean up inconsistent text values first.
  • Run this after company name enrichment. Company name enrichment may trigger new company associations, which increases the number of contacts eligible for industry enrichment.
  • Clone the company name workflow. The structure is nearly identical. Clone it in HubSpot and swap the property references to save time.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Enrich Industry AI skill do?

Backfill contact-level industry from associated company records using a HubSpot workflow. Enables industry-based segmentation for targeted campaigns aligned with ICP verticals.

Why use Enrich Industry on TypingMind?

Because you install it once and use it with any model. Enrich Industry is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Enrich Industry in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/TomGranot/hubspot-admin-skills/tree/main/skills/enrich-industry. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Enrich Industry?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Enrich Industry?

As many as you like. As long as a model supports skills, you can use Enrich Industry with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Enrich Industry AI skill free?

Yes. It is published on GitHub by TomGranot under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇