# Version 1.8.1 Industry-Aware AI SMS Intake

This version fixes the issue where `src/ai.js` was written specifically for pest control.

## What changed

`src/ai.js` is now industry-aware for:

- Pest Control
- HVAC
- Plumbing
- Dental Office
- Veterinary Clinic
- Auto Repair
- Towing / Roadside
- Roofing
- Electrical Contractor
- Med Spa / Aesthetic Clinic
- Generic Local Service Business

## Important database note

The app still uses the legacy field name `pest_type` in the database and API, but the AI now treats that field as **service type / issue type** for every industry.

Examples:
- HVAC: `pest_type` = No AC
- Dental: `pest_type` = Tooth pain
- Auto repair: `pest_type` = Check engine light
- Roofing: `pest_type` = Roof leak

## New system setting

A new field was added in `/admin/system`:

`Business Type / Industry`

This controls:
- Initial missed-call text
- AI intake questions
- Safety guardrails
- Voice after-hours message
- Fallback behavior when OpenAI is unavailable

## Upload

Required files:
- `src/ai.js`
- `src/runtimeSettings.js`
- `public/system.html`
- `public/admin.html`
- `package.json`
- `app.js`
- `src/package.json`

No npm install is required.
