ChatGPT Prompt Engineering: How to Write a Story
Based on All About AI's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.
Start by setting genre explicitly in an initial instruction so the model commits to the right storytelling conventions.
Briefing
A practical prompt template turns ChatGPT into a repeatable story-writing engine by forcing writers to lock in genre, characters, conflict, theme, tone, and pacing before any prose is generated. The core idea is simple: treat story creation as a structured input problem. Once those elements are filled in, the model can produce a coherent outline and then expand into full chapters with consistent style and stakes.
The process starts with a first “author” instruction that sets the genre and tells the model to respond only when the genre is acknowledged. From there, a detailed prompt template becomes the backbone of every story. It asks for a title, setting details (time period, location, relevant background), and both protagonist and antagonist profiles—name, age, occupation, personality, and motivations. It also requires the main conflict and the stakes, plus explicit guidance on using dialogue to advance the plot, reveal character, and deliver information.
Next comes the thematic and stylistic control layer: the template includes a central theme to develop throughout the plot, a desired tone (with instructions to keep it consistent and appropriate to setting and characters), and pacing guidance to vary rhythm in order to build and release tension. An optional section allows extra constraints, such as word count or genre limits, though the creator notes that exact word counts are often unreliable.
To demonstrate the workflow, the template is filled with a sci-fi scenario: “The Lost Civilization of sontai Sante” set on a distant planet called Santa in the year 21.53. The protagonist is Dr Arya Reid, a 32-year-old astro-archaeologist driven by curiosity and a desire to uncover the secrets of a long-lost civilization. The antagonist is Captain Throne, a rootless, cunning, ambitious expedition leader willing to stop at nothing. The conflict centers on the tension between Arya and Throne as they navigate Santa’s dangers to uncover the civilization’s mysteries. The theme targets greed and the consequences of unchecked ambition, while the tone is tense and suspenseful with occasional wit.
With those inputs, the model generates a story outline in stages: an introduction establishing protagonist, antagonist, and conflict; a journey phase where motivations and tensions become clear; a sequence of early discoveries; escalating power struggles as Throne’s ambition drives dangerous decisions; and a final confrontation that resolves the main conflict while ending on suspense. An epilogue is included as optional, intended to show aftermath and the future of the lost civilization.
The final step is chapter production. Chapters are generated one at a time in depth, and the workflow recommends writing and saving each chapter separately to avoid losing context if the prompts get long. After the full draft is produced, an additional “iteration guidance” pass offers targeted improvement areas—character development, dialogue, setting description, conflict escalation, tone and pacing adjustments, foreshadowing, and optional epilogue expansion. The result is a story that’s not just generated, but guided toward coherence, escalation, and thematic payoff.
Cornell Notes
The method uses a structured prompt template to generate stories in a consistent genre and style. Writers first lock in genre, then provide a title, setting, protagonist and antagonist profiles, the central conflict and stakes, and instructions for dialogue. The template also specifies the theme, tone, and pacing so tension rises and releases in a controlled way. After filling the template, the model produces an outline and then expands it into in-depth chapters, typically one chapter at a time to preserve context. Finally, an iteration guidance step suggests concrete revisions such as escalating the Arya–Throne conflict, strengthening character development, and refining tone, pacing, and foreshadowing.
How does the template ensure a story stays coherent from start to finish?
What role do dialogue and pacing instructions play in the generated chapters?
Why generate chapters one at a time instead of requesting the entire book at once?
How does the outline step translate template inputs into a narrative arc?
What kinds of improvements does the iteration guidance step recommend?
Review Questions
- If you wanted a different genre and tone, which fields in the template would you change first, and why?
- How would you rewrite the conflict and stakes section to make the escalation feel more inevitable?
- What specific iteration suggestions would you apply before writing additional chapters: character development, dialogue, pacing, or foreshadowing—and what would you change in each?
Key Points
- 1
Start by setting genre explicitly in an initial instruction so the model commits to the right storytelling conventions.
- 2
Fill the full template with protagonist/antagonist profiles, motivations, and the conflict with clear stakes before asking for prose.
- 3
Use dedicated instructions for dialogue to ensure conversations advance plot, reveal character, and deliver necessary information.
- 4
Control story feel by specifying theme, tone, and pacing; these guide escalation and the balance of suspense and levity.
- 5
Generate chapters one at a time and save between prompts to reduce context loss in longer drafts.
- 6
After drafting, run an iteration guidance pass to improve character development, dialogue, setting depth, conflict escalation, and foreshadowing.