Bonus Level Studio

The Answering Line Kit

Build a phone line that answers when you can't. It asks the caller 3 questions, then sends the answers to your phone, so you call back knowing the job. You build it with Claude Code. The kit is free. No email required.

Get the kit on GitHubEvery file in one repo. If it helps you, star it. That is how other people find it. Don't want to build it? Get it set up and run for you at yardstack.org

My newsletter on AI for B2B. Each part is something I built, with the prompts to build your own.

Why I built it

In October 2026 I sent quote requests to 136 service businesses, through their website form or by email, and timed the first reply from a real person.

41 of the 82 small shops in the test never replied. I don't think that's people not caring. My guess is that in a shop of 1 to 5 people, whoever would answer is out on a job.

The full results: yardstack.org/reports/response-times

That test timed form and email requests, not missed calls. But a voicemail waits until you're off the job too. So I built a line that answers for me, and this kit is how to build your own.

59
never replied
4
took more than two days
6
took one to two days
39
replied within a day
but not within the hour
20
replied within the hour
8
replied within 5 minutes

The guide

What it does

  1. A customer calls. You can't pick up.
  2. The line answers in your business's name and says it's an automated assistant.
  3. It asks 3 questions: what they need, the address, and whether it's an emergency.
  4. Your phone gets an alert with the answers and the caller's number.
  5. You call back knowing the job.

If the caller hangs up partway, you still get an alert with whatever they said, even if it's only their number.

What it doesn't do

  • It doesn't book jobs or quote prices.
  • It doesn't text your customers. Texting from a business number needs carrier registration first, which costs money and takes weeks.
  • It doesn't answer your website form or your email.
  • It doesn't pretend to be a person.

What you need

  • Claude Code, which builds it with you.
  • A Twilio account, for the phone number. You'll need to add a card: a free trial account plays a trial message to your callers.
  • A Cloudflare account, on the free plan. That's where the line runs.
  • Your cell phone, for the alerts.
  • The prompts and the call script in this kit.

You don't need an AI API key. The line uses Twilio's own speech recognition and voice.

What it costs to run: Twilio charges a small monthly fee for the number and a small fee for each call the line answers. My own estimate is about 10 cents a missed call. Check twilio.com/pricing for today's rates before you buy. Prompt 2 has Claude Code tell you each cost before you pay it.

Plan on an afternoon the first time.

Step 1: Set up the project

Open Claude Code in an empty folder. Put call-script.md in it. Paste Prompt 1.

Claude Code sets up the project and tells you which accounts you need. One rule from the start: your passwords and keys never go into the chat. Claude Code gives you a command, and you run it yourself.

Step 2: Get the accounts and the phone number

Paste Prompt 2. This is the part only you can do: open the Twilio account, add a card, buy one local number in your area code, and open the Cloudflare account.

Buy a local number, not a toll-free one. If you later turn on the call-back, customers see this number calling them.

Step 3: Answer the call and ask the 3 questions

Paste Prompt 3. This builds the call itself, word for word from call-script.md.

Before you paste it, edit the script. Put in your business name and your first name. Change the call-back promise to one you'll keep. Change the emergency words to fit your trade.

Claude Code also builds a fake call you can run on your computer, with no phone and no charges. Run it and read the lead it saves. Fix the wording now, while it's free.

Step 4: Alert your phone

Paste Prompt 4. This builds a private page you add to your phone's home screen, like an app, and turns on push alerts.

On an iPhone, alerts only work after you add the page to your Home Screen. Claude Code walks you through it.

Press "Send test alert" before you go on. If your phone doesn't buzz, nothing after this step matters.

Step 5: Put it live and call it

Paste Prompt 5. Claude Code puts the line online and tells you the one setting to change in Twilio so calls reach it.

Then call your new number from your cell. Answer the 3 questions. The alert should reach your phone within a few seconds. Call again and hang up after the first question. You should still get an alert.

At this point the line works, but only for people who call the new number. Step 6 connects it to your real one.

Step 6: Send your missed calls to it

Paste Prompt 6. Your phone carrier can forward a call to another number when you don't answer, when you're busy, or when your phone is off. You point that at your answering line.

Calls you pick up work exactly as they do today. Only the ones you miss go to the line.

Every carrier does this differently, so the prompt has Claude Code find your carrier's own instructions and show you where it found them. It also tells you the one step that turns it all off and puts your normal voicemail back. Write that step down.

Then test it for real. Call your business number from another phone and don't pick up.

Optional: Call now, and a reminder

Prompt 7 adds a "Call now" button to each lead. It rings your cell, then connects you to the customer, and the customer sees your business line's number, not your cell.

It also adds one reminder if a lead has sat for 15 minutes without a call back. If you promised 15 minutes on the phone, this is how you keep it.

