ZT-507 · Install Appointment: 14-day text only fires on the exact day; "(auto)" SMS controls aren't automatic
| Status | Built 2026-11-20; first nightly run to check |
| Ticket | ZT-507 |
| Requested by | Claude's Oct 27 config audit (for Michael Lowry) |
| Made by | KAJ Jacobs (Albatross audit data, user 2284): archives 2026-11-19 16:27 UTC; 14-day text 2026-11-20 19:15–19:16 UTC |
| Date made | 2026-11-19 (archives), 2026-11-20 (14-day text) |
| Sections affected | 08 · Installation |
| Project types | Residential (Install Appointment) |
Request
The "2 Week Install" reminder text only goes out if the Install Appointment is at Pending Event on the exact night the install is 14 days away. Installs whose delivery date is confirmed less than 14 days out never get it. Separately, three controls named "(auto)" that text the homeowner or rep weren't automatic.
Re-checked 2026-11-12: the 14-day text is still broken. The "(auto)" SMS part is settled or deliberate.
Review
Checked 2026-11-12.
14-day text
- Notify Customer 14 Day Prior (auto) (Install Appointment, auto + timed, placed in Automatic Controls). Condition:
(Event: Install Appointment) System Data: Project Process Block Event Start Time EQUAL 14AND NOT(Event: Installation) Custom Field: Scheduling-Install Scheduled EQUAL current DateAND(Event: Install Appointment) System Data: Project Process Block Event Object Status EQUAL Pending Event (Fail if none exist = false)AND NOTHO comms blocked(added by ZT-555). Action: SMS "2 Week Install -> Customer" to the homeowner. - Runs since Oct 22: 7 passes on 7 projects (last 2026-11-06). Over Oct 23–Nov 12, 197 projects had an install start; 132 of those appointments were created less than 14 days before the start. The sister text Notify Customer 1 Day Prior (auto) passed 231 times on 189 projects in the same window.
- The 1-day text was already fixed the same way this ticket proposes: it uses
… Event Start Time LESS THAN OR EQUAL 1(the oldEQUAL 1rule is now unused). - The "2 Week Install" wording is generic ("Reminder: you have an upcoming appointment with us on {date}…"), so sending it 3 to 14 days out reads fine.
- Pending Event is reached by Delivery Date Confirmed or Scheduled - No Materials Needed. Since ZT-533 Delivery Date Confirmed needs All Permits Approved, and since ZT-593 it also works when Prescheduled = true, so prescheduled installs can get the 14-day and 1-day texts before permits. That is intended (KAJ) and isn't changed here.
- Fires once per appointment. A reschedule or call-off closes the appointment and opens a new one, so the new date gets its own reminder. No "sent" field is needed.
- Projects in flight: 74 Install Appointments sit at Pending Event with a future start; 55 start 3–14 days from today. On the first nightly run after the change, those that aren't blocked by
HO comms blockedget the text (each appointment once). - Auto + timed controls may only run on the nightly run (DOC-GUIDE, ZT-577), which is fine for a reminder.
"(auto)" SMS controls
- SMS - RTBS (auto) (Installation block) was archived by KAJ Jacobs on 2026-11-11 23:45 UTC. The RTBS text goes out from the project-level Send All Approvals RTBS Email (auto). Done.
- SMS - Fresh Install (auto) ("Install Scheduled -> Customer") and SMS - Work Started (auto) ("Install Started -> Rep") are timed but not auto, and neither is placed on any screen section, so nobody can click them either. Michael confirmed on 2026-11-02 that their auto flag was removed on purpose because they misbehaved. So today no "Install Scheduled" confirmation text and no "Install Started" rep text go out at all.
- No other Install Appointment control texts the homeowner except On My Way ("Crew En Route -> Customer").
Other checks
- Money and integrations: none. Reporting: none known.
- Project types: Residential installs only (Install Appointment).
Likely cause: the rule was built as EQUAL 14 instead of a window, and Pending Event usually comes later than day 14.
Admin checklist
Before you start
- Michael decides about SMS - Fresh Install (auto) and SMS - Work Started (auto): archive both (recommended, since they are off on purpose and unplaced), or keep them for a later rebuild. With the wider 14-day window below, most homeowners get a reminder 3–14 days out, which partly covers the missing "Install Scheduled" text.
- Heads-up to Install Scheduling and Customer Experience: the first nightly run after step 5 texts about 55 homeowners whose installs are 3–14 days away (minus any canceled or on hold).
Rule
- Install Appointment › Requirements › Rules: create global rule
(Event: Install Appointment) System Data: Project Process Block Event Start Time LESS THAN OR EQUAL 14.
Control
- (Recommended, since this changes an auto control that texts customers) Try steps 3 and 5 in staging first on a test project with an install 5 days out at Pending Event.
- Install Appointment › Controls › Notify Customer 14 Day Prior (auto): in the condition, replace
(Event: Install Appointment) System Data: Project Process Block Event Start Time EQUAL 14with the new… LESS THAN OR EQUAL 14rule, and add NOT(Event: Install Appointment) System Data: Project Process Block Event Start Time LESS THAN OR EQUAL 2(existing global rule). Keep the other three parts as they are. The condition reads:… LESS THAN OR EQUAL 14AND NOT… LESS THAN OR EQUAL 2AND NOT(Event: Installation) Custom Field: Scheduling-Install Scheduled EQUAL current DateAND(Event: Install Appointment) System Data: Project Process Block Event Object Status EQUAL Pending Event (Fail if none exist = false)AND NOTHO comms blocked. Keep auto + timed on. No action changes.
Clean-up
- If step 1 says archive: archive SMS - Fresh Install (auto) on Install Appointment.
- If step 1 says archive: archive SMS - Work Started (auto) on Install Appointment.
Test
- The day after step 5, tell Claude. Claude checks in Phoenix that the control passed for appointments 3–14 days out, that none passed twice for the same appointment, and that none passed on a project blocked by
HO comms blocked. (Test project 28349 is canceled, soHO comms blockedstops the text there; it can't prove a send.)
New SOP
Homeowners: get the "upcoming appointment" text once their install is booked and confirmed (Pending Event) and 3 to 14 days away, instead of only when it's exactly 14 days away. They still get the day-before text.
Install Scheduling / Procurement: no change. Confirming the delivery date (or booking with no materials needed) is what makes the reminder go out, so confirm it promptly. A rescheduled appointment gets its own reminder.
Rollback
- Put
… Event Start Time EQUAL 14back in place of the two new start-time rules on Notify Customer 14 Day Prior (auto). - Un-archive the two SMS controls if they were archived (they stay unplaced and off).
How to verify
Claude checks the control's condition in Phoenix, then the control history for the first two nights: passes on appointments 3–14 days out, at most one per appointment, none on canceled or held projects.
Open questions
- Archive SMS - Fresh Install (auto) and SMS - Work Started (auto), or rebuild an "Install Scheduled" confirmation text later?
Config check
2026-11-19:
- Done in production (16:27 UTC): SMS - Fresh Install (auto) (818) and SMS - Work Started (auto) (817) archived. Neither was automatic, so no text stops going out.
- Not built in production yet: the Notify Customer 14 Day Prior (auto) condition change (checklist step 5). It's being tested in staging first; about 55 homeowners will get the text on the first prod run, so Install Scheduling and CX need a heads-up before it goes live.
2026-11-20, Install Appointment in production:
- 14-day text built. New global rule
(Event: Install Appointment) System Data: Project Process Block Event Start Time LESS THAN OR EQUAL 14(rule 4784, created 19:15 UTC). Notify Customer 14 Day Prior (auto) (1198, modified 19:16 UTC) now reads: Start Time LESS THAN OR EQUAL 14 and NOT Start Time LESS THAN OR EQUAL 2 and NOT Install Scheduled = current Date and event at Pending Event and NOTHO comms blocked. Still auto + timed; action unchanged (SMS "2 Week Install -> Customer"). This matches checklist step 5. - Not checked yet: the first nightly run (tonight, 2026-11-20). Claude checks the control history the next morning: passes on appointments 3–14 days out, once per appointment, none on held or canceled projects. About 55 homeowners are expected to be texted once.
- Fresh Install and Work Started archives: done 2026-11-19 (see above).