Snowflake Cortex AI Assistant for Marketing Test Planning
The client’s marketing team ran hundreds of A/B tests across email, paid search and paid social. Planning a new test, deciding whether a finished test had worked and spotting patterns across past tests all depended on manual analyst work. They wanted one assistant that could size a test, measure the result and explain what the whole testing programme was showing.
How a Snowflake Cortex Agent sizes A/B tests, runs a six-stage significance and power read-out, and shows which channels and audiences win.
- 01
Plan & size the test
- 02
Run the test
- 03
Six-stage read-out
- 04
Scale, iterate or stop
Conceptual workflow for this use case. Not a screenshot or a claim about measured results.
Generative AI Solutions
Marketing & Advertising
The full story
We built it on Snowflake using Cortex Agents. First we moved the test backlog, the sizing baselines and the results data from Google BigQuery into Snowflake. On top of that data we built Cortex Analyst semantic views, so people can ask questions in plain language. The core logic runs in Python stored procedures that the agent calls as custom tools: sample size and test duration sizing; a six-stage measurement pipeline covering delivery checks, performance, statistical significance and power, a segment deep dive, a scale, iterate or stop decision, and an annual impact projection; and portfolio dashboards for sprints, channels, audiences and campaigns.
The assistant writes approved test briefs and measurement results back to Snowflake tables, and it can export a retrospective report as a PDF. Row access and masking policies make sure each user only sees the parts of the programme their role allows.
The marketing team now has one place to plan the next sprint, get a statistically sound decision on a finished test, and see which channels and audiences actually produce winners.
Hundreds of tests, and every planning or read-out question went through an analyst.
Sizing a new test (sample size and duration) was manual analyst work.
Deciding whether a finished test worked needed a statistician to run significance and power checks.
Patterns across past tests, by channel, audience or campaign, were hard to see.
The test backlog, baselines and results lived in Google BigQuery, apart from the team’s governed analytics platform.
How we structured the engagement
Move the data into Snowflake, make it queryable in plain language, then give the agent tested statistical tools.
- 01Phase 01
Data move
Moved the test backlog, sizing baselines and results data from Google BigQuery into Snowflake.
- 02Phase 02
Semantic layer
Built Cortex Analyst semantic views over the test data so users can ask questions in plain language.
- 03Phase 03
Agent tools
Wrote the sizing, six-stage measurement and portfolio logic as Python stored procedures that the Cortex Agent calls as custom tools.
- 04Phase 04
Write-back and access
Saved approved briefs and measurement results to Snowflake tables, added PDF retrospective export, and applied row access and masking policies by role.
What we built, component by component
- 01
Snowflake data layer
Test backlog, sizing baselines and results, moved from Google BigQuery.
- 02
Cortex Analyst semantic views
Let users ask plain-language questions over the test data.
- 03
Sizing tool
Python stored procedure that returns sample size and test duration.
- 04
Measurement pipeline
Six stages: delivery checks, performance, significance and power, segment deep dive, scale/iterate/stop decision, annual impact projection.
- 05
Portfolio dashboards
Results by sprint, channel, audience and campaign.
- 06
Write-back and export
Approved briefs and results saved to Snowflake tables; retrospective report exported as PDF.
A user asks the Cortex Agent a question. The agent answers from the semantic views or calls a Python stored procedure for sizing, measurement or portfolio views, all on data inside Snowflake. Approved briefs and results are written back to Snowflake tables, and row access and masking policies filter every answer by the user’s role.
The trade-offs we made and why
Statistics in stored procedures, not in the model
Sizing and significance are deterministic calculations. Running them as Python stored procedures that the agent calls as tools keeps every decision reproducible, with the model handling the conversation.
Semantic views for open questions
Cortex Analyst semantic views let people ask about the programme in plain language without writing SQL or waiting for an analyst.
Governance at the data layer
Row access and masking policies sit on the Snowflake tables, so each user sees only the parts of the programme their role allows, whatever they ask the assistant.
What changed for the client
measurement stages
Delivery checks, performance, significance and power, segment deep dive, decision, and annual impact projection.
channels covered
Email, paid search and paid social tests in one assistant.
place to plan and read out
Sizing, measurement and portfolio patterns in a single assistant instead of separate analyst requests.
retrospective export
The assistant exports a retrospective report as a PDF.
The tools behind the system
Built with a deliberate stack chosen for production reliability and operational velocity.
Similar delivery work usually starts in these service areas
If you are exploring a similar product, workflow, or implementation challenge, these are the service tracks that usually fit best.
Where this project sits in the bigger market picture
AI for campaign activation, performance analysis, testing, and marketing data.
Talk to the team that built this.
Tell us where your project stands. In a free 30-minute consultation we map what carries over from this build, what is different for you, and what a first milestone would cost.
