ZapierChecked blueprint4 nodes
Text back a missed CallRail call
When a tracked call goes unanswered, text the caller back with wording for open or closed hours, log it, and page the owner after 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
When a tracked call goes unanswered, text the caller back with wording for open or closed hours, log it, and page the owner after hours.
Impact · From the blueprint
Each missed call gets a reply in seconds instead of whenever someone checks the call log, and the weekly missed-call count is a sheet filter instead of an export.
- Intermediate
- Validated
- Auto path
- CallRail
- Filter by Zapier
- Code by Zapier
- Paths by Zapier
- Twilio
- Google Sheets
- Slack
Library status: passing. Schema, field mapping, task count, and Code-step unit tests pass. Not built in a live Zapier account.

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: Speed to lead
Difficulty: intermediate
Apps: CallRail, Filter by Zapier, Code by Zapier, Paths by Zapier, Twilio, Google Sheets, Slack
Zapier plan: Professional (multi-step Zap: 10 steps after the trigger; Filter by Zapier; Paths by Zapier)
Tasks per run: 0 on most runs (a filter stops them), 5 when it passes
Test status: passing (schema, mapping scope, task count, Code step unit tests)
Problem
A missed call from a new number is usually a lead who will dial the next business on the list. Calling back an hour later rarely reaches them, and nobody knows how many calls were missed last week.
Who it's for
Service businesses that track ad and website calls in CallRail and miss calls while on a job or after hours.
How the Zap runs
flowchart TD
s1["1. CallRail: Post-Call<br/>A tracked call ends"]
s2{{"2. Filter by Zapier<br/>Only unanswered calls"}}
s1 --> s2
s3["3. Code by Zapier<br/>Check whether the office is open"]
s2 -->|"passes"| s3
s4{"4. Paths by Zapier<br/>Open or after hours"}
s3 --> s4
s5["5. Code by Zapier<br/>Write the daytime text"]
s4 -->|"Open"| s5
s6["6. Twilio<br/>Text the caller"]
s5 --> s6
s7["7. Google Sheets<br/>Log the missed call"]
s6 --> s7
s8["8. Code by Zapier<br/>Write the after-hours text"]
s4 -->|"After hours"| s8
s9["9. Twilio<br/>Text the caller"]
s8 --> s9
s10["10. Google Sheets<br/>Log the missed call"]
s9 --> s10
s11["11. Slack<br/>Tell the owner"]
s10 --> s11
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
- Create the sheet Calls › Missed with these headers in row 1:
call_time,caller,phone,source,first_call,local_time,when,texted. - Have these ready from your own accounts:
YOUR_BUSINESS_NAME,YOUR_CALLRAIL_COMPANY,YOUR_TWILIO_NUMBER.
Steps
1. Trigger: A tracked call ends
App: CallRail · Event: Post-Call · instant (the app pushes each event to Zapier) · Tasks: 0
CallRail sends every finished call. The filter in the next step keeps only the ones nobody picked up.
| Field | Value |
|---|---|
| Company | YOUR_CALLRAIL_COMPANY |
Fields this library maps from the trigger: call_id, answered, customer_phone_number, customer_name, start_time, duration, tracking_phone_number, source, first_call. Zapier shows them with its own labels; pick the one with the same meaning.
2. Filter: Only unanswered calls
App: Filter by Zapier · Event: Only continue if... · Tasks: 0
Answered calls stop here. Most calls are answered, so most runs end at this step and use no tasks.
Only continue if: [1. answered] (Boolean) Is false.
Most runs stop here, which is the point: the steps below are the exception path.
3. Action: Check whether the office is open
App: Code by Zapier · Event: Run JavaScript · Tasks: 1
The text promises a call in minutes only when someone is actually there to make it.
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 key | Value |
|---|---|
timestamp | [1. start_time] |
utc_offset | -05:00 |
open_time | 08:30 |
close_time | 18:00 |
open_days | Mon-Fri |
Returns: is_open, local_day, local_time, next_open, minutes_until_open.
4. Paths: Open or after hours
App: Paths by Zapier · Event: Split into paths · Tasks: 0
Two wordings, one decision. The rules test is_open both ways, so exactly one path runs.
The path rules exclude each other, so at most one path runs. Nothing can follow a Paths step, so each path ends the run on its own.
Path A: Open. Rule: [3. is_open] (Boolean) Is true. This is the usual path.
5. Action: Write the daytime text (path A)
App: Code by Zapier · Event: Run JavaScript · Tasks: 1
Promises a call back within ten minutes and keeps the text to 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 key | Value |
|---|---|
template | Hi {first_name}, sorry we missed your call to {business}. We are on another job and will call you back within 10 minutes. Reply here if texting is easier. |
first_name | [1. customer_name] |
business | YOUR_BUSINESS_NAME |
link |
Returns: message, encoding, length, segments, trimmed.
6. Action: Text the caller (path A)
App: Twilio · Event: Send SMS · Tasks: 1
Replies from the Twilio number the team watches.
| Field | Value |
|---|---|
| From Number | YOUR_TWILIO_NUMBER |
| To Number | [1. customer_phone_number] |
| Message | [5. message] |
| Send Large Messages? | No |
Later steps can map: sid, status.
7. Action: Log the missed call (path A)
App: Google Sheets · Event: Create Spreadsheet Row · Tasks: 1
One row per missed call, so the weekly count is a filter on the sheet.
| Field | Value |
|---|---|
| Drive | My Google Drive |
| Spreadsheet | Calls |
| Worksheet | Missed |
| Columns › call_time | [1. start_time] |
| Columns › caller | [1. customer_name] |
| Columns › phone | [1. customer_phone_number] |
| Columns › source | [1. source] |
| Columns › first_call | [1. first_call] |
| Columns › local_time | [3. local_time] |
| Columns › when | open |
| Columns › texted | [6. status] |
Later steps can map: id, row_number.
Path B: After hours. Rule: [3. is_open] (Boolean) Is false.
8. Action: Write the after-hours text (path B)
App: Code by Zapier · Event: Run JavaScript · Tasks: 1
Names the next opening time instead of promising a call nobody will make tonight.
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 key | Value |
|---|---|
template | Hi {first_name}, thanks for calling {business}. We are closed right now and will call you at [3. next_open]. For a burst pipe or no heat, reply URGENT. |
first_name | [1. customer_name] |
business | YOUR_BUSINESS_NAME |
link |
Returns: message, encoding, length, segments, trimmed.
9. Action: Text the caller (path B)
App: Twilio · Event: Send SMS · Tasks: 1
Same Twilio number, after-hours wording.
| Field | Value |
|---|---|
| From Number | YOUR_TWILIO_NUMBER |
| To Number | [1. customer_phone_number] |
| Message | [8. message] |
| Send Large Messages? | No |
Later steps can map: sid, status.
10. Action: Log the missed call (path B)
App: Google Sheets · Event: Create Spreadsheet Row · Tasks: 1
Same sheet as the daytime path, marked after hours.
| Field | Value |
|---|---|
| Drive | My Google Drive |
| Spreadsheet | Calls |
| Worksheet | Missed |
| Columns › call_time | [1. start_time] |
| Columns › caller | [1. customer_name] |
| Columns › phone | [1. customer_phone_number] |
| Columns › source | [1. source] |
| Columns › first_call | [1. first_call] |
| Columns › local_time | [3. local_time] |
| Columns › when | after hours |
| Columns › texted | [9. status] |
Later steps can map: id, row_number.
11. Action: Tell the owner (path B)
App: Slack · Event: Send Channel Message · Tasks: 1
After hours the owner decides whether it is worth a call tonight; first-time callers are the ones to watch.
| Field | Value |
|---|---|
| Channel | #missed-calls |
| Message Text | :telephone_receiver: After-hours missed call from [1. customer_name] [1. customer_phone_number] via [1. source] (first call: [1. first_call]). They were told we call at [3. next_open]. |
| Send as a bot? | Yes |
| Bot Name | Zap 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.
{
"call_id": "CAL8154748ae6bd4e278a7cddd38a662f4f",
"answered": false,
"customer_phone_number": "+14155550178",
"customer_name": "Priya Raman",
"start_time": "2026-11-25T23:42:10Z",
"duration": "0",
"tracking_phone_number": "+14155550100",
"source": "Google Ads",
"first_call": true
}
Plan and task usage
| Step | App | Tasks |
|---|---|---|
| 1. A tracked call ends | CallRail | 0 |
| 2. Only unanswered calls | Filter by Zapier | 0 |
| 3. Check whether the office is open | Code by Zapier | 1 |
| 4. Open or after hours | Paths by Zapier | 0 |
| 5. Write the daytime text | Code by Zapier | 1 |
| 6. Text the caller | Twilio | 1 |
| 7. Log the missed call | Google Sheets | 1 |
| 8. Write the after-hours text | Code by Zapier | 1 |
| 9. Text the caller | Twilio | 1 |
| 10. Log the missed call | Google Sheets | 1 |
| 11. Tell the owner | Slack | 1 |
Most runs stop at a filter before any task-using step, so they use 0 tasks; the upper bound is 5, 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: 10 steps after the trigger; Filter by Zapier; Paths 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
- Change the open-hours values in step 3 to your own, and the offset when daylight saving starts or ends.
- Send the after-hours alert as a Slack direct message, or as an SMS to the owner, if the channel is muted at night.
- Add a Filter on
first_callif you only want to text new callers, not existing customers.
Limits
- CallRail must be set to pass the caller name; when it cannot, the text opens with "Hi there".
- Texting back needs the caller's consent rules for your country. A missed call is often treated as an inquiry, but check before you switch it on.
Time saved
Each missed call gets a reply in seconds instead of whenever someone checks the call log, and the weekly missed-call count is a sheet filter instead of an export.
Files
| File | What it is |
|---|---|
zap.json | The Zap, step by step, in schema 1.0.0. |
zap.yaml | The same document in YAML. |
sample-trigger.json | Fictional trigger record for the first test. |
diagram.png | The step list, drawn like the Zapier editor. |
code/business-hours.js | Paste-ready Code by Zapier step. |
code/fit-sms.js | Paste-ready Code by Zapier step. |