Skip to content
Voice AI product demo with a serverless backend, Trades and home services, roofing

AI Receptionist

An after-hours AI voice receptionist for trades businesses: the caller talks to it in the browser, it collects the job details, books a free inspection and hands emergencies to an on-call roofer.

After-call summary showing a job card with issue, urgency, name, address, callback, insurance, roof and a booked inspection, above a call transcript
What the team receives after a call: the job card filled by the receptionist's tool calls, with the transcript. Demo state, sample data.

Orrisian built and runs this product. It answers the phone for a roofing company when the office is closed. The caller describes the problem, the receptionist asks one question at a time, records the details and books a free inspection. If water is coming into the house, it collects the essentials, gives one safety tip and transfers the call to the on-call roofer.

To let a prospective customer hear it before buying, the product is packaged as a link. The prospect opens the page, types an access code and speaks into the browser microphone. The conversation runs over OpenAI Realtime on WebRTC, so there is no phone number to provision and nothing to install.

Each demo is configured for one business from a single file of facts, a greeting and inspection slots, so the same page, tools and API serve a new prospect with a copy of that file. The screenshots here use a made-up business, Example Roofing Co. No usage figures exist for the demo and none are claimed.

Problem

A missed call after hours is a lost job

Roofing work is urgent and weather-driven. A homeowner with a leak or a hail-damaged roof calls the first companies they find, usually in the evening or at the weekend when no one is in the office. If the call goes to voicemail, the next company on the list gets the job.

Selling an answering service for that gap is hard to do with slides. A roofer has to hear it handle a real conversation, and a recorded sample does not show whether it follows their own rules about pricing, insurance and emergencies.

Call screen with a phone button and an access code field above a note about headphones
The call screen asks for the access code before a call can start. Example business name.
Approach

Make the demo a link the owner can try in a minute

The demo runs in the browser so a prospect can try it from a phone or laptop without a phone number, an app or a call-back. The page is one screen with one action, a call button that becomes a live voice orb.

The receptionist is bounded by its instructions. It may only use the business facts it was given, never quotes a price or a ballpark, never promises that insurance will cover anything and never invents timelines or discounts. When it is unsure it says the team will answer when they call back.

The real API key never reaches the browser. A server function checks an access code and an expiry date, then asks OpenAI for a short-lived client key, and the browser uses only that.

Live call screen with a hang-up button inside a voice orb, a speaking status, a timer and a mute button
A live call: the orb follows the receptionist's speech, with a timer and mute. Demo state, sample data.
Solution

A single page, one serverless function and four tools

The call page connects to OpenAI Realtime over a WebRTC peer connection and a data channel. The receptionist speaks first, like a real front desk. The model is given four tools: update the job card, book an inspection, transfer an emergency to the on-call roofer and end the call.

Every time the caller gives a new detail the model calls the job card tool with everything known so far: issue, urgency, name, address, callback number, insurance status and roof type. Inspection times come from a list the server builds for the next three office days in the business's time zone, skipping Sundays, with some slots marked as already taken. A booking is only accepted if the model returns the exact text of an open slot.

When the call ends, the page shows what the team would receive: the job card, the call transcript and, for an emergency, the text that would go to the on-call roofer. In this demo that screen is a preview. The page states that on a live system the same information goes to a dashboard and is texted to the team.

Key features
  • Talks to the caller in the browser

    Real-time speech in both directions over WebRTC, with a voice orb that shows who is speaking, a timer, a mute control and handling for the browser's microphone and audio rules, including a fix for silent audio on iOS Safari.

  • Job card from the conversation

    The receptionist records the issue, urgency, name, address, callback number, insurance status and roof type as the caller gives them, and reads phone numbers back digit by digit rather than guessing.

  • Inspection booking from real slots

    Four slots a day across the next three office days in the business's time zone, with some marked taken. The receptionist offers two open times and a booking is rejected unless it matches an open slot.

  • Emergency handoff

    Water coming in, debris through the roof or a large missing section with rain counts as an emergency. The receptionist collects name, address and callback number, gives one safety tip, then transfers to the on-call roofer without promising a tarp or an arrival time.

  • Guardrails written into the brief

    No price quotes, no promise that insurance will pay, no invented facts. Addresses outside the service area are taken but not booked, and if asked, the receptionist says it is a virtual assistant. It continues in Spanish if the caller does.

  • Configured per business in one file

    Business facts, greeting, service area, time zone and inspection slots live in one module, so a demo for another prospect is a copy of that file with no change to the page or the API.

After-call summary for an emergency with an urgent badge and a text message addressed to the on-call roofer
An emergency call produces the text that goes to the on-call roofer. Demo state, sample data.
Live call screen on a phone
The same call screen on a phone. Demo state, sample data.
After-call job card and transcript on a phone
The job card and transcript on a phone. Demo state, sample data.
Under the hood
  1. 01

    The real key stays on the server

    A Vercel function compares the submitted access code in constant time, checks an optional expiry date, then requests a short-lived client secret from OpenAI. The browser receives that secret and never the account key. Upstream error details are logged on the server and hidden from the browser.

  2. 02

    Closed by default

    A missing access code or API key returns a generic error, and a malformed expiry date closes the demo instead of leaving it open. The link alone cannot start a call, because the code has to be sent with it.

  3. 03

    Cost and abuse backstops

    Calls hang up after a configurable limit, five minutes by default, enforced in the browser. The documentation is explicit that this is a shortcut and that a monthly spending cap on a separate OpenAI project is the real backstop if the link is forwarded.

  4. 04

    Browser hardening

    Deployment headers set a content security policy that allows only the app's own origin and the OpenAI API for connections, restrict the microphone permission to the page itself, send no referrer and mark the page noindex.

  5. 05

    Small enough to read in an afternoon

    No npm dependencies: one HTML file with vanilla JavaScript, one API handler, a pure request-logic module and a local development server that mirrors Vercel. Model and voice are set by environment variables.

  6. 06

    Tested without calling OpenAI

    A node:test suite of 16 tests covers the access code, expiry, missing configuration, key leakage, the payload sent to OpenAI, open slots on office days in the business's time zone and the local server's path handling. The upstream call is injected, so tests never reach the network.

Outcome
  • A prospect can hear the receptionist handle their own kind of call from a link, with no phone number or install.
  • The caller's details end up in a structured job card instead of a voicemail, and an emergency produces a ready-to-send text for the on-call roofer.
  • Bookings can only land on open inspection slots, so the receptionist cannot invent a time.
  • Setting up the demo for a different business is a change to one file, and the account key is never exposed to the browser.

Next project

Lead to LaunchFreelance web services, local business sales