# Topic Tag: Label & callout element for AI agents

> The topic in spaced caps on a blush chip smear, top-left ("Retinol 101").

Canonical page: https://agentframes.ai/elements/swatch/topic-tag/
Markdown: https://agentframes.ai/elements/swatch/topic-tag.md

## Overview

- Name: Topic Tag (`topicTag`), an element: one HyperFrames block per size
- Part of: the [Swatch](https://agentframes.ai/packs/swatch.md) pack (30 of 54). Available only through the All-access subscription.
- Category: Label & callout
- Purpose: The topic in spaced caps on a blush chip smear, top-left ("Retinol 101").
- Pack: [Swatch](https://agentframes.ai/packs/swatch.md), included in All-access (from $14/month billed annually ($168/year), or $19 monthly)
- Subscribe: POST https://agentframes.ai/api/checkout/subscribe with interval=month or interval=year (optional currency=USD|GBP|EUR|AUD|CAD; 303 redirect to Stripe checkout; a human pays there). Then download any pack with the subscriber key: https://agentframes.ai/account.md
- Aspects: 16:9 (native), 9:16 (native), 4:5 (native), 1:1 (native)
- Canvases: works on none; avoid none
- Typical duration: 4s
- Speaker-safe: yes (can sit beside a speaker)
- Preview video (watermarked): https://agentframes.ai/media/swatch/topic-tag.mp4
- Poster: https://agentframes.ai/media/swatch/topic-tag.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Swatch pack. Add a `topicTag` beat to plan.json on a `k` canvas with slots `topic` and `backdrop` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `topic` | string | topic | {"type":"string","minLength":1,"maxLength":22} | Retinol 101 |
| `backdrop` | string | backdrop | {"type":"string","minLength":0,"maxLength":200} | assets/af-swatch/media/speaker-16x9.jpg |

## What your agent can change

**Topic Tag**. Native 1920×1080, 4s at 30fps. Sits over the creator's full-bleed footage (transparent outside its own parts).

The topic in spaced caps on a blush chip smear, top-left ("Retinol 101").

**Motion.** Swipes on in 0.35 s.
**Why it moves.** clarity: the topic is visible in the first second.

### Mount

Copy every manifest file into your project (plus `af-swatch-runtime`). Mount with a unique host id, `data-composition-id="af-swatch-topic-tag-16x9"`,
`data-composition-src="compositions/af-swatch-topic-tag-16x9.html"`, `data-duration` and `data-variable-values`. A longer `data-duration` than 4s
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).

- `topic` (required): {"type":"string","minLength":1,"maxLength":22}
- `backdrop`: {"type":"string","minLength":0,"maxLength":200}

- `backdrop` is a still of the speaker so the block reads on its own; set it to "" over your live footage.

### 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
{
  "topic": "Retinol 101",
  "backdrop": "assets/af-swatch/media/speaker-16x9.jpg"
}
```

## FAQ

### What can my AI agent change in Topic Tag?

Your agent fills the `topic` and `backdrop` 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 Topic Tag support?

Topic Tag is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 4s.

### How do I get Topic Tag?

Topic Tag 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.

## More in Swatch

- [Skin Note](https://agentframes.ai/elements/swatch/skin-note.md): A note that points at the skin without covering it: a ring pops on the spot (cheek edge, jaw, forehead), a hairline leader draws out to a small cream note beside the face with one italic Bodoni word and a spaced-caps line.
- [Corner Bug (@handle)](https://agentframes.ai/elements/swatch/corner-bug.md): The @handle in spaced caps on a small milk smear with one cherry dab, in the top corner for the whole video (top-left in 9:16).
- [Collab / Ad Tag](https://agentframes.ai/elements/swatch/collab-tag.md): The disclosure tag: the kind ("Paid partnership", "Gifted", "Ad", "PR product") in spaced caps and the brand in italic Bodoni on a milk smear, top-left.
- [Source Strip](https://agentframes.ai/elements/swatch/source-strip.md): A slim serum strip with SOURCE in spaced caps and the reference ("British Journal of Dermatology, 2023") for a claim.

## Community

Coming soon.
