Skip to main content

2 posts tagged with "Storytelling"

View All Tags

· 4 min read
DahnM20

How to Automate Story Creation Using AI-FLOW - Part 2

This is the second installment of our challenge on How to Automate Story Creation.

In this part, we will focus on building a chapter and automating illustration generation.

Writing the First Chapter

In the previous part, we have created a plan of the story with three chapters, and a small summary for each. We could split the plan into three chunks, but for simplicity, I'll keep chapters as a single block. This approach helps GPT maintain the story's context, ensuring continuity between chapters without introducing conflicting elements.

When writing your chapter, it is important to remind GPT of the desired tone, the target audience, and how you want the story to be told. You might prefer more dialogue or perhaps more descriptions. This choice is up to you.

I’ve used a basic prompt that emphasizes important elements, but please note that this is just a simple example.

Here’s the prompt I used for the first chapter:

Write the first chapter of this short story intended for a 12-year-old audience.

  • Tone: Maintain a light-hearted, engaging, and adventurous tone. The story should be exciting and filled with wonder, suitable for young readers.
  • Language: Use simple and clear language. Avoid complex vocabulary and ensure that sentences are easy to follow, yet vivid enough to spark imagination.
  • Dialogue: Craft natural and relatable dialogue for pre-teens. Ensure conversations are lively and reflect the age and personality of the characters.
  • Pacing: Keep the chapter fast-paced and captivating to hold the reader's attention. Introduce key elements of the story quickly to hook the audience from the beginning.
  • Descriptions: Use vibrant and imaginative descriptions to paint a clear picture of the scenes and characters. Aim for language that is evocative but not overly detailed or intricate.
  • Length: Keep the chapter concise, focusing on introducing the main elements of the story without overloading the reader with too much information.

Extracting Interesting Scenes

From the chapter, we will identify the most interesting scenes to illustrate:

Based on this chapter, identify 3 interesting elements that would be compelling to illustrate. Provide each element as a short phrase, separated by semicolons. Do not add any additional comments.

Output:

Eryn and Frostbite navigating the icy forest; The scarlet dragon scale above the fireplace; The Crystal Caves glimmering in the distance.

Next, use the Data Splitter to treat each element individually.

Split the concepts

Creating Visual Prompts

Once the concepts are split, use the Merge Node to create an illustrated prompt based on the specific scene and the overall essence of the story. If your essence is good enough, it should include character descriptions, important places, concepts, and the desired art style. This helps to get consistent visual prompts.

Here we are using the "Merge + GPT" mode, so that the merge result is directly send as a prompt to GPT.

Example Prompt:

Based on this story description: ${input-2}

Create a visual prompt for DALL-E emphasizing this element for a given scene: ${input-1}

IMPORTANT: Respond with only the visual prompt. Do not add any other text, title, comments, or explanations.


Ensure GPT understands to focus on the current element to avoid depicting the entire story/chapter.

Repeat this process for each scene. You can duplicate your node.

Illustrate story element

Here are my results for "The Crystal Caves" and "The scarlet dragon scale above the fireplace". Note that GPT added the main characters in the first one, based on the essence.

Advanced Tips

Also, consider adding a negative prompt to tools like Stable Diffusion 3 to refine the results. For example, adding "realistic" as a negative prompt can steer the generation away from realism if that’s not desired.

When merging, make sure GPT prioritizes the current element over the entire story to maintain focus.

Conclusion

Creating a story is a complex project. Even with perfect prompts, proceed step by step to ensure smooth progress. This guide provides a logical flow for using AI-FLOW to aid in your story creation. In the next part, we will explore ways to create consistent visuals for our characters.

Start your journey with AI-FLOW now!

Overall flow

Stay tuned for the next part where we delve into character visual consistency.

· 4 min read
DahnM20

How to Automate Story Generation Using AI-FLOW - Part 1

This guide aims to provide insights into automating the generation of a full short story using AI. The objective is to generate a coherent and compelling story, complete with engaging visuals. The ultimate goal is to achieve this in one click after setting up the initial workflow.

To clarify, this guide is not intended to promote mass production of AI powered stories but rather to offer a method to help visualize and inspire you during your creative process.

Initializing the Story

Begin with a basic concept of the story you want to create:

  • Who is the main character?
  • Does the main character have a sidekick, pet, or companion?
  • Where does the story take place?
  • What are the key concepts or events in your story?
  • What is the art style?
  • Who is the target audience?

Adding your personal touch to the story is crucial. You can choose to generate these ideas with AI, but if your prompt is too simple, the result may be a generic story.

I will keep it simple for the example, but you may need something more elaborated, here's my prompt:


The story unfolds in a frozen country where our young hero, Eryn, a 16-year-old girl, is inspired by her late father's heroism. Eryn wields his cherished sword, dreaming of living up to his legacy. Her mission is crucial: to find a scarlet dragon’s scale that has sustained her family with warmth for the past two years. As Eryn embarks on her quest, she discovers a profound truth—that true heroism lies not in the legendary sword but in the bravery and heart of the one who wields it.

Art Style: The narrative is illustrated in a digital painting style, blending poetic elements suitable for children, creating a whimsical and inspiring journey.


Elaborating the Universe with AI

Using your inputs, ask the AI to connect all the elements and develop the universe and story into a simple summary. The goal is to capture the "essence" of the story.

Here’s a sample prompt you can use:

Based on these ideas, detail the story, characters, important locations, and the main quest.

Building the essence of the story

Structuring Your Story

Using the essence of your story, ask the AI to create a simple plan. For a short story, you might request three chapters. Each chapter should have a title and a brief summary.

Here's an example prompt:

Based on this description, create a plan for the book with three chapters. Provide a short summary for each chapter, ensuring that the story concludes at the end of Chapter 3.

Cover image flow

The first node here is just a Display Node used to show the essence of the story.

Creating the Cover for Your Story

Using the essence, create a visual prompt for the story's cover. Ask GPT to refine the essence into a visual prompt that considers the chosen art style. Then, use tools like Stable Diffusion 3 or DALL-E to generate the image. If the result isn't satisfactory, re-run the image generation. If necessary, regenerate the prompt and try again.

Here’s a sample prompt for DALL-E:

Based on this story, create a visual prompt for DALL-E representing an ideal cover for this story.

Cover image flow

Here is the resulting cover!

For this example, I used both DALL-E 3 and Stable Diffusion 3 to compare. DALL-E produced a cover with a strong art style and a solid title reminiscent of children’s stories. Stable Diffusion 3 created a more realistic, teenager-appropriate illustration. The outcome depends on how you instruct GPT to build your prompt. In a real scenario, you’ll need to tweak your prompt and regenerate the image multiple times to achieve convincing results.

N.B : DALL-E 3 improves each of your prompts in the background.

In the next article, we will explore how to build a chapter and create associated images!

You can try AI-FLOW now!