AI project 02 · Shopify embedded app

Product Content Assistant

Finds products with thin content, drafts descriptions, SEO fields and image alt text from the data the product already has, and writes to the store only after the merchant approves. Every change can be undone.

v0 · builds & type-checks · 13 unit tests pass · not yet run on a dev storeReact RouterPolaris web componentsApp BridgeGraphQL Admin API 2026-10PostgreSQLClaude API

The problem — and who has it

Large catalogs end up with empty descriptions, missing SEO titles and images without alt text. Writing them by hand takes days; generic AI tools invent materials and sizes that are not true.

Who has this problem: merchants with hundreds of products and no copywriter.

The solution

ScanBulk operation reads the catalog; each product gets a completeness score
SelectMerchant picks products or "all incomplete"
DraftDescription, SEO title/description, alt text in the shop's voice
ValidateLengths, allowed HTML, no invented numbers, no sales promises
Compare & approveOld vs new, edit inline, approve one or all clean drafts
Write via queueSaves the live 'before', retries, handles throttling
UndoRestore the exact previous content
Code decidesAI helpsA person decides

Screens

Home
Is the app working, catalog completeness, drafts waiting, products updated, background progress, AI spend today.
Products
Sorted by completeness with what is missing; select and queue drafts.
Review drafts
Side-by-side comparison, editable fields, blocking problems shown in red next to the field.
History & undo / Brand voice
Every saved change with one-click restore; voice settings use the Contextual Save Bar.

Demo video (2–3 min on a test environment) comes with the next iteration.

Technical decisions

No write without approval — enforced twice

The write job refuses any draft that is not approved with a reviewer recorded, and the edited draft is re-validated on the server before approval.

"No invented specs" is checked in code

Every number + unit in the output must exist in the product data. Otherwise the draft is blocked until the merchant edits it.

Durable queue in PostgreSQL

Generate / apply / revert are rows in a jobs table, so progress stays correct after reloads or restarts; throttled calls back off longer.

Undo from the live state

Right before writing, the app reads the current content from Shopify and stores it — not the scan-time snapshot.

APIs verified, not remembered

All GraphQL operations were validated against Admin API 2026-10 with the Shopify AI Toolkit; that is how write_files turned out to be required for image alt text.

Trade-offs I accepted

Measured results

This is a first working build. Numbers marked pending have not been measured yet; they will be published as measured, including misses. Designed against Built for Shopify criteria — not BFS certified.

WhatTargetNow
Content without invented specs (50 products)≥ 95%Not measured yet
1,000 products, correct progress through errors/reloadsPassDesigned (durable queue), not load-tested
No write before approval0 writesEnforced in code; e2e test pending
Undo restores previous content exactlyPassImplemented; e2e test pending
No revenue or ranking promises in UINoneUI copy reviewed + validator blocks them in drafts
Agent Review (project 01)PassNot run yet

AI cost per task and real build time will be added from the call logs (every model call records prompt version, tokens, latency and errors).

What was missed — and what I learned

What AI wrote vs what I decided

AI

Drafted the routes, Polaris markup, the queue, validators and tests from my specifications.

Me

Defined the approval gates, the no-invented-facts rule and its check, the undo model and the scopes; verified every API call against the docs; reviewed the generated code.