You can balance specificity and creativity when designing prompts for AI-generated storytelling by referring to the following:
- Use a structured yet open-ended prompt to guide AI while leaving room for creative expansion. Here is the code snippet showing how:

In the above code, we have used Specificity to define key elements (e.g., setting, characters, and conflict) and Creativity to leave aspects like dialogue, plot progression, or twists open for AI to generate.

Hence, this approach ensures coherence (specificity) while allowing for unique plot developments (creativity).