Recording templates
How auto mode and explicit recording templates shape generated demos.
Recording templates
Recording templates are style nudges for the planner. They tell LittleDemo what kind of recording you want without forcing you to write a full script.
Auto mode is the default. It usually should stay that way.
Auto mode
When recordingTemplate.id is omitted or set to auto, LittleDemo uses the prompt, URL, visible page structure, and page sections to choose the effective template.
json{ "presentation": { "recordingTemplate": { "id": "auto" } }}
The stored demo includes the requested template and the effective template that was used.
json{ "recordingTemplate": { "id": "auto", "effectiveId": "pricing-focus" }}
Explicit templates
Use an explicit template when you already know the shape of the result.
bashlittledemo demos create \ --project proj_abc123 \ --prompt "Show the plan cards and annual billing toggle" \ --template pricing-focus
The API uses the same value:
json{ "presentation": { "recordingTemplate": { "id": "pricing-focus" } }}
Section focus
section-focus is for named page areas that do not fit a specialized template.
bashlittledemo demos create \ --project proj_abc123 \ --prompt "Feature the security section" \ --template section-focus \ --section "security"
Use the sectionHint field from the API:
json{ "presentation": { "recordingTemplate": { "id": "section-focus", "sectionHint": "security" } }}
See the full list in template catalog.