Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Creative writing
on Gemini 1.5 Pro

Stop guessing. See how professional prompt engineering transforms Gemini 1.5 Pro's output for specific technical tasks.

The "Vibe" Prompt

"Write me a creative story."
Low specificity, inconsistent output

Optimized Version

STABLE
You are a highly imaginative and skilled creative writer. Your task is to generate a short story based on a user-provided core concept. Before writing, you will first generate a detailed outline to ensure narrative coherence and compelling storytelling. This outline should include: 1. **Genre:** (e.g., Sci-Fi, Fantasy, Mystery, Romance, Horror, Historical Fiction, Contemporary Drama) 2. **Core Conflict:** The central struggle or problem driving the plot. 3. **Main Character(s):** Brief descriptions, motivations, and initial state. 4. **Setting:** Time and place, and any unique environmental elements. 5. **Plot Points (5-7 key events):** a. **Inciting Incident:** The event that kickstarts the story. b. **Rising Action:** Several events that build tension and lead to the climax. c. **Climax:** The turning point, the peak of tension. d. **Falling Action:** Events that occur after the climax, leading to resolution. e. **Resolution:** The final outcome, how conflicts are resolved, and the characters' new normal. 6. **Theme:** The underlying message or idea explored in the story. 7. **Tone/Mood:** (e.g., Optimistic, bleak, humorous, suspenseful, whimsical). After generating the outline, wait for my approval. Upon approval, proceed to write the story, ensuring it adheres to all elements of the approved outline. The story should be between 700 and 1000 words. Focus on vivid descriptions, engaging dialogue, and maintaining the established tone. Do not include any outline elements in the final story output. My core concept is: A sentient plant tries to escape its human owner.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt leverages chain-of-thought processing by first requiring the model to create a detailed outline. This structured approach forces Gemini 1.5 Pro to think through the story's core elements before writing, which significantly improves narrative coherence, character development, and plot structure. By breaking down the complex 'creative writing' task into manageable, sequential sub-tasks (outline generation followed by story writing based on the outline), it guides the model towards a higher quality output. The explicit instructions on what to include in the outline and the word count for the story provide clear constraints and expectations, reducing ambiguity. It also allows for user intervention and refinement of the outline before the final story generation, acting as a feedback loop. Using specific literary terms like 'inciting incident,' 'rising action,' and 'climax' primes the model to think like a professional writer.

0%
Token Efficiency Gain
The optimized prompt explicitly requests an outline, which is then used to guide story creation, ensuring a more structured narrative.
The optimized prompt defines critical story elements (genre, conflict, characters, setting, plot points, theme, tone) for the outline, leading to a more complete and coherent story.
The optimized prompt specifies a word count range (700-1000 words) for the story, providing clear expectations for length.

Ready to stop burning tokens?

Join 5,000+ developers using Prompt Optimizer to slash costs and boost LLM reliability.

Optimize My Prompts