# Brand kits, campaign reuse, and results

Campaign Studio now keeps reusable identity and follow-through alongside campaign production.

## Brand kits

Open **Campaign Studio → Brand kits** to save a business name, primary/background colors, logo, optional product/style reference, writing voice and image direction. Logos and references must be PNG, JPEG or WebP files in the same workspace, up to 15 MB. Text colors are chosen automatically for the kit's colors. A workspace holds up to 50 kits.

Choose a kit before building a campaign to apply its current version when the campaign is created. AI-assisted brief preparation receives its writing and visual guidance. The image generator starts with the applied kit's reference and visual direction. Changing a kit later does not silently rewrite saved campaigns: they retain an applied snapshot and revision.

In **Brand & design**, apply a kit to all three ad graphics and optionally the funnel's shared palette. Offer copy, custom layouts, photos, published pages and prepared advertising jobs stay intact. Applying a brand updates draft revisions. Reload and review if another teammate changes the kit or campaign before the save.

## Creative control

The same tab edits eight native graphic layouts and four output sizes: square, portrait, story and landscape. It includes artwork text, brand label, colors, photo/logo selection, and crop position, with a rendered preview. Saving updates the graphic library and matching ad template together. The ad headline/body remain separately editable; the artwork can use shorter text.

A render failure prevents saving the unrenderable design through the editor. Failed saves preserve the edits. Switching variations or applying a kit prompts before discarding unsaved artwork edits. The PNG download under Ads & creative uses the saved layout and dimensions.

Prepared ads use immutable saved payloads. New artwork edits do not change an existing ad job. The preparation panel identifies drafts whose source revisions are now older, so the user can prepare a newly reviewed version.

## Duplicate a campaign

Use **Duplicate campaign** from a saved campaign, then name the new draft. Duplication takes the current edited funnel, ad copy and graphics, not the original generated snapshot. It creates independent funnel, ad-template and graphic records with new native page/element IDs. Owned media references remain shared within the workspace.

Publication, custom domains, tracking settings, lead routing, leads, generation history, advertising jobs and budgets are not copied. Step canonicals are cleared for review at the new URL. The source is preserved, and a stable request ID prevents duplicate copies after a transport retry. Copies record their source campaign.

The library also searches the currently loaded campaign names. Load more when searching older campaigns.

## Results

The **Results** tab shows 7- or 30-day activity for links whose `utm_campaign` equals this saved campaign ID. The three standard `utm_content` values identify The offer, What's included and The next step; other tagged content has its own row.

- Sessions count the existing first-party visitor/day records.
- Lead sessions count visitor/day records with an accepted enquiry.
- Accepted enquiries count actual saved form submissions, including repeat enquiries.

Visit measurement remains opt-in. With measurement off, visit-based figures and rates show a dash; accepted enquiries can still be counted. The report exposes no contact details. It does not infer sales, provider ad spend or return on ad spend. Each source query is capped at 5,000 records and clearly marks partial reports. Reporting windows use UTC day boundaries. Data is subject to the existing funnel retention window.

The demo stores brand kits and campaign copies in the browser and labels the lack of live results. It makes no generation, publishing or provider requests.

## Agent interface

Six MCP tools extend the existing server, bringing it to 25 scoped tools:

| Tool | Scope | Behavior |
| --- | --- | --- |
| `list_brand_kits` | campaigns:read | Read reusable kits and current revisions |
| `save_brand_kit` | campaigns:write | Create/update a kit; updates require its current revision |
| `apply_campaign_brand` | campaigns:write | Apply a kit revision to current campaign revisions |
| `update_campaign_artwork` | campaigns:write | Save a complete native graphic design |
| `duplicate_campaign` | campaigns:write | Duplicate current edited assets into a new draft |
| `get_campaign_results` | campaigns:read | Read aggregated attributed results for 7 or 30 days |

The server also provides `hyperchat://brand-kits`. `create_campaign` accepts optional `brandKit: {id, revision}`. Existing unbranded requests remain valid.

REST equivalents: `GET/POST /brand-kits`, `PATCH /brand-kits/{id}`, `POST /campaigns/{id}/brand`, `PATCH /campaigns/{id}/artwork`, `POST /campaigns/{id}/duplicate`, and `GET /campaigns/{id}/results?days=7|30`. Writes require an idempotency key; workspace, media and revision checks run server-side.

## Validation

The production build, 79 unit tests, 336 backend tests, and browser acceptance at 1440/390/320px pass locally. The browser checks verify saved brand application, persisted square artwork, copying the latest edits, search, and protection of unsaved edits. Captures and the acceptance JSON remain in the task worktree under `artifacts/campaign-growth/`.

Local checks cover identity/canonical isolation in copies, preservation of offer text, atomic brand application, kit/media/workspace authorization, retry behavior, stale writes, artwork/ad synchronization, and attribution windows. Browser acceptance exercises brand creation, branded campaign creation, visual editing, duplication, search, unsaved-edit protection and truthful results at desktop and phone widths. Provider generation, publication and advertising delivery are not invoked by these checks.
