Generate Script

AI-powered multi-scene script generation with cinematography details, character actions, and structured scene breakdowns.

Overview

The Generate Script node uses Gemini Flash to produce a structured, multi-scene script from a text prompt. Each scene includes a visual description, action, mood, duration hint, image prompt, and optional cinematography details (shot type, camera angle, camera movement), dialogue, location metadata, music mood, and sound effects. The output is a fully structured GeneratedScript object that can feed downstream image generation and video composition nodes.

Configuration

Field Type Default Description
Provider ScriptProvider "gemini" AI model provider for script generation
Model string "gemini-2.5-flash" Specific model version
Advanced mode boolean false Gemini models only. Runs the model on the provider’s own API so Temperature, Max Tokens and the full reasoning-depth range actually apply — those controls appear once it is on. Bills one credit tier up; the node’s cost badge updates immediately. Disabled with an inline reason on non-Gemini models
Scene Count number 5 Number of scenes to generate
Style Guide string "" Optional style directions that influence the visual and narrative style of the script
Structure "freeform" \| "8-step" \| "custom" "freeform" Script structure template. Freeform allows the AI to decide pacing; 8-step follows a classic narrative arc
Tone string "" Optional tone descriptor (e.g., “cinematic”, “playful”, “dark”, “documentary”)
Target Length number 60 Target total duration in seconds for the entire script
promptPrefix / promptSuffix text Optional pre/post text wrapped around the script prompt (not the Style Guide) at run time (settings panel → Pre & post text; hidden from app users; captured by presets). See Prompt pre & post text.

Inputs & Outputs

ScriptScene Fields

| Field | Type | Description | |——-|——|————-| | sceneNumber | number | Sequential scene index | | sceneName | string | Short name for the scene | | visualDescription | string | Detailed description of what is seen | | action | string | What happens in the scene | | mood | string \| string[] | Emotional tone(s) | | durationHint | number | Suggested duration in seconds | | imagePrompt | string | Ready-to-use prompt for image generation | | characters | ScriptSceneCharacter[] | Characters with name, description, mood, action, position | | dialogue | ScriptSceneDialogue[] | Spoken lines with speaker, text, emotion | | location | ScriptSceneLocation | Name, description, time of day, weather, lighting | | cinematography | ScriptSceneCinematography | Shot type, camera angle, camera movement | | musicMood | string | Suggested background music mood | | soundEffects | string[] | Suggested sound effects |

Best Practices

Common Use Cases

Tips