QuvanticBook free audit

ZapierChecked blueprint5 nodes

Enrich a new HubSpot contact with Apollo company data

When a contact with a work email lands in HubSpot, look the company up in Apollo and write industry, headcount, and location back to the contact.

Portfolio reference build with demo data and placeholder credentials, not a client deployment.

Pain

Stops copying profiles, registries, or prices into a sheet one row at a time.

Solution

When a contact with a work email lands in HubSpot, look the company up in Apollo and write industry, headcount, and location back to the contact.

Impact · From the blueprint

About 4 minutes of research per inbound contact, and routing rules that depend on company size start working.

Library status: passing. Schema, field mapping, task count, and Code-step unit tests pass. Not built in a live Zapier account.

Enrich a new HubSpot contact with Apollo company data step list
Step list

Step inspector

The first step shows the checked-in sample payload.Later steps name the node. They are not a live execution.

Guardrails

  • Filter by Zapier · Only continue if...

Credential ids in the JSON are placeholders. These files are portfolio demos.

Deploy this for your business

Tell us this slug and what still happens by hand. We will map it onto your accounts. This page is not a claim that the blueprint already runs for a customer.

README

Portfolio demo by Mustafa (mustafaautomation). Not client work. The people, companies, and numbers in it are made up. Rebuild it in your own Zapier account. Nothing here is connected to anyone's account.

Category: Scraping and enrichment
Difficulty: intermediate
Apps: HubSpot, Code by Zapier, Filter by Zapier, Apollo
Zapier plan: Professional (multi-step Zap: 4 steps after the trigger; Filter by Zapier)
Tasks per run: 3
Test status: passing (schema, mapping scope, task count, Code step unit tests)

Problem

Inbound contacts arrive in HubSpot with an email and a first name. Reps open LinkedIn to work out whether a lead is a 5-person shop or a 500-person company before deciding how fast to reply.

Who it's for

B2B sales and marketing teams on HubSpot that route or prioritise leads by company size and industry.

How the Zap runs

flowchart TD
  s1["1. HubSpot: New Contact<br/>New HubSpot contact"]
  s2["2. Code by Zapier<br/>Split the email domain"]
  s1 --> s2
  s3{{"3. Filter by Zapier<br/>Only work email addresses"}}
  s2 --> s3
  s4["4. Apollo<br/>Look the company up in Apollo"]
  s3 -->|"passes"| s4
  s5["5. HubSpot<br/>Write the company data to the contact"]
  s4 --> s5

Build it in the Zapier editor

Zapier has no import file for a Zap like this one, so it is built by hand from the steps below. zap.json is the same Zap in a machine-readable form (schema), and zap.yaml is the same document in YAML.

A value like [2. vendor] means: click the field, open step 2 in the data picker, and choose vendor. Plain text is typed as shown. YOUR_... is a value from your own account.

Before you start

  • Have these ready from your own accounts: YOUR_HUBSPOT_ACCOUNT.

Steps

1. Trigger: New HubSpot contact

App: HubSpot · Event: New Contact · polling (Zapier checks on your plan's update interval) · Tasks: 0

Fires for every contact created in HubSpot, from forms, imports, or by hand.

FieldValue
AccountYOUR_HUBSPOT_ACCOUNT

Fields this library maps from the trigger: contact_id, email, firstname, lastname, company, lifecyclestage, createdate. Zapier shows them with its own labels; pick the one with the same meaning.

2. Action: Split the email domain

App: Code by Zapier · Event: Run JavaScript · Tasks: 1

Gets the company domain and says whether it is a free mailbox. Gmail and Outlook addresses have no company to enrich.

Paste the whole of code/email-domain.js into the code box. Source: content/code/email-domain.cjs. Unit tests: content/code/email-domain.test.cjs.

Input Data keyValue
email[1. email]

Returns: valid, domain, is_free_provider, is_role_address, company_guess, website.

3. Filter: Only work email addresses

App: Filter by Zapier · Event: Only continue if... · Tasks: 0

Free mailboxes stop here, which saves an Apollo credit and avoids enriching "gmail.com" as a company.

Only continue if: [2. valid] (Boolean) Is true and [2. is_free_provider] (Boolean) Is false.

Most runs pass this filter.

4. Search: Look the company up in Apollo

App: Apollo · Event: Enrich Organization · Tasks: 1

Returns industry, estimated headcount, revenue band, and location for the domain.

FieldValue
Domain[2. domain]
Should this step be considered a "success" when nothing is found?Yes

Later steps can map: name, industry, estimated_num_employees, annual_revenue_printed, city, country, linkedin_url, short_description, _zap_search_was_found_status.

5. Action: Write the company data to the contact

App: HubSpot · Event: Create or Update Contact · Tasks: 1

Updates the same contact by email. Empty Apollo fields leave the existing HubSpot values alone.

FieldValue
Email[1. email]
Company[4. name]
Industry[4. industry]
Number of Employees[4. estimated_num_employees]
Annual Revenue[4. annual_revenue_printed]
City[4. city]
Country/Region[4. country]
Website[2. website]

Later steps can map: id, is_new.

Test it

Use sample-trigger.json as the test record. For an instant or webhook trigger, send it to the trigger once; for a polling trigger, create a matching record in the app and click Test trigger. Then test each step in order and read its output before you turn the Zap on.

{
  "contact_id": "90215",
  "email": "ravi.menon@globex.example",
  "firstname": "Ravi",
  "lastname": "Menon",
  "company": "",
  "lifecyclestage": "lead",
  "createdate": "2026-11-24T12:30:00Z"
}

Plan and task usage

StepAppTasks
1. New HubSpot contactHubSpot0
2. Split the email domainCode by Zapier1
3. Only work email addressesFilter by Zapier0
4. Look the company up in ApolloApollo1
5. Write the company data to the contactHubSpot1

A typical run uses 3 tasks. Zapier does not charge tasks for triggers, Filter, Paths, Formatter, Delay, Looping, Digest, Storage, or Zapier Tables steps. AI by Zapier is counted here as 1 task; Zapier prices it by model tier, so a larger model can cost more.

Minimum plan: Professional, because of: multi-step Zap: 4 steps after the trigger; Filter by Zapier. The Free plan only runs two-step Zaps (a trigger and one action) and leaves out Filters, Paths, Formatter, webhooks, AI by Zapier, and premium apps.

Customize

  • Add a Paths step after enrichment that routes companies over 200 employees to a senior rep.
  • Map Apollo's LinkedIn URL into a custom contact property if reps research there anyway.

Limits

  • Apollo enrichment uses your own Apollo credits. Very small or new companies are often not in Apollo's data.

Time saved

About 4 minutes of research per inbound contact, and routing rules that depend on company size start working.

Files

FileWhat it is
zap.jsonThe Zap, step by step, in schema 1.0.0.
zap.yamlThe same document in YAML.
sample-trigger.jsonFictional trigger record for the first test.
diagram.pngThe step list, drawn like the Zapier editor.
code/email-domain.jsPaste-ready Code by Zapier step.