flowchart LR accTitle: Different exceptions require different responses accDescr: Recover the original event, order or message receipt according to which handover failed before creating another customer contact. %% case-crm-exceptions (en) %% https://www.thebsq.com/work/ecommerce-crm-automation/ %% 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_duplicate — Recognise the same incoming basket event by reference and preserve the existing decision so one action cannot schedule two contacts. n_duplicate["Repeated store event"] %% 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_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["Final send decision"] %% n_late — A purchase can complete before its event reaches the CRM. Consult the authoritative order record at send time. n_late["Delayed purchase record"] %% 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_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_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_missing — A provider can send successfully and lose the response. Look up the original message before deciding whether a new contact is justified. n_missing["Missing send confirmation"] n_activity -->|"joins the durable basket key"| n_state n_activity -->|"same event arrives again"| n_duplicate n_duplicate -->|"reuses the existing record"| n_state n_state -->|"starts or refreshes the waiting 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_late -->|"consults the authoritative state"| n_purchase n_purchase -->|"provides the latest order outcome"| n_decision n_hold -->|"reconciles the unresolved order"| n_purchase n_send -->|"provider response is absent"| n_missing n_missing -->|"reconciles the original submission"| n_hold %% A duplicate basket event — n_activity → n_duplicate → n_state → n_clock → n_eligible → n_decision %% A delayed order confirmation — n_late → n_purchase → n_decision → n_hold → n_purchase %% A missing provider receipt — n_decision → n_send → n_missing → n_hold → n_purchase