I know this looks scary, but JSON is just a way to write structured data as text: labeled boxes inside boxes. Instead of a vague paragraph like “cool alien dashboard,” you get a clear object: screens, components, nodes, edges, subject, camera, etc. That matters because models and tools can’t reliably follow vibes, but they can follow structure.

How to use it here:

This spec defines:

You wire this into your stack so humans speak in natural language, the LLM runs a short clarification dialog, and then outputs one of these JSON specs—ready for rendering, generation, or further automation.


2. JSON Prompt Translator (Behavior & Prompt)

2.1 High-level behavior

The JSON Prompt Translator:

  1. Classifies intent

    From the human utterance, decide which target they’re asking for:

  2. Runs a clarification loop

    It asks targeted questions only about missing required fields for that schema (platform/aspect ratio, main nodes, product type, brand constraints, etc.).

    It stays conversational but structured.

  3. Assembles and validates JSON

    Once it has enough detail, it builds a single JSON object matching one of the three schemas, checks it for:

  4. Emits JSON only

    Final answer = one JSON object, no commentary, no Markdown, no extra text.


2.2 Translator operating rules