How the AI Story Agent turns a paragraph into a branching drama
Describe your story idea in plain language. The AI writes the full script, structures branching paths, and scaffolds every node in the RFD format. Here is a step-by-step walkthrough of how it works.
May 2026 · 6 min read
Starting with a plain-language description
The AI Story Agent takes a natural-language prompt as its input. You describe your story idea — the genre, setting, main character, central conflict, and the kind of choices you want viewers to face. The more specific the prompt, the more targeted the output.
A prompt like "A noir detective story set in 1940s Tokyo. The detective must choose between exposing a corrupt official or protecting a vulnerable witness. Three endings: justice served, cover-up preserved, detective exiled" gives the agent clear structure to work from.
What the agent outputs
The agent produces a complete RFD YAML file with all nodes defined, choice labels written, dialogue scripted, and scene descriptions included as comments. Each node includes a brief prose description of what happens in that scene, which serves as the brief for video generation or filming.
The output also includes variable declarations for any state tracked across the story (for example, a `trust` counter or a `route` flag) and the `if:` conditions that gate conditional branches. The generated YAML is valid and parseable by the platform immediately.
How nodes map to scenes
Each node in the generated RFD corresponds to one video clip. The agent is aware of production scope: it avoids generating structures that would require an impractical number of unique scenes. For a typical short drama, the agent generates 12 to 20 nodes covering 3 to 5 choice points with 2 to 3 endings.
The scene description in each node tells you what needs to be filmed or generated: the location, characters present, key action, and the emotional tone. This makes it straightforward to hand the output to a video production pipeline.
Editing the generated draft in the visual canvas
After generation, the RFD is loaded into the visual canvas as a node graph. Each node appears as a card with its scene description and outgoing connections shown as arrows. You can drag nodes to reorganize the layout, click any node to edit its dialogue or description, add new choice branches, or delete paths that do not fit.
The canvas gives you a bird's-eye view of the entire branching structure. This is where most creators spend time refining the draft — adjusting the balance of branches, rewriting choice labels to be more compelling, and making sure every ending feels earned.
Replacing placeholder clips with real media
The generated RFD uses placeholder video references. You replace them by uploading real clips directly to each node: either footage you filmed, clips generated by a text-to-video tool, or a combination of both. The platform accepts MP4 files and handles transcoding automatically.
You can also use PlotDoor's integrated video generation tools to produce clips directly from the scene descriptions in each node, without leaving the editor. Once all nodes have real video attached, the drama is ready for publishing.
Publishing
Before publishing, the editor runs a validation pass: all nodes must have video attached, all `next` and choice targets must resolve to existing nodes, and at least one node must be reachable from the start. Any issues are listed with links to the affected nodes.
Once validation passes, you set the visibility (free or paid), configure episode pricing if applicable, and publish. The drama becomes available on PlotDoor Cinema immediately after the media processing pipeline completes.