Optional: Call back a caller who hung up

Prompt 8 makes the line call back a caller who hung up before finishing the questions, about 8 seconds later, and ask the 3 questions again.

A note before you turn it on. This is an automated call to a customer, so the prompt builds it with hard limits: off by default, US numbers only, never a premium-rate number, at most one call-back per caller in 10 minutes, and never to someone who already finished or already reached you. Rules for automated calls differ from state to state. I'm not a lawyer. If you're not sure about yours, ask one before you turn this on. Try it on your own phone first either way.

Living with it

  • Call your own line once a month. If it broke, you want to be the one who finds out.
  • Read the leads page for a week and listen to what callers actually say. Then fix the script.
  • Keep the call-back promise honest. If you can't call back within the time the line says, change what it says.
  • Keep the turn-off step from Step 6 where you can find it.

The Claude Code prompts

Paste these into Claude Code one at a time, in order, from an empty folder. Each one builds on the last. Replace anything in [BRACKETS].

Have these ready: your business name, your first name, your trade, and the cell phone you want alerts on. Put call-script.md in the folder first, so Claude Code can read it.

Passwords and keys never go in the chat. When Claude Code needs one, it will give you a command to run yourself.

Prompts 1 to 6 build the line. Prompts 7 and 8 are optional. Read the note on call-backs in the guide before you turn Prompt 8 on.

Prompt 1: Set up the project

I want to build an answering line for my business, [BUSINESS NAME]. I'm [YOUR FIRST NAME],
and we do [YOUR TRADE]. When I can't pick up, a phone number should answer, ask the caller
3 questions, and send an alert to my phone with the answers.

Set up the project in this folder:
- one Cloudflare Worker in plain JavaScript (no framework), with a KV namespace to store leads
- settings in wrangler.toml: BUSINESS_NAME, OWNER_NAME, TRADE, CALLBACK_PROMISE ("15 minutes"),
  VOICE (a natural text-to-speech voice Twilio supports) and LINE_NUMBER
- a .dev.vars.example listing the secrets I'll need (TWILIO_SID, TWILIO_TOKEN, MY_CELL,
  ADMIN_KEY), with .dev.vars in .gitignore
- everything the line says in one file with no Worker code in it, so it can be tested on its own
- a README that says what each file is

Never ask me to paste a password, token or key into this chat. Give me the command to set
each one myself.

Don't build the call flow yet. Tell me which accounts I need and what each one costs.

Prompt 2: Get the accounts and the phone number

Walk me through the parts I have to do myself, one step at a time. Wait for me to say "done"
after each one.

