QuvanticBook free audit

ZapierChecked blueprint6 nodes

Score a website form into a Salesforce lead

Catch a custom website form by webhook, score it, create a Salesforce lead with the rating, and alert the channel for hot leads.

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

Catch a custom website form by webhook, score it, create a Salesforce lead with the rating, and alert the channel for hot leads.

Impact · From the blueprint

About 4 minutes of typing per lead, and hot leads are flagged within seconds instead of after the inbox is cleared.

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

Score a website form into a Salesforce lead 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: advanced
Apps: Webhooks by Zapier, Code by Zapier, Salesforce, Filter by Zapier, Slack
Zapier plan: Professional (multi-step Zap: 5 steps after the trigger; Filter by Zapier; premium app: Webhooks by Zapier; premium app: Salesforce)
Tasks per run: 3 typical, 4 at most
Test status: passing (schema, mapping scope, task count, Code step unit tests)

Problem

The custom website form posts to an inbox, and someone types the details into Salesforce. Web-to-Lead would skip that, but it cannot score or rate leads, so every lead lands with the same rating.

Who it's for

Sales teams on Salesforce whose developer can make the website form POST JSON to a webhook URL.

How the Zap runs

flowchart TD
  s1["1. Webhooks by Zapier: Catch Hook<br/>Website form posts to the webhook"]
  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. Salesforce<br/>Create the Salesforce lead"]
  s3 --> s4
  s5{{"5. Filter by Zapier<br/>Only hot leads"}}
  s4 --> s5
  s6["6. Slack<br/>Alert the sales channel"]
  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

  • Have these ready from your own accounts: YOUR_DOMAIN.

Steps

1. Trigger: Website form posts to the webhook

App: Webhooks by Zapier · Event: Catch Hook · instant (the app pushes each event to Zapier) · Tasks: 0

Your form posts its fields as JSON to the Catch Hook URL Zapier gives you. Nothing in this repository contains a live webhook URL.

FieldValue
Pick off a Child Key(leave blank)

Fields this library maps from the trigger: full_name, email, company, job_title, company_size, budget, timeline, message, page_url, utm_source. 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

Salesforce requires Last Name on a lead; this step guarantees one, even for a single-word name.

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

Same rules as the HubSpot template, so the scoring is consistent across CRMs.

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: Create the Salesforce lead

App: Salesforce · Event: Create Record · Tasks: 1

The tier goes into the standard Rating field (Hot, Warm, Cold), so existing Salesforce list views and assignment rules work unchanged.

FieldValue
Salesforce ObjectLead
First Name[2. first_name]
Last Name[2. last_name]
Company[1. company]
Email[1. email]
Title[1. job_title]
Lead SourceWeb
Rating[3. tier]
Description[1. message]

Score [3. score]: [3. reasons]
Page: [1. page_url] (utm_source [1. utm_source])

Later steps can map: id.

5. Filter: Only hot leads

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

Most leads stop here; they are already in Salesforce with their rating.

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: Alert the sales channel

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

Links straight to the lead record.

FieldValue
Channel#sales-hot-leads
Message Text:fire: [2. display_name] ([1. job_title], [1. company]) scored [3. score]. [3. reasons]. https://YOUR_DOMAIN.lightning.force.com/lightning/r/Lead/[4. id]/view
Send as a bot?Yes
Bot NameZap alerts
Include a link to this Zap?No

Later steps can map: ts, permalink.

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.

{
  "full_name": "Grace Ndlovu",
  "email": "grace@lumen-legal.example",
  "company": "Lumen Legal LLP",
  "job_title": "Director of Operations",
  "company_size": "120",
  "budget": "15000",
  "timeline": "next month",
  "message": "Our intake process for new matters is all email. We want it in Salesforce automatically.",
  "page_url": "https://www.example.com/pricing",
  "utm_source": "google"
}

Plan and task usage

StepAppTasks
1. Website form posts to the webhookWebhooks by Zapier0
2. Split the full nameCode by Zapier1
3. Score the leadCode by Zapier1
4. Create the Salesforce leadSalesforce1
5. Only hot leadsFilter by Zapier0
6. Alert the sales channelSlack1

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; premium app: Webhooks by Zapier; premium app: Salesforce. 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

  • Map Rating values to your org's picklist; if it uses "Hot" with a capital H, add a Formatter Text → Titlecase step on the tier.
  • Add a Salesforce Find Record search on email before creating, if your org does not use duplicate rules.

Limits

  • Salesforce is a premium app on Zapier and needs a Salesforce edition with API access.
  • Protect the webhook: have the form send a shared secret field and add a Filter that checks it, so the URL cannot be spammed.

Time saved

About 4 minutes of typing per lead, and hot leads are flagged within seconds instead of after the inbox is cleared.

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.