48 of 50 in the Clay & Ink: Explainer pack

Doc Build: The Document Writes Itself: AI & chat element for AI agents

A document assembles itself: title types, the date chip lands, the paragraph appears and a tagged cursor fills the table..

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

Watermarked preview. The Clay & Ink: Explainer pack includes all 50 elements, clean and editable, in every size.

Paste this into Claude Code

Use the AgentFrames Clay & Ink: Explainer pack. Add a `docBuild` beat to plan.json on a `paper` canvas with slots `title`, `date`, `paragraph`, `rows` and `cursorName` 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
titlestringtitle: {"type":"string","minLength":1,"maxLength":44}.Morning brief: Tuesday
datestringdate: {"type":"string","minLength":1,"maxLength":20}.14 October
paragraphstringparagraph: {"type":"string","minLength":1,"maxLength":220}.Two deals moved forward overnight and one needs a decision before noon. Your 11:00 is now at 11:30, and the board deck is ready for review.
rowsstringrows: JSON string. {"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":18},"value":{"type":"string","minLength":1,"maxLength":24}},"required":["key","value"]},"minItems":1,"maxItems":4}.[{"key":"Meetings","value":"4 today"},{"key":"Needs reply","value":"6 threads"},{"key":"At risk","value":"1 deal"}]
cursorNamestringcursorName: {"type":"string","minLength":1,"maxLength":12}.{brand}

What your agent can change

A document assembles itself: title types, the date chip lands, the paragraph appears and a tagged cursor fills the table.

Native 1920x1080, 9 s at 30 fps. Full-frame graphics block; use the variant that matches your project size. Motion: change: each part arrives in reading order, so the finished doc is understood as it forms.

Edit

Set per-instance values in the host mount's data-variable-values (nested values are JSON strings). The block validates every value before it draws and throws a readable error naming the slot (see the console / data-cie-error on the root) instead of silently trimming or shrinking content.

  • title (required): {"type":"string","minLength":1,"maxLength":44}
  • date (required): {"type":"string","minLength":1,"maxLength":20}
  • paragraph (required): {"type":"string","minLength":1,"maxLength":220}
  • rows (required): JSON string; {"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":18},"value":{"type":"string","minLength":1,"maxLength":24}},"required":["key","value"]},"minItems":1,"maxItems":4}
  • cursorName (required): {"type":"string","minLength":1,"maxLength":12}

rows: 1 to 4 {key, value} filled by the tagged cursor. Example content is illustrative.

Style (from brand.json): colourway (paper, dusk, night), accent (hex), brandName (wordmark text), mark (spark, dot, none, or an inline base64 image).

Timing

Content settles by 60% of the block (5.4 s) and holds for reading; the last 0.45 s draws out. To give longer copy more time, raise the block's data-duration and the mount's data-duration together; the engine's checks use the duration you set.

Example mount

``html <div id="scene-1" data-composition-id="af-clay-ink-explainer-doc-build-16x9" data-composition-src="compositions/af-clay-ink-explainer-doc-build-16x9.html" data-start="0" data-duration="9" data-width="1920" data-height="1080" data-track-index="0" data-variable-values='{"title":"Morning brief: Tuesday","date":"14 October","paragraph":"Two deals moved forward overnight and one needs a decision before noon. Your 11:00 is now at 11:30, and the board deck is ready for review.","rows":"[{\"key\":\"Meetings\",\"value\":\"4 today\"},{\"key\":\"Needs reply\",\"value\":\"6 threads\"},{\"key\":\"At risk\",\"value\":\"1 deal\"}]","cursorName":"{brand}"}'></div> ``

Source: editable HTML; shared runtime assets/af-clay-ink-explainer/cie.js (component af-clay-ink-explainer-runtime). Fonts are OFL; logos and the spark are third-party marks (see TRADEMARKS.md).

FAQ

What can my AI agent change in Doc Build: The Document Writes Itself?

Your agent fills the title, date, paragraph, rows and cursorName 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 Clay & Ink: Explainer look.

Which aspect ratios does Doc Build: The Document Writes Itself support?

Doc Build: The Document Writes Itself is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 9s.

How do I get Doc Build: The Document Writes Itself?

Doc Build: The Document Writes Itself is included in the Clay & Ink: Explainer 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.

This is 1 of 50

Get the full Clay & Ink: Explainer pack

Doc Build: The Document Writes Itself comes as part of Clay & Ink: Explainer: 50 elements, 12 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 →

Wide (16:9) · 33s · made entirely with this pack

More in Clay & Ink: Explainer

See all 50 elements in Clay & Ink: Explainer →