1. A Twilio account, upgraded from the free trial. (A trial account plays a trial message
   to my callers and can only call numbers I've verified.) Tell me the cost before I pay.
2. One local phone number in my area code, [AREA CODE], with voice.
3. A Cloudflare account on the free plan, and logging this computer in to it.

Then show me where to find my Twilio Account SID and Auth Token, and give me the exact
commands to store them, my cell number and a long random ADMIN_KEY as secrets.
Check that the secrets are set without printing them.

Prompt 3: Answer the call and ask the 3 questions

Build the call flow, using the wording in call-script.md. Twilio will send a request to
/voice when a call comes in.

- Answer right away with the greeting and question 1.
- Ask the 3 questions one at a time (what they need, the address, is it an emergency).
  Listen for speech, not key presses.
- If it hears nothing, ask that question once more, then move on. Never loop.
- Save each answer to the lead the moment it arrives, with the caller's number and the time,
  so a caller who hangs up partway still leaves what they said. Keep leads for 90 days.
- Sort the answer to question 3 into urgent, not urgent or unknown, the way call-script.md
  describes. "Not an emergency" must come out as not urgent.
- Say the close that matches, then hang up.
- Refuse any request to the call routes that doesn't carry a valid Twilio signature.

Write tests for the wording and for the urgency sorting. Then build a way to run a whole
fake call on this computer, with no phone and no charges, and show me the lead it saved.

Prompt 4: Alert my phone

When the caller answers question 3, alert my phone. If they hang up before that, alert me
with whatever was captured, even if it's only their number.

- Build a private page at /owner that I can add to my phone's home screen like an app.
  Only someone with my private link or my ADMIN_KEY can open it.
- Use web push for the alerts. Create the push keys once, store them as secrets, and never
  replace them (that would silently turn off alerts on my phone).
- The page has a "Turn on alerts" button and a "Send test alert" button.
- Alert title: "New lead: URGENT", "New lead: not urgent" or "New lead: urgency unknown".
  Alert text: the job, the address and the caller's number. For a hang-up with no answers:
  "Missed call" and the number.
- Send each lead's alert once, never twice.
- The page lists my latest 15 leads, newest first. Tapping an alert opens that lead.
  Each lead has a button that dials the customer and a "Handled" button.

Then tell me how to add the page to my home screen on [iPhone / Android] and turn alerts on.

Prompt 5: Put it live and call it

Deploy the Worker. Then give me the exact address to paste into my Twilio number's
"A call comes in" setting, and tell me where that setting is.

Walk me through a real test: I call the number from my cell, answer the 3 questions, and
the alert should reach my phone within a few seconds. Then I call again and hang up after
question 1, and I should get an alert with just the job and my number.

If anything fails, read the Worker's logs, tell me what went wrong in plain words, and fix it.

Prompt 6: Send my missed calls to it

I want only the calls I don't answer to go to the answering line. Calls I pick up should
work exactly as they do today.

My business number is with [CARRIER OR PHONE SYSTEM]. Find that carrier's current
instructions for forwarding calls when I don't answer, when I'm busy and when my phone is
off, and show me where you found them. Don't guess the codes.

Walk me through turning it on. Tell me what my callers will hear and how many rings it
takes before the line picks up. Then tell me the one step that turns it all off and puts
my normal voicemail back.

Optional. Prompt 7: Call now, and a reminder

Add two things to the owner page.

1. A "Call now" button on each lead. It rings my cell first. When I pick up, it connects me
   to the customer, and the customer sees my answering line's number, not my cell.
   Then it marks the lead handled.
2. A reminder. If a lead isn't marked handled after [15] minutes, send me one alert:
   "Still waiting", the number, the job, and how long it's been. One reminder per lead.

Add both to the fake-call test.

Optional. Prompt 8: Call back a caller who hung up

If a caller hangs up before finishing the 3 questions, call them back about 8 seconds later
from my answering line's number. Use the call-back wording in call-script.md, then ask the
same 3 questions.

Rules, no exceptions:
- off by default, with one setting to turn it on
- US numbers only, and never premium-rate numbers (900, 976)
- at most one call-back per caller in any 10 minutes
- never call back someone who finished the questions or who already reached me
- record whether the call-back was answered, and show it on the lead

Make the delay a setting. Add tests for every rule, and add it to the fake-call test.

The call script

This is everything the answering line says. Replace anything in [BRACKETS]. Keep it short: a caller who wanted a person will give you about 30 seconds.

The greeting and question 1

Hi, you've reached [BUSINESS NAME]. [OWNER FIRST NAME]'s on a job right now. I'm the automated assistant, and I can get your details to [OWNER FIRST NAME] so you get a call back from someone ready to help. What do you need help with?

Say that it's automated. People are fine talking to a machine that admits it. They hang up on one that pretends.

Question 2

And what's the address?

Question 3

Is this an emergency?

If it didn't hear an answer

Ask once more, then move on. Never loop.

Sorry, I didn't catch that. What do you need help with?

Sorry, I didn't catch that. What's the address?

Sorry, I didn't catch that. Is this an emergency? Just say yes or no.

The close

Pick the close from the answer to question 3.

Not an emergency:

Got it. [OWNER FIRST NAME] usually calls back within [15 MINUTES].

An emergency:

Got it. I've marked this as an emergency and sent it to [OWNER FIRST NAME] right now.

Couldn't tell: the same close as "not an emergency". Your alert is marked "urgency unknown" so you can judge it yourself.

Only promise a call-back time you will keep. If 15 minutes isn't real for you, say an hour. A kept promise of an hour beats a broken promise of 15 minutes.

How question 3 gets sorted

The line sorts the answer into urgent, not urgent or unknown, and puts that at the top of your alert.

  • Urgent: "yes", "yeah", or words like emergency, urgent, right away, flooding, leaking, burst, no heat, no power, sparking, smoke, gas.
  • Not urgent: "no", "not really", "no rush", "not an emergency". A "not" always wins over the word "emergency".
  • Unknown: anything else. You still get the alert, marked "urgency unknown".

Change the word list to fit your trade. A roofer and an electrician have different emergencies.

The optional call-back

Only if you turn on the call-back (Prompt 8). The line calls back a caller who hung up before finishing the questions.

Hi, this is the automated assistant for [BUSINESS NAME] calling you right back. Sorry we missed you. [OWNER FIRST NAME]'s on a job. I've got 3 quick questions so you get a call back from someone ready to help.

Then the same 3 questions and the same close.

What your alert looks like

New lead: URGENT

Water heater leaking in the garage · 123 Example St · (555) 010-0142

You know the job before you say hello.

Get the next part

It's my email newsletter on AI for B2B. Each part is something I built, with the prompts so you can build it too.

Don't want to build it?

Get it at yardstack.org. That's what Speed to Lead is: this line, set up and run for you. It's my own product, and it's a demo for now. You can call the demo line and hear it.

More of what I build is at yardstack.org.

Or email [email protected] and tell me what you do.