DATASET_DESIGN.mdsrc/projects/promotion-simulator/DATASET_DESIGN.md
Read only

LSKD-scale synthetic campaign history

The decision is how to turn a routine brief for a recently launched seasonal range into an audience and channel plan. The small fixture exercises the workflow end to end. The scaled history pipeline covers the calendar replay and evaluation. This design records the workload targets and the remaining modelling work.

Public evidence and simulation scale

The 2025 Australian Retail Outlook reported more than 450,000 active LSKD customers and a 60% average repeat-customer rate. The report leaves the active and repeat windows unspecified. We could not verify LSKD's total CRM profile count, market split or email and SMS list sizes. Public customer counts, stored profiles and contacts eligible for a particular send measure different populations. Australian Retail Outlook 2025 · Inside Retail interview

Klaviyo documents LSKD combining email and SMS, bringing in Shopify POS, app and loyalty data, and using purchase-triggered flows and segmented campaign follow-ups. Shopify describes a dedicated US storefront. The Loop case study documents exchanges and store credit. LSKD also publishes campaigns for limited early access and collections around the size of our 12-product brief. Klaviyo · Shopify · Loop · LSKD collection example

Use 1 million synthetic CRM profiles across 30 months. At the new-range brief cutoff, target roughly 500,000 customers who bought in the preceding 12 months, 200,000 earlier buyers and 300,000 leads without a recorded purchase. These are synthetic definitions and approximate design targets. The first target uses the same order of magnitude as the published active-customer figure. A starting consent mix of 575,000 email opt-ins and 175,000 SMS opt-ins, including 125,000 people with both, gives 625,000 with at least one opted-in channel before suppression, reachability, market and stock rules. The consent mix is a simulation parameter.

DatasetSynthetic volume target
CRM profiles1 million
Paid orders and order lines2–3 million orders and 5–8 million lines
Shopping events40–80 million
Promotional send attempts30–60 million
Message events including attempts, delivery, click and opt-out records50–110 million
Scheduled campaign briefs150–220 across 30 months
Campaign waves with randomized comparisons40–60 plus selected recurring flows
Randomized decision records including explicit wait1–3 million

These are workload targets. Monitor them alongside acquisition, order frequency, send frequency and opt-out rates. Model market, storefront and region separately. Use Australia and New Zealand for the focal brief, with US data available to test whether the pipeline limits borrowing across markets. Define eligibility from the local storefront, product availability, consent and customer state at the decision time.

Data a retailer could use

The public studies establish which integrations and flows are plausible. The following tables specify the inputs we would synthesize. Behavioural tracking coverage, historic consent and the ability to join customer records depend on each retailer's configuration.

TableFields that matter to the promotion
Contact, identity and consent historySynthetic account and source IDs, market and time zone, acquisition date and entry point, known identity links, email and SMS permissions with effective times, suppressions, bounce status and loyalty history
Web, app and store activityTime, channel, session or visit ID, known contact where available, collection viewed, product and SKU, search, size selection, basket and checkout events
Orders, items and returnsChannel and store, customer link where available, item/SKU, quantity, price and discount, currency, order date, cancellation, returned quantity, reason, refund, store credit, and exchanged item
Catalogue, price and inventory historyProduct family and category, collection membership, colour, size, market availability, launch and restock dates, price and effective inventory by location
Campaign brief and creativeOriginal marketer brief, objective, offer terms, deadline or null, relevant products and availability, audience rule, channel, creative version and message copy
Comms and experiment historyEligibility at decision time, campaign or flow and its trigger, assigned variant or wait, assignment probability when known, send and delivery events, clicks, opt-outs and the costs available to the team
Calendar and measurementLocal seasons and trading peaks, notable overlapping campaigns, attribution and logging windows, source coverage and time each record became available

Track both when an event happened and when it became visible. Simulate anonymous browsing, guest checkout, some unlinked store purchases and consent choices. Leave those events unmatched where the retailer would lack a reliable customer link. Retain comparable outcome definitions across email and SMS. For the focal brief, the primary outcome is a featured-range purchase within seven days with a unit retained through the simulated return window. Track orders, returns and costs separately so the evaluation can also report kept revenue or contribution. Klaviyo Shopify event reference · LSKD privacy policy

