Auto-enrich new HubSpot companies and alert sales in Slack

By General Input

Every time a new company is created in HubSpot, fill in firmographics from CompanyEnrich and post a one-line summary to your sales Slack channel.

Integrations

  • HubSpot
  • CompanyEnrich
  • Slack Bot

Type

Deterministic Code

Categories

  • Sales
  • Operations

Build a code workflow that fires every time a new company is created in HubSpot. Use the HubSpot outgoing webhook for company creation as the trigger.

When the webhook fires, take the company's primary domain and call CompanyEnrich's "Enrich Company by Domain" operation. Then call HubSpot's "Update Company" operation on the same company id to write the returned firmographics back to the record. Map the CompanyEnrich response into these HubSpot company properties: industry, number of employees / employee range, annual revenue / revenue range, country, LinkedIn company page URL, primary domain, and year founded.

Important shape notes for CompanyEnrich: responses are flat (there is no `data` envelope, the JSON body IS the result), and employee and revenue values come back as enum range strings (e.g. "51-200", "1m-10m"). Map them as strings straight into the matching HubSpot range properties. Do not try to parse them as numbers and do not invent values.

After the HubSpot update succeeds, post a one-line summary in the team's Slack channel #new-accounts using Slack Bot's "Send a Message" operation. The summary should include the company name, industry, employee range, country, and a link back to the HubSpot record.

If CompanyEnrich returns no match for the domain (404 or empty response), skip the HubSpot update entirely and instead post a short Slack note in the same channel flagging the company for manual review. Include the company name and the domain so a human can look it up. Never fail silently.

Keep the flow deterministic. This is a CRM hygiene workflow, not an analyst. The model should never rewrite or invent field values; it should only map the enrichment response onto HubSpot properties and post the Slack summary.

Related prompts

Explore more prompts
A brand asset library your marketing team actually searchesTurn Mailjet email clicks into ranked HubSpot follow-upsClean out the Looker dashboards and Looks nobody opensLiveKit live operations console for room moderationWake up dormant Keap leads with a researched reasoniMessage campaign console with pre-flight checks and delivery boardLiveChat coverage board for planning next week's shiftsPhone routing control panel for LiveKit voice agentsA searchable RFP answer library your bid team drafts fromLinkedIn Ads budget pacing dashboard for every client account