Promotion simulator from written brief to campaign plan
Portfolio scope
Implement and evaluate a marketing modelling workflow for Working Figure. The deliverables are reproducible code, a held-out evaluation against realistic targeting rules, and a demo that makes the two decisions inspectable. The target is a small, self-hostable open-source reference. CRM-neutral inputs make the implementation portable, and a file-based demo shows how it fits a team's existing campaign workflow.
Business problem and decision
A marketing team receives a topic or promotion idea and needs to turn it into work that can go out. Someone has to pull and refine the audience, work out where one message is enough or separate campaigns make sense, and brief the copy and any follow-ups. The job is repeated with every brief, even as the audience and recent campaign history keep changing.
The planned workflow starts from the marketer's written description. The simulator will use current customer profiles to find relevant audiences and propose a coordinated campaign plan. Each campaign has a defined audience, an objective, a strategy and draft copy. The plan shows why it splits the audience the way it does and what the model expects under alternative plans. The analyst can inspect the data, assumptions and rules behind it. The marketer can edit and approve the plan before export.
The brief-first workflow is the main demo. The audience-first view lets the marketer open a proposed group and compare other messages for it using the same response scorer. The reference scenario is a weekly LSKD web-store brief to give a recently released 12-product seasonal range an extra push, with simulated product, contact and campaign data. The first demo compares email, SMS and waiting. The source contract stays CRM-neutral.
How we will judge the business value
- Planning effort. Give a marketer the same brief and available data in the usual workflow and in the simulator. Compare time to a reviewable send plan and check whether the marketer can explain who qualifies, why the audience or message was chosen, and what the evidence supports.
- Campaign impact. Where randomized data supports the comparison, evaluate additional purchases or contribution margin against the team's usual rule at the same send volume. Report who the comparison covers and how uncertain it is.
- Decision quality with limited data. Check whether a marketer can distinguish an observed customer pattern, an estimated campaign effect and an assumption. A labelled scenario can demonstrate the workflow and help design a test. Real campaign impact needs separate evidence.
Technical architecture
The current model diagram shows how the prepared brief, eligible audiences and earlier experiments feed the statistical scorer. The planned architecture shows where brief interpretation, plan review and export will fit. The technical notes record the reasons for the main design choices.
Market research
The industry references and reuse plan documents how Salesforce Marketing Cloud Next supports brief-based campaign creation and behavioural audience assignment, why the decision matters in real businesses, and which existing methods and tools are useful baselines. The held-out evaluation tests when our implementation improves on a team's usual rule.
The industry practice and limitations report documents the CRM practices behind a weekly retail campaign and how stock, returns and channel rules affect the plan.
Planned demonstration workflow
- Start with a written promotion. Enter the idea the way a marketer would write it for a colleague. The LLM identifies the objective, offer, exclusions and key open questions. Verify terms when they affect eligibility or the campaign strategy.
- Find audiences and build alternatives. Use current customer profiles, existing segments when available and model-discovered groups. Compare a single broad campaign with alternatives that use different audience splits, angles or copy. Set the number of campaigns from the meaningful differences in behaviour and the marketer's constraints. Three campaigns are one possible outcome.
- Recommend a plan with copy and a forecast. Show each campaign's audience, why it fits, the recommended channel, message strategy and draft copy. Show conversions and engagement by campaign and across the plan, with a comparison, a time window and a range or explicit scenario. If a staged communication makes sense, include its trigger, a choice between email, SMS and waiting, and a stop rule.
- Review, export and learn. Let the marketer inspect an audience, compare a different message for it, edit the plan and export the approved audience definitions and copy. Import what was actually sent and what happened to improve the next set of recommendations.
The planned readout will name the baseline, denominator and outcome window, then link any estimate to its evidence and uncertainty.
Email can carry a range overview or comparison. Use SMS primarily for a behaviour-triggered follow-up or a real time constraint. Compare a first-send SMS as well for eligible audiences with relevant prior response evidence. Show the expected advantage, cost and uncertainty of the choice relative to the other eligible channels and waiting.
Project 1 can assign different campaigns to different groups in one plan. It can also draft follow-ups, score an eligible next contact at the time of the decision, and compare a fixed multi-message package as one action when the evidence covers that package. The separate customer journey planner owns modelling how a first message changes later behaviour and which follow-up should be selected. A drafted journey is a plan the marketer can review. An outcome estimate belongs to the action or complete package the available evidence or scenario actually covers.
Data and evidence
The initial demo uses a coherently simulated contact and campaign history with explicit labels. The LSKD scenario specifies the required events and campaign comparisons. Use actual briefs or other permitted material for context where it helps. If an approved campaign archive becomes available, use actual briefs and assets, customer and contact history, experiment assignments, assignment probabilities or design records, and purchases, refunds and opt-outs. Define stable customer, campaign and variant identifiers and an outcome window before analysis. Retain the timestamp and provenance of what was known at assignment. Reconcile assignment and outcomes, and include everyone assigned to the eligible experiment arms in evaluation.
Ship a reproducible reference fixture that can run without access to third-party data. In synthetic data, include customers who would buy anyway, customers helped or harmed by contact, campaigns with weak or zero effects, and changes between campaign waves. Generate outcomes independently of the fitted model and keep simulated truth out of model inputs. Document the simulation assumptions and report separate results for observed purchases and simulated campaign response.
Model and simulator
- Customer profiles. Build reproducible point-in-time profiles from purchase recency, frequency, categories, spend, engagement and contact history. Start with existing segments and simple purchase-history rules. Add behavioural clustering, check whether groups are stable over time and describe each in terms a marketer can recognise.
- Promotion interpretation. Start with manually defined campaign tags. Use the LLM to extract the structured offer and distinguish it from the creative angle. Store the source text for each material field and surface ambiguity for confirmation. Retrieve analogous campaigns with their audiences, tested variants and evidence. Compare the added value of LLM-derived features with the tag baseline.
- Response model. Start with pooled estimates by segment and campaign type. Add a flexible model only if it improves held-out decisions. Under credible experimental support, score incremental response against no send or compare two tested messages. Surface customer relevance separately when all we have is purchase history. Require support from comparable campaigns, eligible populations and tested options before presenting an effect estimate for a new brief.
- Simulation and decision. Aggregate estimated changes across the proposed audience. Translate them into orders, revenue or contribution margin when corresponding cost inputs exist, with discounts, refunds and contact costs accounted for consistently. Propagate effect uncertainty into plan comparisons. For unsupported options, let the marketer compare explicit response assumptions, see the lift required to justify a send and design a test. The LLM explains the evidence and drafts the brief. The numerical estimates come from the response model or the stated scenario assumptions.
Start with batch profile refresh and scoring. Store the campaign representation, model version, audience criteria and evidence behind an export so recommendations can be reproduced.
Learning between campaigns
The learning loop connects incoming contact and campaign history to updated customer profiles, better historical comparisons and a periodically refreshed response model. The marketer can see what changed since the last campaign. The demo replays two chronological waves so the audience and estimates can be compared before and after the next import. We will judge whether new data improved the model before using the updated scores by default.
Implemented data preparation
The data preparation guide runs the first local slice. It generates two synthetic historical waves and a 12-product planning campaign, imports equivalent exports through a shared contract, and builds customer snapshots and kept-range outcome rows for email, SMS and waiting. The response baseline turns those snapshots into an equal-volume plan comparison and replays a historical wave held out from training.
The scaled history readout documents the 30-month campaign replay, its audit, the held-out policy comparison and the fixed-volume clustering comparison. It includes a second simulation where SMS adds little and records which findings justify using the simpler audience rules.
Evaluation and delivery
- Data and baseline. Document available sources, evidence gaps and the outcome window. Build point-in-time snapshots and a baseline that uses ordinary segments and campaign tags. Confirm reproducibility and that future events cannot enter features.
- End-to-end prototype. Deliver both workflows on the same data and model. Check term extraction, eligibility, suppression, empty audiences, unsupported offers, evidence links and export counts.
- Held-out campaigns. Use chronological splits where possible and keep complete campaigns or related variants together. For brief-first, evaluate the recommended send list against the usual selection rule at the same contact volume. For audience-first, compare next-message choices with the usual message or waiting. Evaluate only actions supported by the held-out experiment, using its assignment probabilities when estimating policy value. Report the uncertainty and the volume of decisions with enough support.
- Compare the technical layers. Compare existing segments with clusters and basic tags with LLM-derived features under the same splits and contact budget. Check interval coverage and calibration where enough comparable campaigns exist. Report what improved targeting and where the simpler approach held up. With synthetic data, report simulator recovery and stress tests as simulation results.
Continue locally
The quick local check runs the prepared-brief model. The scaled history guide regenerates the synthetic Parquet and readout. The repository contains the generators, the public calendar evidence and the written results. Generate the working datasets into a local directory.
- Define the structured brief. Record the featured range, goal, offer, genuine deadline, eligible customers, allowed channels and stock or contact restrictions. Mark material fields that are missing or ambiguous and show the source text beside each extracted value.
- Build a small independent brief benchmark. Write and label examples covering ordinary range pushes, genuine deadlines and missing or conflicting terms. Reserve complete offer families for testing. Compare the LLM with simple tags and track serious mistakes such as invented deadlines, offers or permissions.
- Connect reviewed briefs to the existing scorer. Start with one local path from a typed brief to an inspectable plan with eligible audiences, email or SMS or wait, supporting campaign evidence, uncertainty and draft copy. Compare with broad email at equal send volume. This project scores one current decision per shopper.
- Extend the statistical evaluation. Hold out more comparable campaign episodes and check the result in both SMS response scenarios before relying on the estimates. Keep simple audience rules as the default while their performance and costs are comparable.
Completion criteria
The reference can be run locally using the included data bundle and a documented command. A team can map its own files into the common contract and refresh the statistical models under its control. The demonstration shows how new history affects the recommendation and records the information and model version behind each run.
A marketer can enter a plain-language brief and receive a reviewable campaign plan with audience definitions, channel, strategy, copy, a plan-level projection and a comparison with a broad send. The demo includes a brief that leads to several campaigns and shows how overlapping audiences are resolved. The marketer can export the plan and open a selected audience to compare the original promotion with another message or waiting. Both paths use the same response model. The project includes a reproducible evaluation of both queries, evidence links for the recommendations, and clearly labelled scenario assumptions where an effect cannot be estimated. Document the operating limits, including campaign coverage, sparse groups and unsupported offers.
Article
The decision
The ecommerce team has a recently released 12-product range and a weekly campaign slot. It needs to decide who should get a range email, who might benefit from a text, and who can be left alone. This is an imagined LSKD campaign. Public promotion dates informed the setting. The one million customer profiles and all campaign outcomes are synthetic.
How the current model works
Today's shoppers, stock and permissions
↓
Find eligible actions for each shopper
↓
Look up similar shoppers in past tests
↓
Compare email, SMS and waiting after cost
↓
Propose one action per shopper
First the model checks consent, stock, recent contact pressure and whether the customer has already bought from the range. It groups eligible shoppers using behaviour the team can see at the time, such as a basket with available stock, browsing several styles, or repeated purchases.
Then it looks at similar shoppers from previous randomized campaigns. Some were assigned an email, some a text and some no message. If 5 in 100 comparable shoppers assigned a text kept a range item and 4 in 100 assigned to wait did, that is an estimated one extra kept order per 100 shoppers assigned a text before send costs. This is an example of the calculation. A kept order means buying from the featured range within seven days and retaining an item through the simulated return window.
The model compares each eligible action with waiting, subtracts the assumed send cost and proposes the best supported option. If evidence is thin it can leave the customer alone. If the estimated advantage is uncertain, it can flag the send for a trial. For example, a text could be worth testing for an opted-in shopper with an in-stock basket. A first text for a repeat shopper needs evidence from similar first-send decisions.
Why we made these choices
| Decision | Reason |
|---|---|
| Include waiting | Some shoppers would buy anyway. The wait group helps estimate how many extra purchases the message added. |
| Use past randomized assignments | People who opt into SMS may already shop more often. Compare eligible shoppers with a similar context using the options they were randomly assigned. |
| Count kept purchases and consider cost | A returned order can overstate the value of a campaign. SMS also costs more per send in the simulation. We report opt-outs alongside orders. |
| Keep simple audience rules as the default | In the pilot, clustering changed the kept-order estimate by about 0.005 percentage points at the same send volume. It used fewer texts, which warrants more testing across campaigns. |
| Benchmark against broad email at equal volume | The team already has a feasible option. The comparison checks whether choosing different audiences and channels helps at the same number of sends. |
What we know so far
Across four held-out simulated campaign episodes, the targeted plan estimated 4.52% kept-order conversion versus 3.97% for broad email at the same send volume. Estimated opt-outs rose from 0.185% to 0.231%. One million customer profiles help us test scale. Four comparable campaign episodes still limit what we can say about the next campaign. Full evaluation, stress tests and audit
What comes next
Today the model scores a prepared promotion using fixed message options. The planned brief interpreter will turn a marketer's words into a structured promotion for the same scorer. It will identify the range, offer, deadline and restrictions, and flag missing terms for review. The statistical model will estimate the response from campaign evidence. The brief-to-plan workflow and draft copy still need to be built and evaluated. Continue locally · Current and planned architecture