# Question and Answer: Section title element for AI agents

> A question and its answer: a big blue Q, the question in capitals, a curly arrow down to a big green A and the answer written in the small hand inside a green box.

Canonical page: https://agentframes.ai/elements/squeak/question-answer/
Markdown: https://agentframes.ai/elements/squeak/question-answer.md

## Overview

- Name: Question and Answer (`questionAnswer`), an element: one HyperFrames block per size
- Part of: the [Squeak](https://agentframes.ai/packs/squeak.md) pack (14 of 50). Available only through the All-access subscription.
- Category: Section title
- Purpose: A question and its answer: a big blue Q, the question in capitals, a curly arrow down to a big green A and the answer written in the small hand inside a green box.
- Pack: [Squeak](https://agentframes.ai/packs/squeak.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: 8s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/squeak/question-answer.mp4
- Poster: https://agentframes.ai/media/squeak/question-answer.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

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

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `question` | string | question | {"type":"string","minLength":1,"maxLength":70} | When should I ask for a referral? |
| `answer` | string | answer | {"type":"string","minLength":1,"maxLength":120} | Right after the client tells you it worked. Not at the end of the project. |

## What your agent can change

**Question and Answer**. Native 1920×1080, 8s at 30fps.

A question and its answer: a big blue Q, the question in capitals, a curly arrow down to a big green A and the answer written in the small hand inside a green box.

**Motion.** Q, question, curly arrow, A, answer, box.
**Why it moves.** change: the arrow carries the viewer from the question to the answer.

### Mount

Copy every manifest file into your project (plus `af-squeak-runtime`). Mount with a unique host id, `data-composition-id="af-squeak-question-answer-16x9"`,
`data-composition-src="compositions/af-squeak-question-answer-16x9.html"`, `data-duration="8"` and `data-variable-values`.
Use the variant whose size matches your project (16x9, 9x16, 4x5, 1x1): 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).

- `question` (required): {"type":"string","minLength":1,"maxLength":70}
- `answer` (required): {"type":"string","minLength":1,"maxLength":120}

- `question`: Markup: plain = black, _words_ = key green (underlined), *words* = blue; "|" breaks a line. Titles are written in capitals.
- `answer`: the small mixed-case hand, up to 3 lines (16:9) or 5.

Style: `colourway` (classic, glass, grid), `accent` (optional hex for the key marker), `footer`, `sound` (on, off), `volume` (0-1, default 0.8), `enter` and `exit` (pan, hold or flip).

### Sound

Every stroke makes its marker sound (writing scratches, line strokes, the circle squeak, the tick, taps), booked from the same
schedule that draws it, so edited content stays in sync. The clips come from `assets/af-squeak/sfx/` (synthesised, no
recordings). `sound: "off"` makes the block silent; `volume` scales every clip.

### Timing

8s. Everything has been drawn by 4.8s (60%), then the scene holds for reading (the board's gloss
drifts, the writing stays still). Longer content is written faster (up to 2.5x); content that still would not finish stops the
block with a message. The board slides in from the right over the first 0.62 s and, with exit "pan", slides out to the left over the last 0.62 s at the same speed, so scenes laid end to end read as one long board.

### Example

```json
{
  "question": "When should I ask for a referral?",
  "answer": "Right after the client tells you it worked. Not at the end of the project."
}
```

## FAQ

### What can my AI agent change in Question and Answer?

Your agent fills the `question` and `answer` 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 Squeak look.

### Which aspect ratios does Question and Answer support?

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

### How do I get Question and Answer?

Question and Answer is included in the Squeak pack, which is part of the AgentFrames All-access subscription along with 49 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 Squeak

- [Opening Hook: Write the Question](https://agentframes.ai/elements/squeak/opening-hook.md): Opens the explainer. A small kicker, then the headline is written big in marker capitals letter by letter, the key words get the green marker circle (with its squeak), and an icon is drawn beside the headline (16:9) or above it (the other sizes).
- [Definition: Term = Meaning](https://agentframes.ai/elements/squeak/definition.md): Defines a term. The term is written big and boxed with one marker stroke, an equals sign (16:9) or a down arrow (the other sizes) is drawn, and the meaning is written in the smaller hand beside or below it.
- [Chapter: The Big Number](https://agentframes.ai/elements/squeak/chapter.md): A chapter divider: a big number is written in the key colour, the chapter title beside it (16:9) or under it, then underlined.
- [Evidence Quote](https://agentframes.ai/elements/squeak/evidence-quote.md): A quote with its source: two big green quote marks, the quote written in the small hand, then the source in blue with a line under it.

## Community

Coming soon.
