Skip to main content
Creative DNA for Ad Archives
Search every scene of every ad you have run, and find the ones that keep earning spend

Deploy in Studio

Creates every resource below in your organization, with sample data.

Download the manifest

creative-dna.namespace.yaml, the file Studio and the API apply.

Template page

The demo and the use case on mixpeek.com.

At a glance

How the pieces connect

Buckets hold what you upload, collections turn it into searchable documents, and retrievers answer queries over the collections.

Deploy it

1

Get the manifest

2

Validate it

Validate runs every check apply runs and creates nothing. Fix each entry in errors, then run it again.
3

Apply it

Apply creates every resource in one call. wait_for_seed=true also waits until the sample objects are processed, so the first query below has documents to return.
The response lists each resource with its outcome in resources. Apply refuses a resource that already exists and rolls the whole apply back, so to apply the file again over this namespace add ?mode=create_missing, which creates only what is missing.

Run the first query

Look up the namespace id by name, then run brand-scenes. Check status and warnings along with documents: a run that times out still answers 200, with status degraded.

Add your own data

Each object you add to a bucket is processed by every collection that reads it. This adds one object to ad-creatives. NAMESPACE_ID is the id from the namespace lookup above.
The object is PENDING until processing finishes, then COMPLETED or FAILED. Buckets and objects covers object states, retries and duplicates.

Retrievers

brand-scenes

Searches ads-scenes across 1 feature index. Stages: feature_search Searches: ads-scenes Searches ads-text across 1 feature index. Stages: feature_search Searches: ads-text

competitor-product-monitor

The alert’s check: does the ad scene just written show a product from a brand other than the advertiser’s. The search is scoped to that one scene, and an llm_filter watches it and keeps it only when it does. Materialises into competitor-product-shown. Stages: feature_search → llm_filter Searches: ads-scenes

Collections

Each collection runs one extractor over a bucket, or over another collection’s documents.
multimodal_extractor@v1 over bucket ad-creatives. Feeds competitor-product-monitor, competitor-product-shown, brand-scenes, creative-patterns, product-category.Reads bucket ad-creatives with multimodal_extractor v1.Inputs: video ← creative_asset_urlCopied onto each document: ad_id, brand_slug, brand_name, ad_type, source, source_url, headline, primary_text, published_at
text_extractor@v1 over bucket ad-creatives. Feeds copy-search.Reads bucket ad-creatives with text_extractor v1.Inputs: text ← primary_textCopied onto each document: ad_id, brand_slug, brand_name, ad_type, source, source_url, headline, primary_text, published_at

Also created

Taxonomies
  • product-category: Tags every ad scene with the product category it shows, so scenes can be filtered and compared by category across brands.
Clusters
  • creative-patterns: Groups ad scenes across brands by what they show, so recurring visual patterns can be browsed and named.
Alerts
  • competitor-product-shown: Emails the org notifications address (Settings -> Notifications; unset means opted out) when a newly indexed ad scene shows a competitor’s product.
Triggers
  • creative-patterns-after-ingest: Re-runs creative-patterns each time a batch of new ad scenes finishes indexing.
At 10,000 items a month (2 minutes or 10 pages each) and 100,000 queries, this template costs about 7,300.90 USD a month (730.07 USD per 1,000 items). The namespace’s daily spend budget pauses new batches before you pass it.

The manifest

Every resource above comes from this file. Change it and apply it again with ?mode=upsert to update what exists. Manifests documents each field.
creative-dna.namespace.yaml

Hand it to an agent

Paste this prompt into Claude Code, Cursor or another coding agent. To give the agent this whole page instead, use Copy page in the menu at the top of the page, or point it at the page’s Markdown at https://mixpeek.com/docs/templates/creative-dna.md.
Prompt