Write a Custom Bedtime Story Using ChatGPT

Codecademy Team
Use ChatGPT to generate a custom bedtime story that is meaningful and relevant.

Getting Started

Are you ready to embark on a magical journey into the realm of storytelling? Imagine being able to create your very own custom bedtime stories, filled with captivating characters, exciting plots, and heartfelt messages. Get ready to unleash your creativity as we dive into this tutorial, where we’ll guide you in creating your bedtime story. From intriguing characters to plot twists that will leave your audience spellbound, this is your chance to bring enchantment and wonder to the imaginations of children around the world. So, grab your pen and paper, let your imagination soar, and let’s weave unforgettable tales together!

Tips for creating a bedtime story

  1. Characters: Brainstorm and choose characters for the bedtime story by identifying the protagonist, supporting characters, and even any villains or magical creatures you want to include. Think about the characteristics, personalities, and roles of each character. Since the story is custom, a creative approach to creating a custom bedtime story using ChatGPT is personalizing the story to relate to the children that the story is for. Perhaps the characters of the story include a family pet or a favorite superhero.
  2. Plot: A coherent plot in a bedtime story is important. Create a basic outline or structure for the story, including the beginning, middle, and end. Decide on the main conflict or challenge the characters will face and how it will be resolved.
  3. Story Inspiration: Find inspiration for the bedtime story. Draw from personal experiences, popular fairy tales or folktales, everyday events, or even dreams. Think creatively and explore different sources of inspiration.
  4. Details and Elements: Think about specific details and elements that will make the story engaging and unique. This can include the setting (e.g., a magical forest, a faraway kingdom), any special objects or artifacts, and any magical or fantastical elements that may be incorporated. Also, remember to consider the target audience and tailor the story accordingly.

Organizing Custom Bedtime Story Details

We can organize the general details of the bedtime story into a format that ChatGPT can easily understand. The story details can include anything that you’d like to have in the pre-sleep tale. Here is an example of the format ChatGPT will understand:

Story Details:

Characters:

  1. Sebastian: a 6-year-old boy who loves sports, video games, and his family. He is brave, positive, creative, empathetic, and enjoys being active.
  2. Stella: Sebastian’s pet ghost-dog that has special abilities. Stella can become invisible, float through solid objects, and is an amazing scout.
  3. Jayson: Sebastian’s neighbor, classmate, and best friend. Jayson also enjoys adventure and being active. In fact, Jayson is very good at wrestling.
  4. Morpho: a mystical creature that can morph into any animal or object and is a trusty companion to Sebastian and his friends. Morpho joined Sebastian’s group when he was discovered hiding in a bush at the park one day.

Setting:

  1. Neighborhood: a vibrant community with friendly neighbors and a park nearby, three pools, soccer fields and other sports activities, the boy’s school, and more.
  2. Bestly Elementary: Sebastian and Jayson’s school. The boys love their school and their classmates and teachers. The school is filled with learning and creative events both during and after school.
  3. Game Town: the name of the town in the boy’s favorite video game. On some of their adventures, the boys will find themselves in Game Town.
  4. The Moon: Earth’s moon.

Plot Points:

  1. Inciting Incident: Sebastian discovers a hidden treasure map while playing in the school park. He shares his discovery with his friends that help him decide what to do with the map.
  2. Rising Action: Sebastian embarks on an adventure to find the treasure, encountering obstacles and challenges along the way. The puzzles & challenges Sebastian and friends encounter will need the teamwork of all characters. Develop a puzzle that requires all characters’ involvement to highlight teamwork.
  3. Climax: Sebastian faces his biggest challenge but overcomes it with his bravery and creative thinking. The challenge will force Sebastian to decide between the treasure and the well-being of his friends. Sebastian uses his critical thinking skills to achieve both objectives.
  4. Falling Action: Sebastian discovers the treasure that holds a special surprise.
  5. Resolution: Sebastian learns an important life lesson and shares what he learned with his family and friends, strengthening their bond.

Themes:

  1. Courage: Sebastian displays bravery in the face of challenges.
  2. Creativity: Sebastian uses his creative thinking to overcome obstacles.
  3. Family: The story highlights the importance of family and bonding.
  4. Friendship: The story demonstrates how friendship and helping each other promotes success.
  5. Adventure: The story keeps the feeling of adventure throughout the story.

End of Story Details

A custom story needs custom details. A bit of brainstorming and organization will help prepare ChatGPT to generate one, or many, custom bedtime stories from a creative list of story details. In the next section, we will feed our story details to ChatGPT in preparation for story generation.

Prepare and Generate a Custom Bedtime Story with ChatGPT

With our bedtime story characters, settings, plot points, and other story details gathered and formatted, we are ready to feed these details to the ChatGPT engine.

Provide ChatGPT with Story Details

In a new ChatGPT session, supply ChatGPT with the details of our custom bedtime story.

Prompt:

I am preparing a custom bedtime story with the following details:

**Story Details:**

Characters:
1. Sebastian: a 6-year-old boy who loves sports, video games, and his family. He is brave, positive, creative, empathetic, and enjoys being active.
2. Stella: Sebastian’s pet ghost-dog that has special abilities. Stella can turn invisible, float through solid objects, and is an amazing scout.
3. Jayson: Sebastian’s neighbor, classmate, and best friend. Jayson also enjoys adventure and being active. In fact, Jayson is very good at wrestling.
4. Morpho: a mystical creature that can morph into any animal or object and is a trusty companion to Sebastian and his friends. Morpho joined Sebastian’s group when he was discovered hiding in a bush at the park one day.

