
An n8n worldbuilding workflow can turn a list of story ideas into individual profiles, checking each one against established details before adding it to a document. The Nerdy Novelist uses the automation as part of a larger AI-assisted book-writing process, with the author able to review and update the results. It follows a story dossier rather than inventing a world from scratch. See how an author can set up the loop and shape its output.
Start With a Dossier and Genre Templates
TL;DR Key Takeaways :
- The automation works from an existing story dossier and genre templates.
- Each listed element is expanded, checked for consistency and revised before it is saved.
- A setting prompt specifies its sections, Markdown format and sentence limits.
- Writers can trim unnecessary detail and use the profiles with character documents to shape an outline.
The workflow depends on a story dossier produced by an earlier automation. That process turns an author’s brain dump into outline notes and a checklist of characters and worldbuilding elements. A separate character workflow loops through prompts to flesh out the characters, while this one follows a similar pattern for the worldbuilding list.
The advanced automations are designed around genre templates, although writers can create their own. Each genre set includes documents for tropes, plot table, style, characters, worldbuilding and themes, plus a book-description template. Examples include dark rogue fantasy, young adult medieval academy fantasy, urban fantasy and urban fantasy with a male lead. There are 30 completed templates, with a goal of about a hundred.
The expansion prompt can select from the following categories, depending on the element it is working on:
- High-level worldbuilding and settings and locations are separate categories.
- Objects and artifacts and magic systems and technology each have a category.
- Groups and races and gods and deities are covered as categories.
- Geography and nature and population and politics are also included.
- Culture and history and lore each have their own category.
- Religion and beliefs and languages complete the category options.
A story does not need every category, and some may use only one or two. Worldbuilding is useful outside fantasy and science fiction, too: a building’s room-by-room layout can support spatial storytelling, while a setting can contribute to a scene’s tension or mood.
Build the Element-by-Element Loop
With the dossier and templates ready, the automation extracts the listed elements, expands them and checks each draft before saving it. These steps follow the workflow from its starting form through to the finished document.
- Submit the automation’s form to start a run. The author-notes field is optional, so you can leave it empty or use it for specific instructions.
- Pull in the previously generated dossier and the genre’s worldbuilding, tropes and themes templates. The worldbuilding template is central to the task; tropes and themes supply context, though themes may be less necessary for this particular automation.
- Create an empty Google Doc, copy its ID and paste it into the designated place in the workflow. The automation uses that ID to find and update the document as it processes the elements.
- Use a cheap AI model to condense the tropes document into a bulleted list of roughly one line per trope. The original runs to several thousand words, so the shorter version saves tokens and stops the tropes from overwhelming the prompt.
- Run a parser prompt on the dossier to return a JSON array named world building. Tell it to include every listed worldbuilding element, without dividing the elements into categories or adding new ones, and to output only valid JSON.
- Pass that JSON through the code node so the workflow can loop over the elements individually. The node was vibe coded, and its exact workings are not explained.
- For each element, run an expansion prompt, a logic check and a revision prompt. Add the revised element to the Google Doc, then repeat the loop for the next item.
Give Each Expansion a Category and Format
The expansion prompt places context first and instructions last, a prompt-engineering technique recommended by Claude. Its context includes the condensed tropes, the full worldbuilding and themes templates, the complete dossier and any author notes. The themes template stays uncondensed because it is not very long.
Insert the current element’s name from the loop so the AI can find its relevant information in the dossier. Ask it to select the appropriate category and follow that category’s instructions to produce a fleshed-out worldbuilding sheet. A location, for example, should feel lived-in and three-dimensional, with attention to its layout, inhabitants, emotional resonance, secrets and role in the story.
For a setting profile, request Markdown formatting with an H1 heading naming the setting and element, followed immediately by a single italicized tagline. H2 subheadings then organize physical description and layout, atmosphere and emotional tone, inhabitants and visitors, and the location’s functions in both the world and the story. The remaining sections cover secrets and hidden layers, history and changes, and connections to other locations.
Ask for each section in prose of one to two sentences, with no bullet points except a short list under secrets and hidden layers. End the prompt by requesting only the specified details, without preamble or commentary, and repeat the sentence limit. The limit is repeated because the AI was often writing too much; you can also delete sections a generated profile does not need.
Check Logic Before Saving Each Profile
The logic check receives the necessary context and flags conflicts with the dossier, previously established worldbuilding, author notes and the genre worldbuilding template. It also checks internal logic, plausibility, cause and effect, fit with the story and thematic resonance. Rather than stopping at a list of problems, the prompt asks for an improvement plan that keeps the element compatible with the story and genre.
Give the original element and that plan to the rewrite step, instructing it to implement the listed changes rather than perform a full rewrite. The revised entry is then added to the document before the loop moves on. Keeping the earlier worldbuilding in the check gives each new entry context beyond its own initial expansion.
Review the Generated Worldbuilding
In the demonstrated dossier, the list includes Arch City, the Sunspires, the processing lab and the chasm floor. The automation identifies those entries and loops through them individually. The resulting Arch City profile includes a tagline and the requested setting sections, from physical layout and atmosphere through history and connections.
Arch City is built into mountain chasms, with bridges crossing them. Its profile is extensive because the location is important, although that level of detail is not always needed. The generated worldbuilding and character documents can be used together to help shape the book’s outline.
We think the logic check and targeted revision make this workflow useful for writers who already have a dossier and want to develop its listed elements without starting each profile from a blank page. The check does not remove the need for author review, particularly when a location receives more detail than the story requires. The option to delete unnecessary sections and supply run-specific notes gives the writer room to keep the output focused.
Review the saved profiles alongside the character document before using them to shape the outline. For a major location such as Arch City, the detail may be worth keeping; for a smaller part of the story, a shorter profile may be enough.
- How to Choose AI Tools for Workspace and Creative Tasks
- AI Proofreading: Why EditGPT is a Game-Changer for Writers
- AI Writing: The Ultimate Beginner’s Guide to Writing Books
- Efficiently write books using AI and Novelcrafter in 2024
Media Credit: The Nerdy Novelist
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.