# Version 2.1.9 Owner Alert Fix

This patch improves owner notifications after the AI has collected customer details.

## What changed

- Owner notification no longer depends only on `lead.qualified`.
- The app now sends owner alerts when the lead looks ready, including:
  - lead.qualified is true
  - status is qualified/ready_to_book/booked
  - service type plus useful detail exists
  - conversation contains phrases such as:
    - office will follow up
    - team will follow up
    - we have your request
    - book an appointment
    - Calendly link
- Owner notification results are now logged to stderr.log.
- Owner notification is not marked complete if all channels fail.
- Adds admin endpoint:
  POST /admin/api/settings/test-owner-alert

## Logs to check

- [Owner alert completed]
- [Owner alert sms result]
- [Owner alert email result]
- [Owner alert sms failed]
- [Owner alert email failed]
- [Owner alert skipped: missing owner phone/email]
- [Owner alert skipped: lead not ready yet]
