Auto-enrich new HubSpot companies and alert sales in Slack
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.
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.
Additional information
What does this prompt do?
- Watches HubSpot and fires the moment a new company record is created.
- Looks up that company's domain in CompanyEnrich and writes industry, employee range, revenue range, country, LinkedIn URL, primary domain, and founding year back to the HubSpot record.
- Posts a one-line summary in your #new-accounts Slack channel so sales sees every new account land with full context.
- If CompanyEnrich can't match the domain, posts a short manual-review note in Slack instead of failing silently.
What do I need to use this?
- A HubSpot account with permission to edit company records.
- A CompanyEnrich account and API key (the free plan covers a few hundred lookups per month).
- A Slack workspace and a channel like #new-accounts where the sales team should see new account alerts.
How can I customize it?
- Swap the destination channel. Point it at #revops, #pipeline, or a CSM-only channel instead of #new-accounts.
- Change which company fields get filled in. Add HQ city, headcount, or remove ones your team does not use.
- Adjust the summary line. Include the account owner, deal source, or a direct link back to the HubSpot record.
Frequently asked questions
Will this overwrite fields a rep already filled in?
What happens if CompanyEnrich does not have data for the company?
Does this work with HubSpot Free?
How fast does it run after a company is created?
Can I run it against companies that already exist in HubSpot?
Stop chasing missing firmographics on every new account.
Connect HubSpot, CompanyEnrich, and Slack once, and every new company lands fully enriched with the sales team already pinged.