> ## Documentation Index
> Fetch the complete documentation index at: https://comfyreel.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Script and storyboard

> From an outline to a shot list, character and scene assets, storyboard images, videos and voice-overs.

The **Script** node turns an idea into a production plan. It is written by the default agent and drives batch generation for a whole short film.

![A script node with its batch toolbar and prompt panel](https://mintcdn.com/comfyreel/Pmftaa_AWO286WCQ/images/script-node.webp?fit=max\&auto=format\&n=Pmftaa_AWO286WCQ\&q=85\&s=d541dc2d813284f8142bec3481a097f9)

## Write a script

1. Add a **Script** node and type an outline, a full story or a scene ("A snowy night at an old train station: a girl in a red coat waits for her father…"). You can also connect text nodes, a reference video, or character images.
2. Pick a **Script preset**, which sets the structure, shot count, length and style: **Short drama episode**, **Three-act short film**, **30-second commercial**, **Movie trailer**, **Music video**, **Explainer**, **Travel vlog**, **Comedy sketch**, **Suspense thriller** or **Anime opening**. Pick the agent and its model with the chip under the prompt.
3. Generate. The node card shows the three stages and the total length: **Confirm shots**, **Prepare assets**, **Compose prompts**.

An empty script node offers quick starts: **Shot list from a story** (adds a text node with a sample story), **Shot list from a reference video** (adds a video node to fill), **Shot list from characters** (adds two character image nodes) and **Write the shot list yourself** (one blank 5 second shot). **Regenerate** asks for confirmation only when the script already has shots.

Click **Open script →** for the full-screen editor. Its header shows each stage with progress and sets the **Aspect ratio** for everything the script creates.

## Confirm shots

![The shot table: duration, description, assets, shot size, lighting, emotion, dialogue, sound and camera](https://mintcdn.com/comfyreel/Pmftaa_AWO286WCQ/images/script-shots.webp?fit=max\&auto=format\&n=Pmftaa_AWO286WCQ\&q=85\&s=467b2061cdff770fd247c769ec3469bf)

Each shot has a duration (5 to 15 seconds), description, linked assets, shot size, lighting, emotion, dialogue and narration, sound, camera move and the final prompt. Edit any cell, **Add shot**, drag rows by the grip to reorder, color-tag them, show or hide columns with **Fields** and narrow the table with **Filter**. You can also write a script entirely by hand.

* Type `@` in the description or prompt cells to pick an asset; mentioned assets show as chips with a thumbnail and decide which reference images a shot uses.
* **Dialogue · narration** holds separate lines: switch each between **Line** and **Voice-over** and bind a speaker (or leave it **Unbound**).
* Renaming, merging or deleting an asset keeps the mentions in every shot in sync.

The stage is ready when every shot has a description.

## Prepare assets

![Prepared character and scene assets with voice pickers](https://mintcdn.com/comfyreel/Pmftaa_AWO286WCQ/images/script-assets.webp?fit=max\&auto=format\&n=Pmftaa_AWO286WCQ\&q=85\&s=12ad9b08d73606d25d523f2b30e5cd93)

The script lists its **Characters**, **Scenes** and **Props**. The stage is ready when every asset has an image.

* Each asset card's menu can **Select image** from the canvas, generate one with **Generate … with AI** (the prompt defaults to the description), **Show on canvas**, **Clear image**, **Save to my assets**, **Merge**, **Split** or **Delete**. Generating creates a new image node to the left of the script and links it; the old node stays on the canvas.
* **Generate all assets** lists the assets that have no image yet, with an editable prompt per row. They run as a new asset group next to the script, and the dialog shows each row as queued, running, done or failed, with **Retry** and **Retry failed**.
* Pick a voice per character with **Pick a voice**. A character placed from the [character studio](https://comfyreel.org/guides/characters-assets.md#character-studio) brings its own voice; the card shows **Voice from library character** until you pick another one.

## Compose prompts

The **Final prompt** column shows an eye for a composed shot and **Changed** when the shot was edited after its prompts were written (**Compose again**). **Compose all prompts** writes a storyboard prompt and a video motion prompt for each shot. The dialog preselects shots missing either prompt; choose **Smart** (the agent writes them) or **Template** (assembled from the shot fields). A shot only counts as composed when both prompts are filled.

## Batch generate

The script node's toolbar holds **Regenerate**, **Generate all shots**, **Generate all videos**, **Generate voice-overs** and **Download**. The two batch actions stay disabled until shots and assets are ready and every shot has prompts; the tooltip lists what is missing.

| Action | Result |
| - | - |
| **Generate all shots** | A new group of image nodes, **Shot 1**, **Shot 2**…, with each shot's assets linked as references and named in the prompt. The nodes do not run: run the group from its toolbar. |
| **Generate all videos** | A new group of video nodes, one per shot. A shot that has a generated image starts from it in **Image to video** mode; any other shot uses all-round reference mode with its asset images (up to 9). Set each shot's duration in the dialog first. The nodes do not run either. |
| **Generate voice-overs** | Speaks each dialogue line with its character's voice and the voice tone set in the character studio, skipping shots that already have voice-overs. |
| **Download** | The shot table and asset list as a CSV file (once all three stages are ready). |

Each batch makes a new group, so earlier results stay. [Look nodes](https://comfyreel.org/guides/direction.md#looks-on-the-canvas) connected to the script are linked to every shot image and shot video. Finished clips go straight into a [smart edit](https://comfyreel.org/guides/timeline.md).

## Screenplays

For longer stories, ComfyReel Agent writes a **screenplay** node section by section: outline, characters, locations, props and episodes. Every change the agent makes is shown for review; **Accept** or **Reject** each change, a section or all, and edit while changes are pending. From a screenplay you can generate character, location and prop images or hand it back to the director to storyboard and shoot.

## Storyboard view

The **Storyboard** switch at the top left shows the canvas as **Key elements**, **Text**, **Images** and **Videos** columns, with audio in its own tab. Script assets appear as key elements; use **Set as key element** on any card to file it under **Characters**, **Scenes**, **Props** or **Other**. Items are listed newest first, and cards can be dragged onto a generation panel's references or into ComfyReel Agent chat. See [The canvas](https://comfyreel.org/guides/canvas.md#storyboard-view).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.