βοΈ AI Story Generator
Objectiveβ
In this project, you will learn how to craft a prompt that generates engaging short stories with well-developed characters, a clear plot structure, and customizable genre settings. You'll practice creative prompting, constraint-based output control, and structured narrative design.
Requirementsβ
Before starting this project, you should be familiar with:
Difficultyβ
BeginnerStarter Templateβ
Start with this basic prompt and observe its limitations:
Write a short story about a detective solving a mystery.
What's wrong with this?
- No genre, tone, or length specifications
- No character details β the detective is generic
- No plot structure guidance β might be flat or unresolved
- No setting or world-building instructions
- Output quality is unpredictable
Step-by-Step Guideβ
Step 1: Establish the Creative Roleβ
Set the AI up as a skilled fiction writer to elevate output quality.
You are an award-winning fiction writer known for crafting vivid, emotionally
resonant short stories. Your writing style blends literary fiction with
genre storytelling, creating stories that are both entertaining and meaningful.
Step 2: Define Story Parametersβ
Provide the structural framework for the story.
Write a short story with the following parameters:
- Genre: Noir mystery with a touch of magical realism
- Setting: A rain-soaked coastal town in the Pacific Northwest, present day
- Length: 1,500β2,000 words
- Point of View: First person
- Tone: Atmospheric, contemplative, with dry humor
Step 3: Create Character Profilesβ
Give the AI specific character details to work with.
**Main Character:**
- Name: Detective Mara Voss
- Age: 42
- Key Trait: Has an uncanny intuition she can't explain β sometimes she "feels" echoes of past events in places
- Flaw: Refuses to trust her own gift, insisting everything has a rational explanation
- Motivation: Solving one last case before retirement
**Supporting Character:**
- Name: Oliver Finch
- Role: Owner of a dusty bookshop where the victim was last seen
- Key Trait: Knows more than he reveals, speaks in riddles
- Secret: He also has a supernatural sensitivity to the town's history
Step 4: Define Plot Structureβ
Guide the narrative arc to ensure a satisfying story.
**Plot Structure:**
1. Opening Hook (first 200 words): Start in media res β Mara arrives at the bookshop crime scene at night in the rain. Establish mood and her inner conflict.
2. Rising Action: Mara investigates, interviews Oliver, discovers the victim had been researching the town's forgotten history. Strange occurrences begin.
3. Midpoint Twist: Mara's intuition shows her a vision connected to the crime β something she can't explain rationally.
4. Climax: The truth about the crime intersects with the town's supernatural history. Mara must choose between her rational worldview and trusting her gift.
5. Resolution: The case is solved, but Mara is changed. End with an evocative final image that lingers.
Step 5: Add Writing Style Constraintsβ
Control the quality and style of the prose.
**Writing Style Rules:**
- Show, don't tell β use sensory details (sound of rain, smell of old books, texture of fog)
- Use dialogue sparingly but make every line reveal character
- Include at least 3 vivid metaphors or similes
- Vary sentence length β mix short punchy sentences with longer flowing ones
- Avoid clichΓ©s ("dark and stormy night," "a chill ran down her spine")
- End chapters/sections on a micro-hook that compels reading forward
- The final sentence should echo or mirror the opening image
Final Optimized Promptβ
Here is the complete, production-ready prompt combining all steps:
You are an award-winning fiction writer known for crafting vivid, emotionally resonant short stories. Your writing style blends literary fiction with genre storytelling, creating stories that are both entertaining and meaningful.
Write a short story with the following parameters:
**Story Settings:**
- Genre: Noir mystery with a touch of magical realism
- Setting: A rain-soaked coastal town in the Pacific Northwest, present day
- Length: 1,500β2,000 words
- Point of View: First person (Mara's perspective)
- Tone: Atmospheric, contemplative, with dry humor
**Main Character β Detective Mara Voss:**
- Age: 42, veteran detective on the verge of retirement
- Gift: An uncanny intuition β she "feels" echoes of past events in places, like emotional fingerprints left behind
- Flaw: Stubbornly refuses to trust her own gift, insisting everything has a rational explanation
- Motivation: Solving one last case before leaving the force
- Voice: Wry, observant, slightly world-weary but not cynical
**Supporting Character β Oliver Finch:**
- Owner of a dusty antiquarian bookshop where the victim was last seen
- Speaks in literary references and gentle riddles
- Shares Mara's supernatural sensitivity but has embraced it
- Knows more than he reveals β acts as a mirror for Mara's internal conflict
**Plot Structure:**
1. **Opening Hook** (first 200 words): In media res β Mara arrives at the bookshop crime scene. Rain, darkness, the smell of old paper and something wrong. Establish her voice, mood, and the hint of her gift prickling.
2. **Rising Action**: Investigation unfolds. Interview with Oliver reveals the victim was researching the town's erased history β a neighborhood that "vanished" 80 years ago. Strange sensory flashes hit Mara at key locations.
3. **Midpoint Twist**: Mara touches the victim's notebook and experiences a full vision β she sees the old neighborhood, the people, and why they disappeared. She can't rationalize this one away.
4. **Climax**: The killer's motive connects to the town's buried secret. Mara must use her gift deliberately for the first time to find the final piece of evidence.
5. **Resolution**: Case solved. Mara doesn't retire. The final image mirrors the opening β same rain, same bookshop, but she sees it differently now.
**Writing Style:**
- Show, don't tell β prioritize sensory details (rain on glass, dust motes in lamplight, the weight of old books)
- Dialogue should be sparse and revealing β every line does double duty (advances plot AND reveals character)
- Include at least 3 original metaphors or similes
- Vary sentence rhythm β alternate short declarative sentences with longer, flowing passages
- No clichΓ©s or overused noir tropes
- Each scene transition should end on a micro-hook
- The final sentence must echo or mirror the opening image, showing how Mara's perspective has shifted
Output the story with clear scene breaks marked by "***" between sections.
Interactive Playgroundβ
π§ͺ Story Generator Playground
Start with the basic template, then iterate to reach the optimized version.
Explanationβ
The final prompt works because it applies several key prompt engineering principles:
-
Role assignment with specificity β "Award-winning fiction writer" with a defined style (literary + genre) sets both quality expectations and aesthetic direction.
-
Structured character profiles β Providing name, trait, flaw, and motivation gives the AI concrete material to create characters that feel three-dimensional rather than generic.
-
Plot structure as guardrails β The five-act breakdown prevents aimless storytelling. Each beat serves a narrative purpose, and the AI has a clear roadmap from hook to resolution.
-
Style constraints as quality control β Rules like "show don't tell," "no clichΓ©s," and "vary sentence rhythm" push the AI away from its default patterns toward more polished prose.
-
Circular narrative design β Requiring the ending to mirror the opening creates thematic coherence and a satisfying sense of completeness.
-
Tone specification β "Atmospheric, contemplative, with dry humor" gives the AI a precise emotional register to write in, preventing tonal drift.
Extensions & Challengesβ
-
Genre Switcher β Rewrite the prompt for different genres (sci-fi, romance, horror) while keeping the same character framework. Compare how genre affects character voice and plot progression.
-
Series Builder β Extend the prompt to generate a 3-part story series with continuity between episodes, character growth arcs, and a meta-plot.
-
Interactive Fiction β Modify the prompt to generate a choose-your-own-adventure story with 3 decision points and branching paths.
-
Style Mimic β Add a constraint to write in the style of a specific literary tradition (e.g., Southern Gothic, Japanese minimalism, Latin American magical realism) and observe how style guidance changes output.
-
Dialogue-Only Challenge β Constrain the prompt to tell the entire story through dialogue alone β no narration, no description. See how character voice must carry all the storytelling weight.