---
url: 'https://docs.flimra.ai/generate/prompts.md'
description: >-
  The prompt editor: references as pills, {} names for properties, gens,
  versions, texts and timeline clips, History, and tips for each model.
---

# Writing prompts

A gen's prompt says what to make and points at what to make it from. It is one text field, but the things it names are live (a character's bin, a version of another gen, a clip on a timeline): Flimra fills them in when the gen runs, and the run records exactly what each was.

## The prompt editor

Double-click a gen (or **Edit prompt** on its right-click; in **Timeline**, double-click its clip) and its prompt opens under the viewer in **Edit**. It stays put while you click around the library, so you can look at a reference large and drag it in without losing what you were writing.

* **There is no Save button.** Every edit saves itself a second after you stop typing. ⌘Z undoes it. Nothing is drawn and nothing is spent until you press **Draw** or **Generate**.
* **Reset** takes the prompt back to its bin's default. **⋯ → Save as default prompt for ▸** makes this prompt the default for every gen in a bin that has none of its own.
* **⋯ → Full prompt…** shows the text word for word as the model gets it, with every file sent.

## References are pills

Each picture, clip or sound in the prompt is a pill with its thumbnail, named the way the model expects (*@Image 1* for Seedance, *image 1* for Nano Banana and GPT Image). Rest the pointer on a pill to see what will be sent, large, a video playing.

To put a reference in:

1. Drag it from the library, the viewer or a version in the **Versions** column into the text, or drop files from the Finder.
2. Or click **+ Add reference** and choose from the grid, grouped by the gen's bin, its place in the film, the library and each timeline's clips. **From the Mac…** brings files in first.
3. Or right-click a picture in the viewer → **Add to prompt of ‹gen›**.

The counter beside it (*3 of 14*) says how many are sent of what the model takes. Drag a pill to reorder; the files are numbered again in the order they appear. Drag something onto a pill, or right-click it → **Replace with…**, to swap the file and keep the words around it.

Start a line with a reference and a colon to give it a role: `{gen001}: the woman. Use only her face.` is sent as "@Image 1: the woman. Use only her face."

Right-click a pill for **Choose version…**, **Choose frame…** (one frame of a video, sent as a still), **Mark up** (red notes on a copy of a picture), **Edit** and **Remove from the prompt**.

## The names in braces

Under the pills, a prompt is a template. These names are what you can type, and what the chat writes:

| Name | What it sends |
|---|---|
| `{age}`, `{outfit}`, `{description}` | A property, from the gen itself or the nearest bin above it |
| `{film.look}`, `{film.style}`, `{avoid}` | The film's visual style, art style and Avoid list from Project settings |
| `{bin005}` | A bin's cover picture |
| `{gen012}` | A gen's pick, whichever version that is when it runs |
| `{gen012.v03}` | One version, which never moves |
| `{gen012.v03.frame_120}` | One frame of a video version, as a still |
| `{med012}` | A file of the library |
| `{txt012}` | A text's words, as they are when the gen runs |
| `{blk003}` | A 3D blocking's render, as the clip a video model follows |
| `{tli012}` | A clip of a timeline, as it shows now |
| `{tl001}` | A whole timeline, rendered as it plays |
| `{place}` | What lies under the gen on its timeline: the filmed clips and narration there |
| `{place.frame}` | A still of the filmed clip under the gen |

Words that come from a property are tinted. Start typing over them and Flimra asks: **Here only** makes the words this prompt's own, **Everywhere** changes the property itself, for every gen that reads it. A name nothing gives shows in red and the footer says *Names nothing*: the prompt saves, but a run is refused until something gives it.

::: tip
`{gen012}` follows the pick, so redrawing a character's face updates every shot that names it the next time they run. Use `{gen012.v03}` when a shot must keep one exact version.
:::

## Versions and History

The **Versions** column at the right of the prompt shows every version; a click shows one in the viewer and leaves the prompt alone. A double-click opens the prompt it was drawn from, locked, with **Back to vNN**, **Use this prompt**, **Copy prompt**, **Draw again…** and **Pick vNN**. After an edit, *Edited since v02* and **Show changes** compare the two.

## Tips and the prompt guide

Two seconds after you stop typing, a tip or two may appear under the prompt on what would help most for this model ("Name the light's direction"). Click a tip, or press ⌃⌘1, ⌃⌘2 or ⌃⌘3, to put its words in. Tips are free; turn them off in **Project settings → Prompt rules**. **Prompt guide** opens how that model wants to be prompted, with examples. Before a run, the prompt is also checked against the project's rule book ([Assist](/generate/assist)).

## What can go wrong

* **More references than the model takes.** The extra ones are listed as not sent. Reorder or remove one.
* **A gen on no timeline.** `{place}` and `{place.frame}` send nothing, and their lines are left out.
* **A video in a picture's prompt.** Image models take pictures only, so the video's first frame is sent. Use **Choose frame…** for another.

## From the chat

Ask "put Ben's sheet in the prompt of gen014" or "what will gen014 send?". The chat uses `get_prompt` (free), `update_gen`, `open_prompt`, `add_prompt_reference`, `add_prompt_files`, `replace_prompt_reference`, `remove_prompt_reference`, `show_prompt_version`, `use_prompt`, `draw_again`, `set_default_prompt`, `prompt_tips`, `apply_prompt_tip` and `show_prompt_guide`.

## Related

* [Assist](/generate/assist)
* [Properties](/library/properties)
* [Texts](/library/texts)
* [Tracks and clips](/timeline/tracks)
