cd /news/ai-agents/inside-a-sub-second-contractor-ai-re… · home › topics › ai-agents › article
[ARTICLE · art-182852] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Inside a Sub-Second Contractor AI Receptionist: Telnyx SIP, LiveKit Media, Spam Filtering & Google LSA Lead Recovery

OnCrew detailed the architecture behind its sub-second AI receptionist for home-service contractors, streaming audio through a Telnyx SIP trunk and LiveKit WebRTC media room with streaming VAD, STT, LLM token generation and sentence-chunked TTS to keep turn latency under roughly 900ms, versus 1,800–3,400ms for naive webhook prototypes. The system adds trade-specific deterministic safety triggers across 14 trades, a post-call pipeline that filters spam and sub-15-second hang-ups (which the company says make up 30.4% of inbound contractor traffic), and a Google LSA invalid-lead dispute packet generator.

recommendation

Stream VAD, STT, LLM tokens and sentence-chunked TTS end to end instead of buffering full utterances, and gate billing and escalation with deterministic trade-specific safety triggers before any LLM-driven intake.

more in playbook: Designing agent systems
by read6 min views1 publishedDec 6, 2026

When a homeowner calls an HVAC or plumbing shop at 2:14 AM with water pouring out of a burst supply line, a 2.5-second after "Hello?" is not a minor UX wart. It is an immediate hang-up and a $1,200 job handed to the next listing on Google.

Across 6,273 anonymized contractor calls we analyzed in 2026:

Building a voice AI receptionist that survives real home-service calls (attic noise, barking dogs, stressed homeowners, carrier forwarding quirks, and $75/call Google Local Services Ads spam) turns out to be a telephony and state-machine engineering problem far more than a prompt-engineering problem.

Here is the real architecture we use at OnCrew to keep voice latency sub-second, stop contractors from paying for robocalls, capture job photos mid-call, and recover invalid Google LSA ad spend automatically.

Most prototype AI receptionists stitch together naive HTTP webhooks:

PSTN -> SIP Carrier -> Twilio/Legacy Media Stream -> Wait for full utterance
-> REST STT -> Non-streaming LLM -> Full TTS buffer -> Audio playback
(Typical end-to-end turn latency: 1,800ms to 3,400ms)

In a live emergency call, anything past ~900ms feels broken. Callers assume the line dropped, say "Hello? Are you there?", collide with the bot's delayed audio, and trigger cascading barge-in resets.

To hold sub-second conversational turn latency on PSTN phone calls, every layer has to stream:

Caller (PSTN / Carrier Forward)
  |
  v
Telnyx SIP Trunk (US local DID, low-jitter RTP)
  |
  v
LiveKit Real-Time Media Room (WebRTC / SIP bridge)
  |
  +--> Streaming VAD + Turn Endpointing (distinguish  vs done speaking)
  +--> Streaming STT (word-level partial transcripts)
  +--> Trade-Specific State Machine + Streaming LLM Token Generation
  +--> Sentence-Chunked Neural TTS (first audio byte before LLM finishes)
  |
  v
Structured Post-Call Pipeline:
  1. Spam / <15s unbilled filter
  2. Urgency + Safety Classification (14 home-service trades)
  3. Instant On-Call Tech SMS + Dashboard Recording/Transcript
  4. Google LSA Invalid-Lead Dispute Packet Generator
  5. Native Calendar / FSM / REST Webhook (call.completed & call.urgent)

Three telephony details matter more in production than almost anything else:

Open-ended LLM instructions are risky when life-safety calls arrive. Before asking for a zip code or booking preference, contractor intake needs deterministic safety triggers tailored to each trade:

Trade Immediate Safety Trigger Required First Action Escalation Path
HVAC Natural gas odor, rotten-egg smell, CO detector chirping Advise stepping outside immediately & calling 911 / gas utility Flag urgency: emergency , notify on-call lead
Plumbing Active flooding, burst main line, water near electrical panel Guide caller to shut off main water valve / cold supply Capture street address + SMS photo of leak/tank
Electrical Sparking panel, burning plastic smell, downed drop line Advise staying clear & cutting main breaker only if safe Immediate live transfer or Press-1 tech escalation
Roofing Active ceiling collapse, exposed live wiring in storm leak Advise moving away from sagging drywall / turning off circuit Capture storm leak photo + priority callback

