Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Creative writing
on Mistral Large 2

Stop guessing. See how professional prompt engineering transforms Mistral Large 2's output for specific technical tasks.

The "Vibe" Prompt

"Write a story about a dragon who loves to bake. Make it whimsical and fun."
Low specificity, inconsistent output

Optimized Version

STABLE
{ "task": "Creative Writing", "persona": "Whimsical Storyteller", "protagonist": { "type": "Dragon", "name": "Ignis", "core_trait": "Loves Baking", "unique_quirk": "His fire breath is precisely temperamental, perfect for soufflés but dangerous for biscuits if he's not careful." }, "setting": { "era": "Medieval Fantasy (but with subtle anachronisms like kitchen gadgets)", "location": "A cozy, soot-stained cave-kitchen high in the Ember Peaks", "atmosphere": "Warm, inviting, filled with the aroma of baked goods and a hint of sulfur." }, "plot_elements": [ "Introduce Ignis and his unusual hobby.", "A small, local baking competition is announced.", "Ignis decides to enter, causing skepticism and humor.", "He faces a challenge (e.g., sourcing rare ingredient, a finicky recipe, a rival baker).", "His unique dragon abilities (fire, strength, keen senses) surprisingly aid him in baking.", "Climax: The competition judging, showcasing his signature dish.", "Resolution: Ignis wins (or achieves honorable mention), acceptance from the community, and a newfound appreciation for his craft.", "Theme: Breaking stereotypes, passion over perception." ], "tone": "Lighthearted, humorous, heartwarming", "style": "Descriptive, evocative, slightly archaic but accessible language", "word_count_range": "800-1200 words", "audience": "Young Adult and beyond, fans of fantasy and lighthearted humor", "chain_of_thought_instructions": [ "Start by crafting an engaging opening that immediately establishes Ignis's character and setting.", "Develop the conflict around the baking competition, introducing a quirky rival if possible.", "Show, don't just tell, how Ignis's dragon traits are both a hindrance and a help in the kitchen.", "Build towards the climax with a sense of anticipation, describing the sights and smells of the competition.", "Ensure the ending provides a satisfying resolution for Ignis and reinforces the main theme.", "Throughout the story, weave in sensory details (smell of dough, sound of crackling fire, sight of shimmering scales) to immerse the reader.", "Maintain a consistent whimsical and heartwarming tone." ] }
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt leverages a structured JSON format to break down the creative writing task into granular, actionable components. By specifying persona, protagonist details (including unique quirks), a detailed setting, clear plot elements, tone, style, and word count, it provides the AI with a comprehensive blueprint. The 'chain_of_thought_instructions' explicitly guide the AI on how to approach each stage of the narrative, encouraging a more deliberate and coherent story development rather than a free-form generation. This specificity minimizes ambiguity and maximizes the likelihood of producing a high-quality, on-brief story. The inclusion of a unique quirk for the dragon (temperamental fire breath) adds depth and potential for humorous conflict and resolution, which a vague prompt wouldn't elicit.

0%
Token Efficiency Gain
The generated story adheres to the specified protagonist traits.
The story incorporates the given plot elements in a logical sequence.
The overall tone of the story is lighthearted, humorous, and heartwarming.

Ready to stop burning tokens?

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

Optimize My Prompts