QuvanticBook free audit

ZapierChecked blueprint7 nodes

Text a new lead within a minute

A website form posts to a webhook; the lead gets a one-segment SMS and a confirmation email within a minute, with a callback promise that fits open or closed hours.

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

Pain

Ends the “we saw your inquiry tomorrow morning” leak. A new ad or web lead gets a personal SMS or email and a Slack alert.

Solution

A website form posts to a webhook; the lead gets a one-segment SMS and a confirmation email within a minute, with a callback promise that fits open or closed hours.

Impact · From the blueprint

The saving is in conversion, not minutes: the lead hears back in under a minute instead of hours. The admin side saves about 2 minutes per lead.

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

Text a new lead within a minute 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

No approval, retry, or demo-gate node was detected by name. Read the README before connecting live credentials.

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: Speed to lead
Difficulty: intermediate
Apps: Webhooks by Zapier, Code by Zapier, Formatter by Zapier, Twilio, Gmail
Zapier plan: Professional (multi-step Zap: 6 steps after the trigger; Formatter by Zapier; premium app: Webhooks by Zapier)
Tasks per run: 5
Test status: passing (schema, mapping scope, task count, Code step unit tests)

Problem

Inquiries from the website sit in an inbox until someone checks it, often hours later. By then the lead has filled in two competitors' forms and booked with whoever called first. The fix is a reply in the first minute, but a reply that says "we will call you now" at 11pm does more harm than good.

Who it's for

Home-service businesses, clinics, and agencies whose website form is their main lead source and who can call back during the working day.

How the Zap runs

flowchart TD
  s1["1. Webhooks by Zapier: Catch Hook<br/>Website form posts a lead"]
  s2["2. Code by Zapier<br/>Format the phone number"]
  s1 --> s2
  s3["3. Code by Zapier<br/>Check whether the office is open"]
  s2 --> s3
  s4["4. Formatter by Zapier<br/>Pick the callback promise"]
  s3 --> s4
  s5["5. Code by Zapier<br/>Write a one-segment text"]
  s4 --> s5
  s6["6. Twilio<br/>Text the lead"]
  s5 --> s6
  s7["7. Gmail<br/>Confirm by email"]
  s6 --> s7

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_BUSINESS_NAME, YOUR_TWILIO_NUMBER.

Steps

1. Trigger: Website form posts a lead

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

Your website form posts each submission to this Catch Hook URL. Most form builders (Webflow, WordPress form plugins, Framer) have a "send to webhook" option.

FieldValue
Pick off a Child Key(leave blank)

Fields this library maps from the trigger: submitted_at, full_name, email, phone, service, message, page_url. Zapier shows them with its own labels; pick the one with the same meaning.

2. Action: Format the phone number

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

Turns "(415) 555-0123" into +14155550123 so Twilio accepts it, and marks numbers that are too short to text.

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

Input Data keyValue
phone[1. phone]
default_country1

Returns: e164, valid, extension.

3. Action: Check whether the office is open

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

Uses an explicit UTC offset because Code by Zapier runs in UTC. The SMS wording depends on the answer.

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

Input Data keyValue
timestamp[1. submitted_at]
utc_offset-05:00
open_time08:30
close_time18:00
open_daysMon-Fri

Returns: is_open, local_day, local_time, next_open, minutes_until_open.

4. Action: Pick the callback promise

App: Formatter by Zapier · Event: Utilities · Tasks: 0

A two-row lookup table turns is_open into one sentence, so the text and the email never promise a call nobody can make.

FieldValue
TransformLookup Table
Lookup Key[3. is_open]
Lookup Table › trueWe will call you within 15 minutes.
Lookup Table › falseWe are closed right now and will call you first thing when we open.
Fallback ValueWe will call you as soon as we can.

Later steps can map: output.

5. Action: Write a one-segment text

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

Fills the template, swaps curly quotes for plain ones, and trims to 160 GSM characters so the text costs one segment.

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

Input Data keyValue
templateHi {first_name}, this is {business}. Thanks for your request about [1. service]. [4. output] Reply STOP to opt out.
first_name[1. full_name]
businessYOUR_BUSINESS_NAME
link

Returns: message, encoding, length, segments, trimmed.

6. Action: Text the lead

App: Twilio · Event: Send SMS · Tasks: 1

Sends the fitted message from your Twilio number. Twilio rejects an invalid number, and Zapier shows that as an error on this step.

FieldValue
From NumberYOUR_TWILIO_NUMBER
To Number[2. e164]
Message[5. message]
Send Large Messages?No

Later steps can map: sid, status.

7. Action: Confirm by email

App: Gmail · Event: Send Email · Tasks: 1

Gives the lead the same promise in writing, with what they asked for, so the reply is easy to find later.

FieldValue
To[1. email]
SubjectWe got your request about [1. service]
Body Typeplain
BodyHi [1. full_name],

Thanks for reaching out about [1. service]. We just sent you a text from our business line. [4. output]

What you wrote:
[1. message]

YOUR_BUSINESS_NAME
From NameYOUR_BUSINESS_NAME

Later steps can map: id, thread_id.

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.

{
  "submitted_at": "2026-11-25T14:07:31Z",
  "full_name": "Marcus Bell",
  "email": "marcus.bell@fernway-homes.example",
  "phone": "(415) 555-0123",
  "service": "water heater replacement",
  "message": "Our 12-year-old tank is leaking from the bottom. Two-storey house, gas line already in place.",
  "page_url": "https://www.example.com/water-heaters"
}

Plan and task usage

StepAppTasks
1. Website form posts a leadWebhooks by Zapier0
2. Format the phone numberCode by Zapier1
3. Check whether the office is openCode by Zapier1
4. Pick the callback promiseFormatter by Zapier0
5. Write a one-segment textCode by Zapier1
6. Text the leadTwilio1
7. Confirm by emailGmail1

A typical run uses 5 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: 6 steps after the trigger; Formatter by Zapier; premium app: Webhooks 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 two sentences in the lookup table (step 4) to match how fast you really call back.
  • Change default_country to your calling code (44 for the UK, 92 for Pakistan) if most leads type local numbers.
  • Add a Slack message to #sales after the email so the person on shift sees the lead at the same moment.

Limits

  • In the US, texting a lead needs consent on the form (a checkbox with your SMS terms) and A2P 10DLC registration on the Twilio number. The template assumes both are in place.
  • The UTC offset does not follow daylight saving time. Update it twice a year, or keep two Zaps.

Time saved

The saving is in conversion, not minutes: the lead hears back in under a minute instead of hours. The admin side saves about 2 minutes per lead.

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/normalize-phone.jsPaste-ready Code by Zapier step.
code/business-hours.jsPaste-ready Code by Zapier step.
code/fit-sms.jsPaste-ready Code by Zapier step.