QuvanticBook free audit

ZapierChecked blueprint6 nodes

Score a form lead into HubSpot

Split the name, score a Typeform lead from 0 to 100 with readable reasons, save it on the HubSpot contact, and DM the owner when it is hot.

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

Pain

Stops reps from manually copying web forms, guessing lead quality, and researching prospects before calling. Bad fits get filtered; hot buyers land with a full brief.

Solution

Split the name, score a Typeform lead from 0 to 100 with readable reasons, save it on the HubSpot contact, and DM the owner when it is hot.

Impact · From the blueprint

About 3 minutes of reading and typing per lead, and the hot ones are called within minutes instead of in queue order.

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

Score a form lead into HubSpot 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: Lead gen and CRM
Difficulty: intermediate
Apps: Typeform, Code by Zapier, HubSpot, Filter by Zapier, Slack
Zapier plan: Professional (multi-step Zap: 5 steps after the trigger; Filter by Zapier)
Tasks per run: 3 typical, 4 at most
Test status: passing (schema, mapping scope, task count, Code step unit tests)

Problem

Every Typeform enquiry lands in HubSpot looking the same, so reps work them in arrival order. The founder with a budget and a deadline waits behind a student doing research, and nobody can say why one lead was called first.

Who it's for

B2B service businesses and agencies that qualify inbound leads with a Typeform and run their pipeline in HubSpot, with one or two people doing first calls.

How the Zap runs

flowchart TD
  s1["1. Typeform: New Entry<br/>New enquiry form entry"]
  s2["2. Code by Zapier<br/>Split the full name"]
  s1 --> s2
  s3["3. Code by Zapier<br/>Score the lead"]
  s2 --> s3
  s4["4. HubSpot<br/>Save the contact with its score"]
  s3 --> s4
  s5{{"5. Filter by Zapier<br/>Only hot leads"}}
  s4 --> s5
  s6["6. Slack<br/>DM the owner about the hot lead"]
  s5 -->|"passes"| s6

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

  • In HubSpot, create three contact properties: lead_score (number), lead_tier (single-line text), and lead_score_reasons (multi-line text).
  • Have these ready from your own accounts: YOUR_SLACK_USERNAME.

Steps

1. Trigger: New enquiry form entry

App: Typeform · Event: New Entry · instant (the app pushes each event to Zapier) · Tasks: 0

Fires the moment someone submits the enquiry form. Typeform pushes the entry, so there is no polling delay.

FieldValue
FormProject enquiry

Fields this library maps from the trigger: response_id, submitted_at, full_name, email, company, job_title, company_size, budget, timeline, message, form_title. Zapier shows them with its own labels; pick the one with the same meaning.

2. Action: Split the full name

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

HubSpot wants first and last name in separate properties. One "Full name" question is friendlier on the form, so the split happens here.

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

Input Data keyValue
full_name[1. full_name]

Returns: first_name, last_name, display_name.

3. Action: Score the lead

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

A rule-based score: work email, decision-maker title, company size, budget, timeline, and a penalty for vendor pitches. Each point comes with a reason a rep can read.

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

Input Data keyValue
email[1. email]
company[1. company]
job_title[1. job_title]
company_size[1. company_size]
budget[1. budget]
timeline[1. timeline]
message[1. message]

Returns: score, tier, reasons, is_work_email.

4. Action: Save the contact with its score

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

Creates the contact or updates the one with this email, and writes the score, tier, and reasons into custom properties so HubSpot views and workflows can sort on them.

FieldValue
Email[1. email]
First Name[2. first_name]
Last Name[2. last_name]
Company Name[1. company]
Job Title[1. job_title]
Lead score (custom property lead_score)[3. score]
Lead tier (custom property lead_tier)[3. tier]
Score reasons (custom property lead_score_reasons)[3. reasons]
Lead StatusNEW
Message[1. message]

Later steps can map: id, is_new, profile_url.

5. Filter: Only hot leads

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

Most enquiries are warm or cold and stop here; they are already in HubSpot with their score. Only a score of 70 or more interrupts a person.

Only continue if: [3. tier] (Text) Exactly matches hot.

Most runs stop here, which is the point: the steps below are the exception path.

6. Action: DM the owner about the hot lead

App: Slack · Event: Send Direct Message · Tasks: 1

A direct message, not a channel post, so a hot lead is somebody's job straight away.

FieldValue
To UsernameYOUR_SLACK_USERNAME
Message Text:fire: Hot lead ([3. score]/100): [2. display_name], [1. job_title] at [1. company]. Budget [1. budget], timeline [1. timeline].
Why: [3. reasons]
HubSpot: [4. profile_url]
Send as a bot?Yes
Bot NameZap alerts

Later steps can map: ts.

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.

{
  "response_id": "resp_8f2k1q9x",
  "submitted_at": "2026-11-24T14:22:09Z",
  "full_name": "Dana Okafor",
  "email": "dana@northwind-studio.example",
  "company": "Northwind Studio",
  "job_title": "Founder",
  "company_size": "11-50",
  "budget": "$12,000",
  "timeline": "ASAP",
  "message": "We get about 300 inbound leads a month from Webflow and nobody follows up within the hour. Want this fixed before January.",
  "form_title": "Project enquiry"
}

Plan and task usage

StepAppTasks
1. New enquiry form entryTypeform0
2. Split the full nameCode by Zapier1
3. Score the leadCode by Zapier1
4. Save the contact with its scoreHubSpot1
5. Only hot leadsFilter by Zapier0
6. DM the owner about the hot leadSlack1

A typical run uses 3 tasks; the upper bound is 4, when every filter passes and the costliest paths run. 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: 5 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

  • Edit the point values in content/code/score-lead.cjs (and its tests) to match what a good customer looks like for you, then paste the new code/score-lead.js.
  • Change the filter to (Number) Greater than 59 if you want warm leads at the top of the range too.
  • Map the HubSpot contact owner into the DM step with a Slack Find User by Email search if more than one rep takes leads.

Limits

  • The score only sees what the form asks. If the form has no budget question, the budget points never apply.
  • Typeform answers arrive as text, so "around 10k" and "$10,000" both work, but "ten thousand" scores no budget points.

Time saved

About 3 minutes of reading and typing per lead, and the hot ones are called within minutes instead of in queue order.

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/split-name.jsPaste-ready Code by Zapier step.
code/score-lead.jsPaste-ready Code by Zapier step.