Skip to content
Valery

Module 9 · Hands-on lab

AI receptionist with a human hand-off

Script, build and test an AI receptionist for a fictional brokerage with AI disclosure, after-hours handling, hand-off rules and consent-safe text follow-ups.

About 110 min

What you'll build

You will script, build and test an AI receptionist for a fictional brokerage's phone line. It will disclose that it is an AI and that the call is recorded, answer routine questions from approved data, handle after-hours calls differently from daytime calls, hand important calls to a person, and ask permission before any text follow-up. You will finish with a tested call script, written hand-off rules, test call notes and consent-safe SMS templates.

Before you start

  • A no-code voice agent tool. The steps use Retell AI, whose pricing page lists $10 in free credits for new accounts as of October 2026, with web-call testing from the dashboard so you do not need a phone number. A test call is billed per minute from those credits (listed at $0.07 to $0.31 a minute), so twelve two-minute test calls use only a few dollars of them. Vapi is an alternative with $5 in free credits. If either asks for a credit card and you prefer not to give one, use the text-only path at the end of the steps.
  • A headset or earbuds with a microphone, a quiet room, and somewhere noisy for one test (a kitchen with the tap running works).
  • The module template: download call-flow-and-consent-log.md from this module's page. It has the script outline, hand-off table, SMS templates, test sheet and consent log.
  • Time: 90 to 120 minutes.

Use only the fictional data below. Do not load real listings, real client names or real phone numbers into any tool. All phone numbers below use the 555-01xx range reserved for fiction.

Sample data: Maple & Main Realty (fictional)

BROKERAGE: Maple & Main Realty, Brokerage
ADDRESS: 123 Example Street, Hamilton, Ontario
MAIN LINE: 905-555-0100
OFFICE HOURS: Monday to Friday 9 a.m. to 6 p.m.; Saturday 10 a.m. to 4 p.m.;
closed Sunday and statutory holidays
ON-DUTY AGENT (after hours, offers and urgent matters): Dana Okafor,
Salesperson, 905-555-0142
BROKER OF RECORD (complaints): Joan Whitby, Broker, 905-555-0155
CALLBACK PROMISE: an agent calls back by 10 a.m. the next business day

ACTIVE LISTINGS (fictional properties; asking prices are fictional)
1. 45 Example Crescent, Hamilton. 3-bed semi, 2 baths, finished basement.
   Asking $699,000. Open house Saturday 1 to 3 p.m. Listing agent: Dana Okafor.
2. 88 Example Avenue, Unit 1204, Hamilton. 1-bed + den condo, 1 bath,
   1 parking. Asking $459,000. Condo fees in listing sheet. Listing
   agent: Raj Mehta, Salesperson.
3. 210 Example Road, Stoney Creek. 4-bed detached, 3 baths, double garage.
   Asking $1,049,000. No open house scheduled. Listing agent: Dana Okafor.

FAQ
- Parking: free visitor parking behind the office.
- We serve Hamilton, Stoney Creek, Ancaster and Dundas.
- French-speaking agent: Raj Mehta (call back during office hours).
- We never take payments, deposits or banking details by phone.