You can build and export a printable 3-tier escalation SOP across 14 trades (no signup required) using our free On-Call Escalation Builder.

Traditional call centers (and several per-call AI vendors) charge for every answered leg:

Because 30.4% of real inbound contractor phone traffic consists of <15s hang-ups, silent dialers, and solicitation robocalls, billing every connected call acts as a hidden 30% tax on the contractor.

In our post-call metering pipeline, every finished SIP leg passes through an automated billing-exclusion filter before minutes decrement:

abandoned / zero meaningful caller intent) and billed Taking a name and callback number is table stakes. The real operational leap happens while the caller is still on the phone:

For home-service shops and the PPC agencies managing their ad spend, missed calls and junk Google Local Services Ads (LSA) leads are often a bigger leak than answering fees.

At $50 to $120 per Google LSA call, roughly 15% - 25% of inbound paid calls are disputable:

Most small shops eat the loss because nobody has time on Friday evening to scrub recordings and build evidence notes. By enforcing zip-code and service-scope verification inside the first 30 seconds of every call, the post-call pipeline automatically tags invalid LSA legs and generates a 1-click timestamped transcript + recording dispute packet.

Recovering just two invalid LSA calls per month covers the entire cost of a $49 - $149/month receptionist plan. Contractors and agencies can model exact monthly recovery math with our free Google LSA Credit Calculator or inspect our Agency Partner Portal.

Instead of locking small shops into a single $2,000/month enterprise CRM, clean REST hooks let any shop connect call outcomes to Housecall Pro, Workiz, FieldEdge, Service Fusion, Google/Outlook Calendar, Slack, Google Sheets, or Zapier (call.completed and call.urgent).

A clean v2 webhook payload looks like this:

{
  "event": "call.urgent",
  "call_log_id": "00000000-0000-4000-8000-000000000001",
  "company_name": "Summit Plumbing and Heating",
  "company_trade": "hvac",
  "duration_seconds": 96,
  "caller_name": "Dana Reyes",
  "callback_number": "+15125550142",
  "caller_location": "4116 Lawless St, Austin, TX",
  "commercial_or_residential": "residential",
  "job_type": "AC repair",
  "service_needed": "AC running but blowing warm air, house at 84F",
  "urgency": "emergency",
  "outcome": "lead",
  "wants_immediate_callback": true,
  "summary": "Dana's AC is running but not cooling (84F indoors). Requests same-day repair.",
  "recording_url": "https://oncrew.ai/calls/00000000-0000-4000-8000-000000000001",
  "dashboard_url": "https://oncrew.ai/calls/00000000-0000-4000-8000-000000000001"
}

Filtering out test calls, <15s hang-ups, and the shop's own team numbers before firing call.completed keeps downstream CRMs free of junk records.

Half of all trial drop-offs happen at a surprisingly mundane step: forwarding the shop's existing phone number without breaking day-to-day calls.

Most owners do not want unconditional forwarding (*72), which sends every daytime call away from their phone. They want conditional forwarding (busy / no-answer / unreachable) so the phone rings 3 - 4 times in their pocket first, and only routes to the AI receptionist if they cannot answer on a ladder or after hours:

*71<10-digit-number> (conditional) vs *72 (all calls); cancel with *73.*61*<number># (no answer), *67*<number># (busy), *62*<number># (unreachable); cancel with ##004#.**61*1<number># (no answer), **67*1<number># (busy); cancel with We open-sourced the full carrier code matrix under CC-BY-4.0 on GitHub (us-call-forwarding-codes) and built an interactive Call-Forwarding Wizard so owners can generate exact tap-to-dial codes in 30 seconds.

Never trust a landing page for voice AI. Put any system through a real 2 AM emergency call, interrupt it mid-sentence, test a Spanish switch, and verify how fast the structured SMS summary hits your phone.

You can call our live public trade demo line right now at (213) 319-5075, try an interactive demo at oncrew.ai/demo, or compare transparent flat-rate plans ($49/mo for 250 min, $149/mo for 1,000 min, $349/mo for 2,500 min, 14-day cardless trial) at oncrew.ai/pricing.

Abe

Founder, OnCrew

── more in #ai-agents 4 stories · sorted by recency
── more on @oncrew 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/inside-a-sub-second-…] indexed:0 read:6min 2026-12-06 · —