Enrich new HubSpot companies with tech stack and hiring data

By General Input

When a new company lands in HubSpot, automatically add its tech stack, open roles count, and a hiring snapshot note so reps can act immediately.

Integrations

  • HubSpot
  • TheirStack

Type

Deterministic Code

Categories

  • Sales

Build a code workflow that automatically enriches every new company in my HubSpot CRM with TheirStack data.

Trigger: a HubSpot webhook that fires whenever a new company record is created. The payload will include the company ID and (depending on subscription) the domain.

For each new company:

1. Resolve the company's primary domain. If the webhook payload does not include it, fetch the company from HubSpot by ID and read the domain property. If there is no domain, exit early.

2. Call TheirStack Get Company Technographics with that domain to retrieve the full tech stack with confidence and mention counts. Keep the top 5 to 10 technologies ranked by confidence.

3. Call TheirStack Search Jobs scoped to the same company domain (company_domain_or) with posted_at_max_age_days = 30. Aggregate the total open roles count and pick the top hiring function (engineering, sales, marketing, operations, etc.) based on the job titles returned.

4. Use HubSpot Update Company to write structured fields back to the same company record: top technologies as a tag-style list, total open roles as a number, and top hiring function as a single value. Skip the write if TheirStack returned no data for a given field so existing values are not blanked out.

5. Use HubSpot Create Note associated with the company to attach a one-paragraph hiring snapshot summarizing the recent postings (a handful of representative titles, locations, and posted dates). Only create the note if there were jobs in the last 30 days.

Every step is deterministic with known inputs and outputs (webhook, then two TheirStack lookups, then two HubSpot writes), so this should be a pure code workflow with no agent reasoning. Handle the case where TheirStack returns no technographics or no jobs by skipping that step cleanly.

Related prompts

Explore more prompts
Turn Mailjet email clicks into ranked HubSpot follow-upsiMessage campaign console with pre-flight checks and delivery boardA searchable RFP answer library your bid team drafts fromSee which target accounts just started advertising on LinkedInAccount health board that puts product usage next to your CRMLook up a customer's full chat history mid conversationLusha prospecting workbench with credit-safe revealsWhich companies your LinkedIn ads reach, matched to your CRMLead response desk with a running clock on every new leadApprove Lusha enrichment field by field before HubSpot saves it