Get AI summaries of any video or article — Sign up free
ChatGPT Prompt Engineering: How to Write a Story thumbnail

ChatGPT Prompt Engineering: How to Write a Story

All About AI·
5 min read

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.

TL;DR

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?

It forces the same core elements to be defined before prose is written: genre, title, setting (time period, location, background), protagonist and antagonist (name, age, occupation, personality, motivations), and the central conflict with stakes. It then adds theme, tone, and pacing instructions, so the model doesn’t improvise those dimensions later. In the example, sci-fi is set up front, Arya Reid and Captain Throne are defined with clear motivations, and the theme of greed/unchecked ambition is specified before any chapters are generated.

What role do dialogue and pacing instructions play in the generated chapters?

Dialogue guidance directs the model to use conversations to advance the plot, reveal character, and provide information rather than treating dialogue as filler. Pacing guidance tells the model to vary rhythm to build and release tension, which helps produce a structure with rising stakes and dramatic action sequences. In the outline, that pacing shows up as tension-building toward a “boiling point” power struggle and then a final confrontation.

Why generate chapters one at a time instead of requesting the entire book at once?

The workflow recommends writing and saving each chapter separately to avoid losing context when prompts become long. The practical effect is that each subsequent chapter can reference the established characters, setting, and conflict without the model drifting. The example shows generating Chapter 1, then switching to Chapter 2, and so on, with the draft staying manageable (about 1,888 words for five pages in the demonstration).

How does the outline step translate template inputs into a narrative arc?

The outline breaks the story into stages that map directly to template elements. After the introduction (protagonist, antagonist, conflict), the journey phase clarifies motivations and tensions. Early discoveries develop the central mystery, while Throne’s ambition drives escalation tied to the theme of greed. The power struggle culminates in a final confrontation and a suspenseful resolution, with an optional epilogue to cover aftermath and the future of the lost civilization.

What kinds of improvements does the iteration guidance step recommend?

It offers targeted revision levers: character development, dialogue, and deeper setting description; conflict escalation that gradually increases tension between Arya and Throne; team-related iterations; tone iteration using language and pacing to heighten suspense; and foreshadowing to build anticipation. It also suggests adding or strengthening an epilogue to extend the story’s thematic and plot consequences.

Review Questions

  1. If you wanted a different genre and tone, which fields in the template would you change first, and why?
  2. How would you rewrite the conflict and stakes section to make the escalation feel more inevitable?
  3. 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. 1

    Start by setting genre explicitly in an initial instruction so the model commits to the right storytelling conventions.

  2. 2

    Fill the full template with protagonist/antagonist profiles, motivations, and the conflict with clear stakes before asking for prose.

  3. 3

    Use dedicated instructions for dialogue to ensure conversations advance plot, reveal character, and deliver necessary information.

  4. 4

    Control story feel by specifying theme, tone, and pacing; these guide escalation and the balance of suspense and levity.

  5. 5

    Generate chapters one at a time and save between prompts to reduce context loss in longer drafts.

  6. 6

    After drafting, run an iteration guidance pass to improve character development, dialogue, setting depth, conflict escalation, and foreshadowing.

Highlights

A repeatable story template forces genre, characters, conflict, theme, tone, and pacing to be defined before any chapter text is generated.
The example sci-fi setup centers on Dr Arya Reid versus Captain Throne, with greed and unchecked ambition as the thematic engine.
Writing chapters separately helps preserve context and keeps prompts from becoming too long or drifting.
Iteration guidance provides concrete revision categories—character, dialogue, setting, escalation, tone/pacing, and foreshadowing—so improvements are actionable.

Topics

Mentioned

  • Dr Arya Reid
  • Captain Throne