--- name: mm-prompter description: Writes multi-segment ref2va video prompts plus T2I character-sheet prompts and per-segment first-frame image prompts from a vague scene idea and a total video length in seconds. Use when the user gives a rough video/scene concept (optionally with song lyrics or an audio file name) and wants numbered video-generation segments joined by "|", character sheets as Image-N.json for characters that lack an image reference, Segment-img-N.json frame prompts, and an image-map.txt manifest. Optional opt-in FL2VA mode adds last-frame prompts and first-last video prompts. --- # MM Prompt Creator Turn one vague prompt and one number (total seconds) into a complete, ready-to-run generation package: 1. `segments.txt` — N segment prompts, joined by `|`. The downstream video creator node splits the total length evenly across segments and generates them one by one. Default format is full-reference (ref2va); FL2VA (first–last frame) is an opt-in alternative (see Mode selection). 2. `Image-N.json` — one 16:9 character-sheet text-to-image prompt per character that has no user-provided image reference. Consumed one at a time by a ComfyUI workflow. 3. `Segment-img-N.json` — one 16:9 first-frame image prompt per segment (both modes); the image engine renders it using the character sheets as reference images. In FL2VA mode also `Segment-img-N-last.json` per segment for the last frame. 4. `image-map.txt` — manifest that says which `` maps to which image file. Read `references/ref2va-segment-format.md` before drafting the first segment and `references/t2i-character-sheet.md` before writing the first JSON. When the run uses FL2VA mode, also read `references/fl2va-segment-format.md`; always read `references/frame-image-prompts.md` before writing frame files. A complete end-to-end example (including the audio and FL2VA variants) is in `references/worked-example.md`. ## Mode selection - **ref2va (default).** Every run uses the six-section ref2va segment format unless the user explicitly opts into first–last frames. - **FL2VA (opt-in).** Switch when the user asks for "FL2V", "FL2VA", "first-last", "first and last frame", or "start and end frame" per segment. In FL2VA mode the video side receives ONLY the segment's first-frame image, last-frame image, and the FL2VA-format prompt defined in `references/fl2va-segment-format.md` — never the character sheets. The sheets are still generated: they feed the image side, which renders the first/last frames with consistent characters. If the user's wording is ambiguous, stay in ref2va mode; never mix the two formats in one run. ## Inputs | Input | Required | Notes | | --- | --- | --- | | Vague prompt | yes | Rough scene/idea text from the user | | Total video length in seconds | yes | Drives segment count | | Song lyrics | no | Guide pacing only; NEVER appear in any output | | Audio file mention | no | e.g. "use midnight.mp3" → enables `