Steps

  1. Draft the hand-off rules first. Open the template and fill in Section 2, the hand-off table. For each situation (offer, deposit, other offers, seller's price or motivation, advice, complaint, emergency, caller asks for a person, French speaker after hours), write who gets it, how (transfer or message) and the promised callback time. Do this before you touch the tool; the rules drive the script.

  2. Write the call script. In Section 1, write the instructions in the shape shown in lesson 3: ROLE, OPENING, YOU MAY, HAND OFF, NEVER, EMERGENCY, STYLE, BEFORE ENDING. Your OPENING must name the brokerage, say the caller is speaking with an AI assistant, say the call is recorded and transcribed and why, and explain how to reach a person. Add an AFTER HOURS block: if the dynamic variable office_status is "closed" (in Retell, write it in the prompt as {{office_status}} so the tool fills it in), say the office is closed and give the hours, offer to take a message with the callback promise, and transfer only offers, urgent matters and requests for a person to the on-duty agent.

  3. Sign up and create the agent. Go to retellai.com and create an account. In the dashboard, open Agents and create a new agent, choosing the single-prompt option (labels in the dashboard may differ slightly). Name it "Maple & Main after-hours (lab)".

  4. Choose a voice and paste the script. Pick a stock voice from the voice list. Do not clone anyone's voice. Set the language to English. Paste your script into the prompt box. Set the agent to speak first and paste your OPENING as the first message.

  5. Add the listing data. If the agent editor offers a knowledge base, create one called "Maple & Main listings", paste the listings and FAQ from the sample data as text, and attach it to the agent. If you cannot find it, paste the listings and FAQ at the bottom of the prompt under a heading LISTINGS.

  6. Add the transfer. Add the call transfer function and point it at the on-duty number, 905-555-0142. Note: Retell's documentation says transfers to a phone number fail in a browser test call because the call has no phone number. That is useful: it lets you test what your agent says when a transfer fails.

  7. Run the daytime tests. Open the Test panel, choose Test Audio, open Test Inputs, set the dynamic variable office_status to "open", and save. Click Run Test, allow microphone access, and run tests 1 to 8 from Section 4 of the template, one call each. After each call, click End the Call and write in the test sheet: pass or fail, what the agent actually said, and whether pauses felt natural.

  8. Run the after-hours tests. Change office_status to "closed" and run tests 9 to 12, including the emergency test and the noisy-room test. Record the results the same way.

  9. Fix and retest. For each failure, change one thing in the script, then rerun the failed test and two tests that previously passed, to check you did not break anything. Note each change in the test sheet's "Fix" column.

  10. Write the SMS follow-ups. In Section 3 of the template, write three texts: (a) a post-call summary for a showing request, (b) an after-hours "we got your message" text, and (c) a new-listing alert for someone who gave express consent. Each must identify Maple & Main Realty, Brokerage, include a way to reach the brokerage, and end with "Reply STOP to opt out". Keep (a) and (b) under 160 characters. Mark which are transactional and which is commercial.

  11. Fill in the consent log. In Section 5, add three fictional rows: one caller who said yes to a text summary on the call, one who said no, and one open house visitor with signed express consent. Fill in type, date, wording, source and expiry (or "until withdrawn").

Text-only path (no account needed)

Open any free AI chat tool, click New chat, paste your script and the sample data, and add: "Act as this phone agent. I am the caller. Reply in one or two short sentences, as if speaking. The office is [open/closed]." Type each test from the test sheet as the caller. This tests your rules and wording but not speed, interruptions or noise, so note that limitation in your submission.

If you're comfortable with code

Twilio's ConversationRelay connects a phone call to your own application over a WebSocket, handling speech-to-text and text-to-speech for you. Ask a coding agent to build a small server that receives ConversationRelay messages, sends them to a model with your script, and returns the reply. Twilio's trial uses shared numbers and reaches only verified numbers, so for a real phone test plan on upgrading to a paid account and renting a number (US$1.15 a month for a Canadian local number as of October 2026).

What to submit

Paste into the submission box: your call script including the opening line, your hand-off rules table, your test call notes for all twelve tests with pass or fail and any fixes, the three SMS templates, and three fictional consent log rows. Add one sentence saying which path you used (Retell, Vapi, text-only or code).

Check your work

  • The first sentence a caller hears names the brokerage, says it is an AI assistant, says the call is recorded and why, and tells them how to reach a person.
  • Offers, complaints, emergencies and requests for a person are handed off, and failed transfers end in a message with a callback time.
  • The agent never states the seller's price expectations or motivation and never takes payment details.
  • After-hours calls get different handling from daytime calls.
  • Every text identifies the brokerage and offers STOP, and the post-call text is sent only to callers who said yes on the call.
  • Test notes show at least one fix and a retest.

If you get stuck

  • The agent talks over you or cuts you off. Look for an interruption or responsiveness setting and lower its sensitivity, then retest in the noisy room.
  • It invents listing details. Add "If the answer is not in LISTINGS, say you don't have that detail and offer an agent" to NEVER, and check the knowledge base is attached.
  • Long pauses. Shorten the prompt, move listings into the knowledge base, and add a filler line before lookups.
  • Dynamic variable not working. Check the spelling matches exactly in the prompt and in Test Inputs, and that you clicked Save.
  • Free credits run out. Switch to the text-only path for the remaining tests and say so in your submission.

Template · Markdown

Call flow script and consent log

A call flow script, escalation rules, SMS templates with identification and unsubscribe, a test call sheet, a consent log and an internal do-not-call list.

Download

Submit your lab

Loading your lab status…