Setting:
1. Neighborhood: a vibrant community with friendly neighbors and a park nearby, three pools, soccer fields and other sports activities, the boy’s school, and more.
2. Bestly Elementary: Sebastian and Jayson’s school. The boys love their school and their classmates and teachers. The school is filled with learning and creative events both during and after school.
3. Game Town: the name of the town of the boy’s favorite video game. On some of their adventures, the boys will find themselves in Game Town.
4. The Moon: Earth’s moon.

Plot Points:
1. Inciting Incident: Sebastian discovers a hidden treasure map while playing in the school park. He shares his discovery with his friends that help him decide what to do with the map.
2. Rising Action: Sebastian embarks on an adventure to find the treasure, encountering obstacles and challenges along the way. The puzzles & challenges Sebastian and friends encounter will need the teamwork of all of the characters. Develop a puzzle that requires all characters' involvement to highlight teamwork.
3. Climax: Sebastian faces his biggest challenge but overcomes it with his bravery and creative thinking. The challenge will force Sebastian to decide between the treasure and the well-being of his friends. Sebastian uses his critical thinking skills to achieve both objectives.
4. Falling Action: Sebastian discovers the treasure that holds a special surprise.
5. Resolution: Sebastian learns an important life lesson and shares what he learned with his family and friends, strengthening their bond.

Themes:
1. Courage: Sebastian displays bravery in the face of challenges.
2. Creativity: Sebastian uses his creative thinking to overcome obstacles.
3. Family: The story highlights the importance of family and bonding.
4. Friendship: The story demonstrates how friendship and helping each other promotes success.
5. Adventure: The story keeps the feeling of adventure throughout the story.

**End of Story Details**

Response:

Yes, I understand the details of the story you have provided. It's a great foundation for a bedtime story! Let me know if you need any further assistance or if you have any specific questions while writing your custom bedtime story.

Prompt ChatGPT to Generate a Bedtime Story

Now that ChatGPT has learned all of the details of our bedtime stories, we can ask it to generate a bedtime story. To add additional details for the story at the time of generation (such as details of the events of the day), ask ChatGPT to generate a custom bedtime story and include new details not included in the story details provided to ChatGPT in the previous prompt.

Prompt:

Great! Now, please generate a 10-minute bedtime story that includes today's events. Today, Sebastian enjoyed basketball practice, time with Grandma at the park, and played some of his favorite video games.

ChatGPT will begin generating a bedtime story that could be read within the approximate time requested.

Response:

Once upon a time, in Sebastian's vibrant neighborhood, there lived a brave and creative 6-year-old boy named Sebastian. He had a deep love for sports, video games, and, most importantly, his family. Today was a special day for Sebastian as it was filled with exciting adventures and unforgettable moments.

The day began with Sebastian's basketball practice. He dribbled, shot hoops, and scored amazing baskets, feeling the rush of adrenaline as he played with his teammates. Sebastian's positive attitude and determination shone brightly as he gave his best on the court, making his family proud.

After a fantastic practice, Sebastian joined his Grandma for a delightful afternoon at the park. The sun smiled upon them as they strolled through the park's winding paths, hand in hand. Sebastian and his Grandma laughed and shared stories, creating cherished memories together. They admired the colorful flowers, fed the ducks by the pond, and even had a picnic under the shade of a tall oak tree. Sebastian felt grateful for his Grandma's love and the special bond they shared…

Modify a Bedtime Story Generated by ChatGPT

The first story generated by ChatGPT may be exactly what is needed for the bedtime story. Alternatively, there may be some occasions where a modification to the story is preferred.

Modification Prompt

In the previous section, the bedtime story generated by ChatGPT starts with basketball practice, then moves to a walk in the park with grandma. Let’s say we prefer to start a treasure hunt adventure earlier in the story and would like Sebastian to find a treasure map during basketball practice. By asking ChatGPT to rewrite the story to have Sebastian find a map during practice, we can guide the story with a simple modification prompt.

Prompt:

Great story, but please rewrite the story to have Sebastian find the treasure map during basketball practice while retrieving a basketball that bounced into the tree line at the park.

Response:

Once upon a time, in Sebastian's vibrant neighborhood, there lived a 6-year-old boy named Sebastian, who was brave, positive, and loved sports, video games, and his family. Today, Sebastian's day was filled with excitement as he had basketball practice, spent time with his Grandma at the park, and played his favorite video games.

The day started with Sebastian's basketball practice. He dribbled, passed, and shot hoops with great skill, impressing his teammates and coaches. Sebastian's positive attitude and passion for the game shone brightly as he gave his all on the court, enjoying every moment of the practice.

During one particularly intense play, Sebastian's shot sailed high into the air and bounced off the rim, ricocheting into the nearby tree line. Determined to retrieve the ball, Sebastian ventured into the dense foliage. As he searched among the branches and leaves, he stumbled upon something unexpected—a crumpled piece of parchment. It was a treasure map!...

Just like that, a bedtime story is made! Remember, a custom story needs custom details. A bit of brainstorming and organization will help prepare ChatGPT to generate custom bedtime stories from a creative list of story details. Have fun creating!

To see what else you can do with ChatGPT (or generative AI in general), checkout some of the articles located here: AI Articles.