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
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

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