# Version 2.2.6 Conversation-Complete Owner Email

This patch delays owner lead emails until the SMS conversation is done.

## Goal

Do not email the qualified lead to the owner while the customer is still texting.
Send the lead email after the customer closes the conversation with a phrase like:

- thanks for the info
- thank you for the information
- ok thanks
- sounds good thanks
- got it thanks
- appreciate it

## New lead fields

- conversation_complete
- conversation_completed_at
- owner_sms_notified
- owner_email_notified

## New settings

OWNER_EMAIL_REQUIRE_CONVERSATION_COMPLETE=true
OWNER_SMS_REQUIRE_CONVERSATION_COMPLETE=false

These are also available in /admin/system:

- Email Requires Conversation Complete
- SMS Requires Conversation Complete

## Behavior

If a lead is qualified but the customer has not finished texting:
- owner email is held
- owner SMS can still send if enabled

When the customer replies "thanks for the info" or similar:
- the app marks conversation_complete=1
- sends a final friendly SMS
- sends the owner lead email
