# Viewer Question + Answer: Overlay element for AI agents

> The viewer's question on a blush smear (with who asked), then the short answer in Bodoni on a cream smear swiping in under it.

Canonical page: https://agentframes.ai/elements/swatch/viewer-question/
Markdown: https://agentframes.ai/elements/swatch/viewer-question.md

## Overview

- Name: Viewer Question + Answer (`viewerQuestion`), an element: one HyperFrames block per size
- Part of: the [Swatch](https://agentframes.ai/packs/swatch.md) pack (25 of 54). Available only through the All-access subscription.
- Category: Overlay
- Purpose: The viewer's question on a blush smear (with who asked), then the short answer in Bodoni on a cream smear swiping in under it.
- 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/viewer-question.mp4
- Poster: https://agentframes.ai/media/swatch/viewer-question.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

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

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `asker` | string | asker | {"type":"string","minLength":0,"maxLength":22} | @jess asked |
| `question` | string | question | {"type":"string","minLength":1,"maxLength":70} | Can I use vitamin C and retinol together? |
| `answer` | string | answer | {"type":"string","minLength":1,"maxLength":34} | Yes, just not at the *same time*. |
| `backdrop` | string | backdrop | {"type":"string","minLength":0,"maxLength":200} | assets/af-swatch/media/speaker-16x9.jpg |

## What your agent can change

**Viewer Question + Answer**. Native 1920×1080, 4.5s at 30fps. Sits over the creator's full-bleed footage (transparent outside its own parts).

The viewer's question on a blush smear (with who asked), then the short answer in Bodoni on a cream smear swiping in under it.

**Motion.** Question smear left to right, answer smear right to left.
**Why it moves.** clarity: the question is the setup, the answer lands as the punchline.

### Mount

Copy every manifest file into your project (plus `af-swatch-runtime`). Mount with a unique host id, `data-composition-id="af-swatch-viewer-question-16x9"`,
`data-composition-src="compositions/af-swatch-viewer-question-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).

- `asker`: {"type":"string","minLength":0,"maxLength":22}
- `question` (required): {"type":"string","minLength":1,"maxLength":70}
- `answer` (required): {"type":"string","minLength":1,"maxLength":34}
- `backdrop`: {"type":"string","minLength":0,"maxLength":200}

- 16:9 uses the empty third beside the face; 9:16 the band under the chin (clear of the right-hand platform buttons); 4:5 and 1:1 the lower zone. Move it with `zoneTop`.
- `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
{
  "asker": "@jess asked",
  "question": "Can I use vitamin C and retinol together?",
  "answer": "Yes, just not at the *same time*.",
  "backdrop": "assets/af-swatch/media/speaker-16x9.jpg"
}
```

## FAQ

### What can my AI agent change in Viewer Question + Answer?

Your agent fills the `asker`, `question`, `answer` 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 Viewer Question + Answer support?

Viewer Question + Answer is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 4.5s.

### How do I get Viewer Question + Answer?

Viewer Question + Answer 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

- [Smear Caption](https://agentframes.ai/elements/swatch/smear-caption.md): One caption over the upper chest: the sentence on a milk smear in DM Sans, the key word in Bodoni italic on its own cherry gloss smear. Each line's stroke follows the words' cues, so the words appear as they are spoken.
- [Key-Word Pop](https://agentframes.ai/elements/swatch/keyword-pop.md): One word, big, in italic Bodoni on a lipstick smear over the chest.
- [Callout Note (beside the face)](https://agentframes.ai/elements/swatch/callout.md): A note beside the face ("Pro tip", "Avoid", "Patch test"): an italic kicker and up to three lines on a milk smear; in 16:9 a hairline leader reaches toward the face.
- [Product Shot (picture-in-picture)](https://agentframes.ai/elements/swatch/product-shot.md): A product or texture photo framed on a cream smear beside the face, with a spaced-caps caption.

## Community

Coming soon.
