46 of 54 in the Swatch pack

Versus (AM vs PM): Diagram element for AI agents

Two smear cards (cream and blush) with an italic name and up to four lines each, an italic "vs" between them..

  • 1:1native
  • 16:9native
  • 9:16native
  • 4:5native

Watermarked preview. The Swatch pack includes all 54 elements, clean and editable, in every size.

Paste this into Claude Code

Use the AgentFrames Swatch pack. Add a `versus` beat to plan.json on a `k` canvas with slots `chip`, `title`, `a` and `b` from my script. Then run validate → build → qa and show me qa/contact.jpg.

Variables

The slots your agent fills from your script, through plan.json.

SlotTypeWhat it holdsExample
chipstringchip: {"type":"string","minLength":0,"maxLength":20}.
titlestringtitle: {"type":"string","minLength":1,"maxLength":32}.Morning vs *night*
astringa: JSON string. {"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":14},"rows":{"type":"array","maxItems":4,"items":{"type":"string","minLength":1,"maxLength":26}}},"required":["name"]}.{"name":"AM","rows":["Gentle cleanse","Vitamin C","Moisturiser","SPF 50"]}
bstringb: JSON string. {"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":14},"rows":{"type":"array","maxItems":4,"items":{"type":"string","minLength":1,"maxLength":26}}},"required":["name"]}.{"name":"PM","rows":["Double cleanse","Retinol","Rich cream","Lip mask"]}

What your agent can change

Versus (AM vs PM). Native 1920×1080, 5s at 30fps. A cutaway on the milk ground.

Two smear cards (cream and blush) with an italic name and up to four lines each, an italic "vs" between them.

Motion. The cards swipe on 0.4 s apart from opposite sides; "vs" pops. Why it moves. clarity: two routines side by side.

Mount

Copy every manifest file into your project (plus af-swatch-runtime). Mount with a unique host id, data-composition-id="af-swatch-versus-16x9", data-composition-src="compositions/af-swatch-versus-16x9.html", data-duration and data-variable-values. A longer data-duration than 5s extends the hold (the exit moves to the end of the mount). Use the variant whose size matches your project: each is laid out natively, never scaled.

Content slots

Nested slots are JSON strings. Every slot is checked against constraints.json and measured against the layout before anything draws; the block stops with a message naming the slot and the fix (it never truncates or shrinks text).

  • chip: {"type":"string","minLength":0,"maxLength":20}
  • title (required): {"type":"string","minLength":1,"maxLength":32}
  • a (required): {"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":14},"rows":{"type":"array","maxItems":4,"items":{"type":"string","minLength":1,"maxLength":26}}},"required":["name"]}
  • b (required): {"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":14},"rows":{"type":"array","maxItems":4,"items":{"type":"string","minLength":1,"maxLength":26}}},"required":["name"]}
  • 9:16 stacks the cards; the other sizes put them side by side.

Brand and layout

Brand variables (defaults from brand.json): colourway, accent, creator, handle, channel, tagline, monogram, ctaFollow, ctaLink, ctaCode. Layout: capTop (caption top, px), zoneTop (card zone top, px), exit (wipe or hold).

Example

``json { "chip": "", "title": "Morning vs *night*", "a": "{\"name\":\"AM\",\"rows\":[\"Gentle cleanse\",\"Vitamin C\",\"Moisturiser\",\"SPF 50\"]}", "b": "{\"name\":\"PM\",\"rows\":[\"Double cleanse\",\"Retinol\",\"Rich cream\",\"Lip mask\"]}" } ``

FAQ

What can my AI agent change in Versus (AM vs PM)?

Your agent fills the chip, title, a and b slots through the block's data-variable-values (or the starter project's variables). Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Swatch look.

Which aspect ratios does Versus (AM vs PM) support?

Versus (AM vs PM) is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 5s.

How do I get Versus (AM vs PM)?

Versus (AM vs PM) is included in the Swatch pack, which is part of the AgentFrames All-access subscription along with 53 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.

This is 1 of 54

Get the full Swatch pack

Versus (AM vs PM) comes as part of Swatch: 54 elements, 4 starter videos and every size (16:9, 9:16, 4:5, 1:1), re-brandable to your colours in one file. Included in All-access with every other pack.

See the whole pack →

Full frame (16:9) · 26s · made entirely with this pack

More in Swatch

See all 54 elements in Swatch →