Skip to main content

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.

6measurement stages
3channels covered
1place to plan and read out
PDFretrospective export
HOW THE PIECES CONNECT

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.

  1. 01

    Plan & size the test

  2. 02

    Run the test

  3. 03

    Six-stage read-out

  4. 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.

01

Sizing a new test (sample size and duration) was manual analyst work.

02

Deciding whether a finished test worked needed a statistician to run significance and power checks.

03

Patterns across past tests, by channel, audience or campaign, were hard to see.

04

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.

  1. Phase 01

    Data move

    Moved the test backlog, sizing baselines and results data from Google BigQuery into Snowflake.

  2. Phase 02

    Semantic layer

    Built Cortex Analyst semantic views over the test data so users can ask questions in plain language.

  3. Phase 03

    Agent tools

    Wrote the sizing, six-stage measurement and portfolio logic as Python stored procedures that the Cortex Agent calls as custom tools.

  4. Phase 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

  1. 01

    Snowflake data layer

    Test backlog, sizing baselines and results, moved from Google BigQuery.

  2. 02

    Cortex Analyst semantic views

    Let users ask plain-language questions over the test data.

  3. 03

    Sizing tool

    Python stored procedure that returns sample size and test duration.

  4. 04

    Measurement pipeline

    Six stages: delivery checks, performance, significance and power, segment deep dive, scale/iterate/stop decision, annual impact projection.

  5. 05

    Portfolio dashboards

    Results by sprint, channel, audience and campaign.

  6. 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.

Snowflake data layer
Cortex Analyst semantic views
Sizing tool
Measurement pipeline
Portfolio dashboards

The trade-offs we made and why

Decision 01Lead trade-off

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.

Decision 02

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.

Decision 03

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

6

measurement stages

Delivery checks, performance, significance and power, segment deep dive, decision, and annual impact projection.

3

channels covered

Email, paid search and paid social tests in one assistant.

1

place to plan and read out

Sizing, measurement and portfolio patterns in a single assistant instead of separate analyst requests.

PDF

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.

5 componentsProduction-grade
Snowflake Cortex AgentsCortex AnalystPython stored proceduresSnowflakeGoogle BigQuery

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.

FREE 30-MINUTE CONSULTATION

Bring the problem.
Leave with a plan.

A reply within one business day.
A written plan and a fixed quote.
100% of the code and IP is yours.
If AI is the wrong tool, we will say so.

Book your free consultation