HVAC Plus — AI Receptionist for HVAC Companies: Voice Agent & Business Automation
United States · HVAC and home services (fictional demo business)
A reusable, event-driven AI automation system for U.S. home-services companies: an AI voice receptionist takes the call, and the system validates the intake, qualifies the lead, stores a durable booking request, syncs HubSpot with write and readback verification, escalates to a human, and recovers from integration failures without losing or duplicating a customer.
Role: Solo build: architecture, voice-agent design, TypeScript engine, n8n workflows, database, dashboard, testing and docs
- 18 n8n workflows
- 19 database tables
- 64 automated tests
- 3 industry configs
What I built
- Designed a persist-first, event-driven architecture: voice, engine, outbox, CRM, email, handoff and dashboard
- Built a TypeScript engine with intake validation, rule-based lead qualification and a booking state machine
- HubSpot contact and deal upsert with readback verification and reconciliation of uncertain writes
- Bounded retry (30 s, 2 min, 5 min), dead-letter queue, notification ledger and duplicate-event protection
- 18 importable n8n workflows (WF-01 to WF-18) with no embedded credentials
- PostgreSQL schema with 19 tables and row-level security for tenant isolation
- Next.js operator dashboard with live failure and duplicate-replay simulation
- Voice-agent prompt and tool definitions with a safety-first escalation policy
Related live demos
Project status
Independent proof of concept. I designed and built this system on my own initiative, based on a typical requirement from U.S. home-services companies. It runs on synthetic data for a fictional business, Texas Comfort HVAC in Houston, Texas. It is not a delivered client project, and no live phone line, voice agent, HubSpot portal or email provider is connected yet. Every part of this page is labelled as implemented, simulated or proposed, and the test results below come from real automated runs.
Why HVAC companies need an AI receptionist
HVAC companies lose jobs at the phone. Calls come in during installs, after hours and in heat waves, when every missed call is a customer who rings the next company. Details get written on paper or typed into the CRM later, bookings are promised before anyone checks a technician's calendar, and when an integration fails, nobody notices that a lead disappeared. The brief: answer every call, capture a complete service request, put it in HubSpot correctly, bring in a human when it matters, and never lose or duplicate a customer even when an API fails.
Objectives
Goals for the system (targets, not measured results):
- Answer inbound calls 24/7 and reduce missed calls and lost leads
- Capture structured customer and service details on every call
- Classify urgency and lead quality with configurable rules
- Create durable booking requests without promising unconfirmed times
- Write to HubSpot and verify the write by reading it back
- Escalate safety situations and caller requests to a person
- Keep every customer record through integration failures, with no duplicates
- Reuse the same core for roofing, restoration and other home services
The solution: an AI answering service for HVAC, wired into your CRM
A modular, event-driven system in four layers. A voice layer (AI receptionist on a U.S. number) collects the request. A TypeScript engine validates, persists and qualifies it and owns all reliability logic. n8n workflows orchestrate, schedule and alert. An operator dashboard shows what happened and lets staff acknowledge handoffs, move bookings and retry failures. The key design rule: persist first, then act. Nothing talks to HubSpot or sends email inside the webhook. Side effects run from an outbox, so a slow or failing provider can never cost a customer record.
System architecture
Technology stack
One practical choice per requirement, no paid service needed to run the demo.
End-to-end workflow
The 18 n8n workflows
Small, reusable workflows instead of one giant canvas. All 18 are importable JSON exports with no credentials inside; Postgres nodes and webhook auth get their credentials after import, and every workflow ships inactive. They are validated by a test (unique node names, valid connections, no secrets) but have not yet run in a live n8n instance.
AI voice agent conversation
An illustrative call. The prompt forbids confirming an appointment, quoting prices or giving repair advice, and it reads a fixed safety script for gas, carbon monoxide, smoke or sparks.
Structured customer intake
The agent's submit_intake tool call becomes this payload. The engine validates it with a strict schema (E.164 phone, U.S. ZIP, enums) and returns field-level errors so the agent can ask again. Synthetic data: 555-01xx numbers and example.com addresses are reserved for fiction.
Lead qualification
Rules live in the industry config, so a business can change keywords, service area and categories without code. Safety always wins.
n8n HubSpot integration: write and readback
A success response is not proof. After every write the engine reads the contact and the deal back and compares each mapped field. A mismatch (for example, a custom property that did not save) is treated as a failure and sent to an operator.
- Search the contact by email or phone before writing
- Create or update the contact through a configurable property map
- Find or create the deal keyed by the source event id, associated to the contact
- Read both records back and diff expected against actual values
- Store the local-to-HubSpot mapping and mark the booking CRM-verified
- If a write times out after it was sent, reconcile by searching again instead of creating a second record
Booking and human escalation
Bookings follow a strict state machine: Requested, Pending, Confirmed, Rescheduled, Assigned, Completed, Cancelled. Invalid jumps (for example Requested to Completed) are rejected, and only Confirmed, Rescheduled and Cancelled send the customer a message. Handoffs carry the reason, priority, call reference, destination, assigned operator and acknowledgement time. If nobody acknowledges within five minutes, the case moves to a callback queue so it cannot be forgotten.
Operator dashboard
A Next.js and Tailwind dashboard with Overview, Calls, Leads, Bookings, Handoffs, CRM Sync, Notifications, Integration Health, Failed Jobs, Audit Log and Settings. Demo controls simulate an inbound call, a CRM outage, invalid CRM data and a duplicate-event replay, so the recovery logic can be watched live. The screenshots below are from the real build, running on synthetic data.
Error recovery and retry
The test suite deliberately breaks the CRM and checks that nothing is lost.
- Transient errors (429, 5xx, network) retry after 30 seconds, 2 minutes and 5 minutes
- Permanent errors (400, 401, 403, 404) are never retried blindly; they go straight to the dead-letter queue
- Uncertain outcomes are reconciled by re-running the search-first upsert
- After the limit, the job is dead-lettered with its reason and an operator alert
- Operators can fix the cause and requeue with one click; the retry is audited
Duplicate prevention
Voice platforms and webhooks can deliver the same event two or three times. In the replay test the same event is sent three times while the first CRM response is lost on purpose. The result is exactly one contact, one deal, one booking and one email.
- Unique tenant + event id, in the engine and as a Postgres constraint
- One booking per source event (unique constraint)
- Notification ledger keyed by booking and template
- Search-first CRM upsert keyed by the source event id
- No exactly-once claim: the guarantees are at-least-once delivery with idempotent effects
Security and tenant isolation
- Webhooks signed with HMAC-SHA256 over timestamp and body, 5-minute replay window, constant-time compare
- Role-based access: admin, operator and viewer with explicit permissions
- Every tenant table has tenant_id with Postgres row-level security (ENABLE and FORCE), checked in CI
- Strict input validation and a 64 KB body limit
- Secrets only from environment variables; no credentials in workflow exports
- Phone numbers and emails redacted from logs
- Demo email redirected to one controlled inbox; call recording off by default with a disclosure line
- Retention: transcripts purged after 90 days
Testing and acceptance
The 18 acceptance tests were run for real. 6 Passed (ran against this project's own code), 9 Simulated (ran and passed, but HubSpot, email or voice was a mock), 1 Blocked (needs a live phone line) and 2 Not Tested (rollback drill and operator walkthrough). Nothing was run against a live phone line or a live HubSpot portal. The full engine suite has 64 passing tests on Node 20, 22 and 24, plus Postgres checks for durability, duplicates and tenant isolation.
AI voice agent for home services, not just HVAC
The engine never hard-codes HVAC. One config file per industry holds the business details, service area, service categories, emergency and priority keywords, escalation timeout, booking windows, CRM property map, greeting and safety script. HVAC Plus, Roofing Plus and Restoration Plus ship today and run through the same tests; plumbing, electrical, pest control or cleaning is a new config file, not a new application.
Deployment and documentation
- Docker Compose stack: PostgreSQL, engine, n8n and dashboard (written, not yet run on a server)
- Environment template with no real values
- Architecture, OpenAPI spec, security notes, operator runbook and infrastructure options
- Status report separating implemented, simulated and proposed parts
- GitHub Actions CI and a tagged v0.1.0 release with build artifacts
Expected business benefits
What this design is built to deliver once connected to live accounts (not yet measured):
- Every call answered, including nights and peak season
- Complete, consistent service requests in the CRM
- Faster response on emergencies and priority jobs
- No lost or duplicated customers when an integration fails
- Operators see failures and fix them instead of discovering them weeks later
Roadmap
- Connect a Retell AI or Vapi agent to a test U.S. number
- Verify HubSpot write and readback in a developer test portal
- Postgres-backed engine store (the schema is ready)
- Calendar or field-service-software scheduling
- Slack, Teams and SMS channels
- Staging deployment, rollback drill and monitoring
Interactive demo: failure recovery and duplicate replay
Try the two hardest parts yourself. This runs in your browser with the same rules as the engine (simulated providers, no network calls).
Work with me
Need a similar AI automation system for your business? Let's discuss your requirements. Book a call and I will walk you through the working build. The source code is in a private repository and available for review on request. Related services: AI agent development, AI automation and web development.
Tech stack
n8n, HubSpot API, Voice AI, TypeScript, Node.js, PostgreSQL, Next.js, Tailwind CSS, zod, Vitest, Docker, GitHub Actions






FAQ
What is an AI receptionist for HVAC companies?
It is a voice agent that answers your business line, talks to callers in natural English, collects the name, phone, address, ZIP code, equipment problem and preferred visit window, and passes a structured service request to your CRM and dispatch team. In HVAC Plus it also spots safety situations such as a gas smell or a carbon monoxide alarm and hands them to a person straight away.
Can an AI answering service replace an after-hours HVAC answering service?
It can take the same calls at night, on weekends and during heat waves, and it never puts a caller on hold. The difference is what happens next: every request is stored, qualified and written to HubSpot automatically, and urgent calls page the on-call technician. A human still confirms the appointment time.
Does the AI book appointments on its own?
It records a booking request with the caller's preferred window and tells the caller it is not confirmed yet. Your team confirms after checking technician availability, and the customer gets one email per status change. Direct calendar or field-service-software booking is on the roadmap.
How does the n8n HubSpot integration avoid duplicate contacts?
Every inbound call event has a unique id. The engine searches HubSpot before it writes, keys the deal on that event id, reads the record back to verify it, and blocks replays of the same event. In testing, three deliveries of one event produced exactly one contact, one deal, one booking and one email.
What happens if HubSpot or the email provider is down?
Nothing is lost. The call is saved first, and the CRM write retries after 30 seconds, 2 minutes and 5 minutes. If it still fails, it goes to a dead-letter queue and the operator dashboard shows it with a one-click retry.
Can the same AI voice agent work for roofing, plumbing or restoration?
Yes. The core is shared and each trade gets a configuration file with its own services, service area, emergency keywords, escalation rules and CRM fields. Roofing and restoration configurations already run through the same tests.
Is HVAC Plus a live client deployment?
No. It is an independent system I designed and built with synthetic data for a fictional company, Texas Comfort HVAC. Phone, voice platform, HubSpot and email are simulated until connected to a real business's test accounts.