Case study · Marketing analytics · Analytics engineering
Which ad should we pay for?
A fitness app has four ad ideas and one budget. Testing all four live takes weeks and real money. I pretested them on 48 AI personas first, for $0 in media spend, and then asked how far to trust the answer.
Note: simulated reactions are directional, not predictive. Stride Studio is a fictional brand. Simulated and real data are never blended into one number.
How it works
48 AI personas on a local LLM (Qwen 2.5 7B via Ollama) react to all four ads in a simulated feed. No data leaves the laptop.
Simulation output plus real 2017 Facebook ad data land in S3.
Snowflake reads S3 through a storage integration (no stored keys), INFER_SCHEMA + COPY INTO.
dbt staging → intermediate → marts. Snowflake Cortex tags each reaction’s sentiment, ad and intent, once per row.
A Streamlit in Snowflake app tells the story in five chapters, reading only the prod schema.
25 dbt tests · least-privilege roles (LOADER / TRANSFORMER / REPORTER) · one XSMALL warehouse per job with a 20-credit monitor
Results: sign-up intent by ad
Share of reactions showing intent to sign up, with 95% intervals. Hover a row.
D30-Day Challenge
“The 30-Day Reset starts Monday”
41%
27–57% · n=39 · Strongest with men 40–44 and women 35–39
C20 Minutes for You
“The kids are asleep. You have 20 minutes.”
29%
16–45% · n=35 · Lots of conversation, less commitment; best with the youngest audiences
AFree Trial
“Try Stride Studio free for 7 days”
–
Under-tested: only 5 reactions
BReal Members
“50,000 people stopped paying for a gym they never used”
–
Under-tested: only 3 reactions
The pretest narrowed four ideas to 2 front-runners. D leads, but its lead over C is not statistically clear at this sample size. A and B haven't lost; they were barely shown.
Reality check
Across 1,143 real 2017 Facebook ad campaigns, cost per conversion rises with age, from $26 for men 30–34 to $120 for women 45–49. The simulation agrees at those two extremes, but not consistently in between.
Recommendation
Treat D and C as front-runners. Rerun with equal exposure for all four, then confirm the top one or two with a small live A/B test, each aimed at its best audience, before committing budget.
Where it can mislead
Small sample
88 reactions from one partial run; C and D intervals overlap.
Over-positive personas
Only 1 of 88 reactions was negative.
Invented experience
45% claimed to already use an app they had just seen.
Uneven exposure
Opening posts mentioned C and D, so they drew 74 reactions vs 8.
Herd behaviour
Agents echo each other; the feed favours agreement.
One model, one voice
All personas come from one 7B model.
The live dashboard runs on Streamlit's free tier and sleeps when idle. If it asks, click "wake it back up" and give it about 30 seconds.
Connections
Linked tools & methods
- PythonGeneral-purpose language used for data cleaning, analysis, automation and modeling.Also in: VirtueSoft · University of Cincinnati · NextSquare · Analyst · Kroger coupon leak · Grocery Growth Drivers · Dashboard walkthrough · Lead Scoring
- AWS S3Amazon cloud object storage, often the landing zone for raw data.
- SnowflakeCloud data warehouse that stores and queries data at scale.Also in: VirtueSoft · Grocery Growth Drivers
- dbtTransforms raw warehouse tables into tested, documented models with SQL.Also in: VirtueSoft · Query Guard · Grocery Growth Drivers · Dashboard walkthrough · dbt open source
- Cortex AISnowflake's built-in AI functions, e.g. sentiment and classification in SQL.
- StreamlitPython framework for building interactive data apps.