skip to content
← cd ~/projects
~/projects/lyons-electrical

2026 · design and build · for lyons electrical contracting · shipped

Lyons Electrical

A website for an electrical contractor with a 24/7 AI assistant built in: it answers questions by text or voice, and steps aside with a call-now panel when it hears a live hazard.

source ↗Next.jsTypeScriptGeminiGroqWeb Speech API

what it is

The site for Lyons Electrical Contracting, with services, an interactive service-area map, reviews, the team and an emergency page. Built into it is Ava, an assistant that answers customer questions around the clock, by text or by voice.

The Lyons Electrical home page with Ava's chat panel open, offering quick replies and a tap-to-call bar
ava open on the home page, with tap-to-call always on top
customer messagedanger checkllm with fallbackshazard: call-now panelhuman: hand off to the office

decisions worth noting

  • Safety before the model. A deterministic classifier reads every message first. If it sounds like an active hazard, the assistant doesn't troubleshoot: it shows a "stop, call now" panel with the electrician's number.
  • Never goes quiet. Replies stream from a chain of models (several Gemini tiers, then Llama on Groq), so if one hits its free-tier limit the next one answers.
  • Free voice. Voice mode uses the browser's built-in speech recognition and synthesis, speaking each sentence as it arrives, with no paid voice service.
  • Validated input. Requests are checked with Zod before anything reaches a model.