# Hook Title (opening line): Section title element for AI agents

> The opening line as a smear caption: above the head in 9:16, 4:5 and 1:1, in the empty third in 16:9; the key word on its own cherry gloss smear in italic Bodoni.

Canonical page: https://agentframes.ai/elements/swatch/hook-title/
Markdown: https://agentframes.ai/elements/swatch/hook-title.md

## Overview

- Name: Hook Title (opening line) (`hookTitle`), an element: one HyperFrames block per size
- Part of: the [Swatch](https://agentframes.ai/packs/swatch.md) pack (16 of 54). Available only through the All-access subscription.
- Category: Section title
- Purpose: The opening line as a smear caption: above the head in 9:16, 4:5 and 1:1, in the empty third in 16:9; the key word on its own cherry gloss smear in italic Bodoni.
- 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: 4.5s
- Speaker-safe: yes (can sit beside a speaker)
- Preview video (watermarked): https://agentframes.ai/media/swatch/hook-title.mp4
- Poster: https://agentframes.ai/media/swatch/hook-title.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

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

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `text` | string | text | {"type":"string","minLength":1,"maxLength":48} | You are using *retinol* wrong |
| `cues` | string | cues | JSON string. {"type":"array","items":{"type":"number","minimum":0,"maximum":30},"maxItems":14} | [] |
| `backdrop` | string | backdrop | {"type":"string","minLength":0,"maxLength":200} | assets/af-swatch/media/speaker-16x9.jpg |

## What your agent can change

**Hook Title (opening line)**. Native 1920×1080, 4.5s at 30fps. Sits over the creator's full-bleed footage (transparent outside its own parts).

The opening line as a smear caption: above the head in 9:16, 4:5 and 1:1, in the empty third in 16:9; the key word on its own cherry gloss smear in italic Bodoni.

**Motion.** Each line's smear sweeps from its first word's cue to just after its last, so the stroke follows the speech. The words are never wiped: the smear is revealed in its brush direction and the words inside it fade up as the stroke passes.
**Why it moves.** attention: the claim that stops the scroll, written on as it is said.

### Mount

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

- `text` (required): {"type":"string","minLength":1,"maxLength":48}
- `cues`: {"type":"array","items":{"type":"number","minimum":0,"maximum":30},"maxItems":14}
- `backdrop`: {"type":"string","minLength":0,"maxLength":200}

- `*word*` puts the key word on gloss (one or two words). `cues`: one block-relative time per word (from your transcript); leave it empty to space them 0.2 s apart.
- 3 lines max.
- `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
{
  "text": "You are using *retinol* wrong",
  "cues": "[]",
  "backdrop": "assets/af-swatch/media/speaker-16x9.jpg"
}
```

## FAQ

### What can my AI agent change in Hook Title (opening line)?

Your agent fills the `text`, `cues` 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 Hook Title (opening line) support?

Hook Title (opening line) is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 4.5s.

### How do I get Hook Title (opening line)?

Hook Title (opening line) 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

- [Part Card (series)](https://agentframes.ai/elements/swatch/part-card.md): A series card for multi-part videos: the blush chip ("Skin, Honestly · Part 2 of 3"), the episode title in Bodoni on a cream smear, and an optional italic note ("watch part 1 first").
- [Big Statement (cutaway)](https://agentframes.ai/elements/swatch/big-statement.md): A cutaway on the milk ground: the statement in big Bodoni with its italic word on a wide cream smear, and three shade dabs pressed on under it.
- [Chapter Marker](https://agentframes.ai/elements/swatch/chapter-marker.md): A chapter or routine step: a big italic Bodoni number on a blush dab, the kicker in spaced caps ("Step 2") and the title beside it.
- [Pull Quote](https://agentframes.ai/elements/swatch/pull-quote.md): A quote in Bodoni on a milk smear with a big italic quote mark in the accent and the credit in spaced caps.

## Community

Coming soon.
