Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Creative writing
on GPT-4o

Stop guessing. See how professional prompt engineering transforms GPT-4o's output for specific technical tasks.

The "Vibe" Prompt

"Write a creative story about a lonely lighthouse keeper who finds a message in a bottle."
Low specificity, inconsistent output

Optimized Version

STABLE
You are a highly imaginative and skilled creative writer. Your task is to craft a compelling short story (500-700 words) about a lonely lighthouse keeper named Silas. Silas leads a solitary life, and his only companions are the gulls and the relentless sea. One stormy night, he discovers a peculiar bottle washed ashore, containing a meticulously folded message. To achieve this, follow a chain-of-thought process: 1. **Character Development (Silas):** Establish Silas's core personality traits (e.g., melancholic but observant, resilient), his daily routine, and his longing for connection. Show, don't just tell, his loneliness through sensory details (e.g., 'the silence of the oil lamp', 'the taste of salt on his tongue'). 2. **Setting the Scene (The Lighthouse):** Describe the lighthouse's atmosphere – rugged, isolated yet majestic. Use evocative language to portray the stormy night, enhancing the mood and foreshadowing the discovery. 3. **The Inciting Incident (Message in a Bottle):** Detail the discovery. What does the bottle look like? How does Silas react initially? Build suspense as he opens it. 4. **The Message's Content:** What does the message say? Make it intriguing, mysterious, and ultimately hopeful or transformative. Avoid clichés. Perhaps it's a riddle, a plea for help, or a cryptic piece of poetry. 5. **Rising Action/Silas's Reaction:** How does the message impact Silas? Does it spark a forgotten memory, ignite a new purpose, or present a moral dilemma? Show his internal struggle and evolving feelings. 6. **Climax/Turning Point:** What action does Silas take based on the message? This should be a significant decision that alters his routine or perspective. 7. **Resolution/Aftermath:** Conclude the story by showing the immediate consequences of Silas's actions or his changed outlook. Does he find what he was looking for, or something unexpected? End on a note of reflection, hope, or poignant transformation. Ensure the prose is rich with imagery, metaphorical language, and varied sentence structures. Maintain a consistent tone appropriate for the narrative. Focus on showing character emotion rather than merely stating it. The overall theme should explore hope, connection, or the unexpected discoveries in solitude.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt works due to several factors: 1. **Clear Role Assignment:** 'You are a highly imaginative and skilled creative writer' sets the AI's persona, encouraging more creative output. 2. **Explicit Constraints:** Defines word count (500-700 words) for a focused response. 3. **Detailed Character and Setting:** Provides specific names and atmosphere, reducing ambiguity. 4. **Chain-of-Thought (CoT):** Breaks the creative task into manageable, sequential steps (character development, setting, inciting incident, etc.), guiding the AI through the narrative arc. This mirrors human creative planning. 5. **Instructional Nuances:** Includes 'Show, don't just tell,' 'Use evocative language,' 'Avoid clichés,' 'Build suspense,' and 'Focus on showing character emotion,' which are best practices in creative writing. 6. **Thematic Guidance:** Specifies potential themes (hope, connection, discovery in solitude) to steer the narrative's deeper meaning. This structured approach significantly improves the likelihood of a coherent, well-developed, and high-quality story compared to the vague 'vibe_prompt.'

0%
Token Efficiency Gain
The 'vibe_prompt' is very open-ended and could lead to a wide variety of story qualities.
The 'optimized_prompt' provides a detailed narrative structure, character hints, and stylistic requirements.
The 'optimized_prompt' explicitly asks the model to 'Show, don't just tell', which is critical for creative writing quality.

Ready to stop burning tokens?

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

Optimize My Prompts