flowchart LR accTitle: From a lifecycle rule to the next marketing decision accDescr: Follow a versioned lifecycle rule from eligible journeys to actual customer outcomes and a cost-aware change in treatment. %% case-crm-lifecycle-review (en) %% https://www.thebsq.com/work/ecommerce-crm-automation/ %% n_rule — Document the eligible audience, timing and content version. Specify whether a rule change also affects people already waiting in a sequence. n_rule["Define eligible journeys"] %% n_clock — Wait the agreed interval since activity. A late event can update history after the useful window for a particular message has passed. n_clock["Inactivity window"] %% n_eligible — Check eligibility for the proposed purpose and competing journeys. An expected transaction notice can take priority over a promotional reminder. n_eligible["Message eligibility"] %% n_decision — Immediately before contact, check order state, eligibility and timing again. Record the reason for the action taken. n_decision["Run the workflow"] %% n_send — Submit the approved content only for the eligible, still-open purchase journey. Keep the actual send status separate from the scheduled intention. n_send["Approved contact"] %% n_outcome — Separate opens, link activity and confirmed purchases. Compare eligible customers over the same window and include the cost of actual contacts. n_outcome["Review response and cost"] %% n_adjust — Choose one change to audience, timing or treatment and keep the evidence for the decision. Marketing and engineering own different parts of the workflow. n_adjust["Adjust the chosen rule"] %% n_activity — The shop records the durable basket key, activity time and storefront. A basket start is evidence of activity, while a completed purchase needs its own record. n_activity["Basket activity"] %% n_state — Apply a store event only to the relationship that can be established from its reference. Preserve its business time when delivery is late. n_state["Relationship state"] %% n_hold — Suppress a reminder after a confirmed purchase. Hold an uncertain or stale decision for reconciliation under the agreed rule. n_hold["Hold or suppress"] %% n_purchase — Use the authoritative purchase status and associated basket key to determine whether a reminder is still relevant for this customer. n_purchase["Confirmed order"] n_rule -->|"defines the eligible trigger"| n_activity n_rule -->|"sets the inactivity interval"| n_clock n_clock -->|"checks timing and purpose"| n_eligible n_eligible -->|"checks eligibility immediately before send"| n_decision n_decision -->|"eligible and purchase still open"| n_send n_decision -->|"purchase completed or facts unclear"| n_hold n_send -->|"records actual contact and response"| n_outcome n_outcome -->|"compares response and cost"| n_adjust n_adjust -->|"releases a revised treatment"| n_rule n_activity -->|"joins the durable basket key"| n_state n_state -->|"starts or refreshes the waiting interval"| n_clock n_hold -->|"reconciles the unresolved order"| n_purchase n_purchase -->|"provides the latest order outcome"| n_decision %% Measure a lifecycle rule — n_rule → n_clock → n_eligible → n_decision → n_send → n_outcome → n_adjust → n_rule %% Distinguish suppressed from sent — n_activity → n_state → n_clock → n_eligible → n_decision → n_hold → n_purchase