Generate a history in time order

  1. Create the retailer and customers. Generate catalogue releases, prices, stock by size and market, a trading calendar and acquisition cohorts. Give synthetic customers correlated but noisy preferences for product types, fit, full-price buying, channel and time between orders. Let those preferences and consent change. Generate new leads, regular shoppers, occasional discount buyers and lapsed buyers through behaviour. Keep the simulator's underlying traits outside the training data.
  2. Generate organic shopping before applying marketing. Let people browse, build baskets, buy online or in store, and return or exchange items. Model shared demand shifts around drops and sale periods. Stockouts can lead to substitution or abandonment. Some ordinary browsing sessions produce no known contact. Customers can buy in the wait group, which lets the model distinguish an additional purchase from one that was already likely.
  3. Generate a marketer's calendar and content. Start with the runnable public-calendar-based schedule. Include routine new-range pushes, fit guides, restocks, rewards, bundles, store openings, genuine early-access windows, busy sale periods and follow-up flows. Give each brief natural-language wording and record the actual variants, terms and product families it produced. Change the phrasing across equivalent offers and include similar wording for different offers. Store confirmed terms separately so evaluation can check what the LLM inferred. Keep big sales as background or distinct comparisons for routine launches.
  4. Replay decisions as a real team would. Most historic sends use marketer rules such as email for an available range, a cart reminder after a delay, or text for an opted-in early-access audience. These records are observational. Add randomized comparisons within a subset of routine briefs and recurring flows. For eligible customers, log the choices and probabilities for wait, email and SMS. Vary email copy in some comparisons, and hold the message intent constant in others where we want to isolate the channel. Simulate first-send texts for eligible groups as well as triggered reminders. Suppress follow-ups after purchase and apply contact limits across active campaigns.
  5. Apply response, fatigue and reporting delays. Let marketing change purchase likelihood in either direction. Give SMS subscribers higher organic buying in some scenarios while assigning little or negative incremental SMS effect. In other scenarios a timely text helps, including a subset of people receiving it as the first campaign touch. Include delivery failures, noisy opens, click timing, opt-outs, delayed returns, available stock changes and account-level purchase suppression. Draw future outcomes only after assignment. Keep the simulator's expected outcomes under each option in a separate evaluation dataset.

Check that the scale and depth actually matter

  • Chronological and campaign holdouts. Reserve the last six months and at least one entire collection family, including related send variants. Build decision snapshots using data available at the time. Measure policy value on randomized comparisons within the support they provide. Use the simulator's known response options as a separate diagnostic. Keep the 12-product brief at the final planning cutoff with early organic behaviour and no future send results available to the planner.
  • Alternative response worlds. Generate several reproducible histories with changes to customer behaviour, stock, consent, fatigue and channel effects. Include worlds where broad email wins or targeting adds little. Test whether audience clustering and brief interpretation improve over fixed rules and tags on the same held-out campaigns and at the same send volume.
  • Shop and campaign consistency. Reconcile each paid line, refund and exchange, check unit counts and currency, enforce consent at send time and check basket and purchase suppression. Verify that no future records enter features, the holdout joins use the locked eligibility and that the campaign labels are mature. Report the supported audience share, size of SMS comparison cells and how many campaigns support them.
  • Scale benchmark. Keep the small fixture for fast checks. Add a 100,000-profile development run and a 1-million-profile benchmark. Generate reproducibly in date-partitioned Parquet, with bounded-size batches and a local SQL engine such as DuckDB for point-in-time features. Use monthly partitions and incremental refresh to avoid rescanning the complete event history on every campaign. Record wall time, peak memory, disk size and the time to refresh features and score one promotion at each size.

Implementation sequence

  1. Read the calendar and generate shopping history. Use the existing 180-brief schedule to drive product releases and offer windows. Build a monthly generator for profiles, consent, catalogue and stock, sessions, paid order lines, returns and exchanges. Use stable IDs and date-partitioned Parquet. Start by following a few accounts through one launch, one return and one opt-out to check that the records describe a coherent sequence.
  2. Produce a 100,000-profile pilot over 30 months. Replay activity against the calendar and attach send decisions, deliveries and results. Most historical sends can follow ordinary marketing rules. Include logged randomized comparisons for routine range pushes, time-sensitive offers and basket reminders. Use DuckDB to build point-in-time decision tables. Set aside the last six months and at least one entire collection family before tuning. The pilot is complete when an individual recommendation can be traced back to the known consent, shopping and stock state, and the existing email, SMS and wait baseline can score a held-out collection. Report kept orders, contact cost, opt-outs and how much of the eligible audience has comparison evidence.
  3. Run and benchmark one million profiles. Run the same pipeline with the full target counts. Record row counts, file size, peak memory, build time, feature refresh time and time to score one promotion. Inspect whether reach, contact pressure and comparison coverage stay plausible. Reserve the new 12-product range for the final planning demo and keep its future outcomes out of the features.
  4. Measure what clustering and brief interpretation add. On those held-out campaigns, compare rule-based audiences and hand-written tags with behavioural clusters and fields extracted from plain-language briefs. Compare the recommended plan with broad email at equal send volume. Include a synthetic history where SMS helps in the right context and one where it adds little. Let the final readout explain whom to contact, which approach to use and where the available evidence leaves the decision open.

All generated records and projected outcomes will be labelled synthetic. The public figures anchor the workload and help choose use cases. The evaluation can show which decisions the system recovers across different simulated histories.