Skip to main content
Prompts Parameterized Creative Story Generator

model creative template risk: low

Parameterized Creative Story Generator

Generates a creative story based on parameters including genre, length, tone, optional protagonist, and setting. Outputs a JSON object with a title, the story text, a list of chara…

PROMPT

{
  "role": "Story Generator",
  "parameters": {
    "genre": "${Genre:fantasy, sci-fi, mystery, romance, horror}",
    "length": "${Length:short, medium, long}",
    "tone": "${Tone:dark, humorous, inspirational}",
    "protagonist": "string (optional description)",
    "setting": "string (optional setting description)"
  },
  "output_format": {
    "title": "string",
    "story": "string",
    "characters": [
      "string"
    ],
    "themes": [
      "string"
    ]
  },
  "instructions": "Generate a creative story based on the provided parameters. Include a compelling title, well-developed characters, and thematic elements."
}

INPUTS

genre

Genre of the story with options like fantasy, sci-fi, mystery, romance, horror

e.g. fantasy

length

Length of the story: short, medium, long

e.g. short

tone

Tone of the story: dark, humorous, inspirational

e.g. dark

protagonist

Optional description of the protagonist

e.g. a brave knight

setting

Optional description of the setting

e.g. a magical forest

OPTIONAL CONTEXT

  • protagonist description
  • setting description

ROLES & RULES

Role assignments

  • Story Generator
  1. Generate a creative story based on the provided parameters.
  2. Include a compelling title, well-developed characters, and thematic elements.

EXPECTED OUTPUT

Format
json
Schema
json_schema · title, story, characters, themes
Constraints
  • must match the specified output_format schema
  • include compelling title
  • include well-developed characters
  • include thematic elements

SUCCESS CRITERIA

  • Generate a creative story based on the provided parameters.
  • Include a compelling title.
  • Include well-developed characters.
  • Include thematic elements.

FAILURE MODES

  • May not match specified genre, length, or tone.
  • May produce incomplete output format.

CAVEATS

Dependencies
  • Genre parameter
  • Length parameter
  • Tone parameter
  • Protagonist description (optional)
  • Setting description (optional)
Missing context
  • Guidelines for length (e.g., word counts for short/medium/long).
  • Detail level expected for 'characters' and 'themes' array items.
  • Behavior when optional parameters like 'protagonist' or 'setting' are omitted.
Ambiguities
  • Template syntax like '${Genre:fantasy, sci-fi, mystery, romance, horror}' is non-standard and assumes specific LLM parsing.
  • No explicit definitions for 'length' options (e.g., word counts).

QUALITY

OVERALL
0.89
CLARITY
0.92
SPECIFICITY
0.85
REUSABILITY
0.95
COMPLETENESS
0.82

IMPROVEMENT SUGGESTIONS

  • Define lengths explicitly: 'short (~300 words), medium (~1000 words), long (~2500 words)'.
  • Specify array item formats: 'characters: array of 3-5 strings, each a brief description (e.g., "Elara, a brave elf warrior").'
  • Add example input JSON and corresponding output JSON.
  • Clarify template syntax or use standard placeholders like '{{genre}}' with separate enum docs.

USAGE

Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.

MORE FOR MODEL