Skip to content

Instantly share code, notes, and snippets.

@kbastani
Last active April 7, 2023 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbastani/1bbd75df9592e76b3994f74374137c80 to your computer and use it in GitHub Desktop.
Save kbastani/1bbd75df9592e76b3994f74374137c80 to your computer and use it in GitHub Desktop.
This example shows how OpenAI's GPT technology can write books based off of JSON data describing past, present, and future events

Chronicles of the Enchanted Mage: The Book of Ancient Spells

Chapter 1 - The Enchanted Forest

  • Introduction of Eliana as a young mage who grew up in the Enchanted Forest
  • Training from her mother and discovery of the Book of Ancient Spells

Chapter 2 - The Dark Wizards

  • Eliana and her family are attacked by dark wizards seeking the book
  • Aiden, a skilled swordsman, rescues Eliana

Chapter 3 - The Journey Begins

  • Eliana and Aiden begin their journey to travel the kingdom in search of artifacts
  • Encounter with dark creatures and development of magical abilities

Chapter 4 - The Crystal Caves

  • Arrival at the Crystal Caves, meeting the Crystal Guardians

Chapter 5 - The Mountain of Fire

  • Journey to the Mountain of Fire to uncover a valuable artifact
  • Battle against powerful fire elementals

Chapter 6 - The Council of Mages

  • Arrival at the Council of Mages to seek guidance and knowledge

Chapter 7 - The Dark Lord

  • Learning about the dark lord and preparing to confront him and his minions

Chapter 8 - The Final Battle

  • Eliana and Aiden, along with allies, engage in a final battle against the dark lord and his minions
  • Unleashing powerful spells and magic to protect the kingdom

Chapter 9 - The Aftermath

  • Healing and rebuilding after the dark lord's reign
  • Recognition for Eliana and Aiden as heroes, exploration and mastery of ancient magic, and planning for the future defense of the kingdom

Chapter 1 - The Enchanted Forest

Eliana wakes up early in the morning, the sun peeking through the forest canopy and casting a warm glow over her small cottage. She stretches her arms and takes a deep breath, feeling the fresh air fill her lungs.

As she gets dressed, her thoughts wander to her mother and the magic lessons she'll have that day. She tidies up her bed and steps outside, where the forest sings with life. The birds chirp, the trees rustle, and the stream burbles nearby.

Eliana makes her way down to the clearing where her mother is waiting for her. Her mother, a powerful mage with a gentle heart, greets her daughter with a smile.

"Good morning, Eliana. Are you ready for today's training?" Her mother asks.

Eliana nods, eager to continue learning about the magic of the enchanted forest. Her mother opens a large book of spells on a nearby table and begins to teach Eliana how to harness the magic within her.

For hours, they practice casting spells, shaping the elements around them, and expanding their magical knowledge. Eliana's mother reveals to her the existence of a Book of Ancient Spells, said to be the key to unlocking monumental secrets of magic.

As the day draws to a close, she hands her daughter a dusty old book with a black-embroidered cover. "This belonged to your ancestors," Eliana's mother told her. "It is yours to protect and study. It will guide you on your journey."

Eliana flips through the pages carefully, amazed at the power and history of the spells she's seeing.

Suddenly, they hear rustling in the distance. "I sense a dark presence," her mother warns. "Quickly, take cover."

Eliana hides in the forest while the dark wizards from the Dark Woods raid their cottage in search of the Book of Ancient Spells. When they fail to find it, they attempt to capture Eliana and her mother, but Aiden, a skilled swordsman serving in the royal army rescues them and guides them to safety.

As Aiden leads Eliana and her mother deeper into the forest, he senses their anxiousness and tries to reassure them. "Don't worry, I'll keep you all safe."

Eliana, unsettled by the attack, looks at Aiden with suspicion. "Who are you? How do you know my mother?"

Aiden turns to Eliana with a small smile. "I'm Aiden. Your mother and I go way back. We've fought together in the past."

Eliana's mother, Seraphina, nods in agreement. "Yes, Aiden has served the kingdom for many years. He's one of the best swordsman in the Royal Army."

"Forgive me," Eliana says, calming down a bit. "I'm just not used to people attacking us or coming to our rescue."

Aiden looks at her with concern. "It's not safe out here. We need to keep moving," he says, his eyes darting around the forest. "If they're after the Book of Ancient Spells, they'll come after us again."

Seraphina grips onto her daughter's arm. "We have to get the book to the Council of Mages. They'll know how to protect it."

Aiden nods in agreement. "But first, we need to get you to a safe place. The Royal Palace is the best option. King Roderick will keep you both safe and we can get the council's attention."

Eliana looks at Aiden, unsure if she should trust him. But the way he carries himself and the urgency of the situation can't be ignored. "Okay," she said. "Let's go to the palace."

As Eliana, Seraphina, and Aiden make their way towards the Royal Palace, they come across a narrow path that leads through the Dark Woods, known for being home to dangerous creatures and dark magic.

As they journey through the woods, they hear rustling in the bushes behind them. Suddenly, a band of dark wizards, led by a towering figure in a dark cloak, emerges from the shadows.

"Hand over the book, and we won't hurt you," the wizard says, his voice like gravel.

Eliana steps forward, her grip tightening on the book. "I won't give it to you."

The wizard laughs, his eyes glowing with an eerie light. "We'll just have to take it then."

Just as the dark wizards prepare to attack, a band of roving bandits appears out of nowhere, wielding staffs and swords. They engage the dark wizards in a fierce battle, buying enough time for Eliana, Seraphina, and Aiden to escape the fray.

The bandits emerge from the shadows, their weapons drawn, and face off against the dark wizards. Eliana, Seraphina, and Aiden watch in amazement, unsure of what to do.

One of the bandits, a rugged man with a scar on his cheek, steps forward, his eyes locked onto the dark wizard's. He says, "You dark wizards think you're the only ones who can wield magic and cause destruction in the kingdom, but we have also vowed to protect it. That book is important, and we won't let its secrets be used for evil."

The wizard sneers, his hand glowing with dark magic. "We will have to destroy you all if you keep meddling."

The bandit group fights with all their might, their staffs and swords clashing against the dark wizards' spells. After a time, they manage to overpower the dark wizards and force them to retreat. The scarred bandit turns to the group, wiping the sweat from his forehead.

"My name is Marcus," he says, introducing himself. "My group of bandits has been fighting against these dark forces for years. We cannot stand by and let them take over the kingdom. It's become more dangerous than ever with the threat of the Dark Lord."

Eliana and Seraphina exchange a look of concern at the mention of the Dark Lord. "What can we do?" Eliana asks.

Marcus looks at them thoughtfully. "I suggest you bring the Book of Ancient Spells to the Council of Mages. They'll know best what to do with it. If the dark forces want it, then it must hold great power. But be warned, the Council may not be as hospitable as you think."

Eliana nods, grateful for the bandits' help. "Thank you, Marcus. We'll keep that in mind."

As Eliana, Seraphina, and Aiden continue their journey through the dense forest with Marcus and a few of his men, they come across a clearing where they can rest and make camp for the night. The trees tower above them, filtering the light of a waning moon. Creatures of the night stir in the darkness, their calls echoing ominously through the forest.

Marcus offers to help set up camp, and they all work together to gather firewood and set up tents. As they sit around the campfire, Marcus and the rest of the bandits regale them with tales of their encounters with the dark forces and the strange creatures that lurk in the forest.

Eliana listens thoughtfully, fascinated by the stories. "Are there really such dangerous creatures out there?" she asks.

Marcus nods, a seriousness in his eyes. "Yes, there are. The forest is home to many creatures, some good, some bad. It's important to be on your guard and always stay alert."

Seraphina adds, "I remember the time when the mountain of fire erupted, causing the fire elementals to come out of hiding. That was a dangerous time for everyone."

Aiden chimes in, "I heard that the fire elementals inhabit the Mountain of Fire. Have any of you ever encountered them?"

Marcus scoffs. "Only the bravest of us have dared to enter the Mountain of Fire. The fire elementals are powerful and unforgiving. It's not a place for the faint of heart."

Eliana, having inherited her mother's curiosity and bravery, is intrigued. "I want to see the Mountain of Fire someday," she says.

The bandits look at her skeptically, but Marcus just nods. "Someday, you might. But for now, we need to focus on getting you to the Royal Palace and protecting the Book of Ancient Spells."

As they continue to swap stories and commune in the wilderness, they can't help but feel united in their shared aim of protecting the kingdom from the dark forces that threaten it.

As Eliana falls into a deep slumber, she is plagued by a nightmare that grips her like a vice. She finds herself in a dark, shadowy place, the only light coming from the sinister glow of a dark orb hovering in the air.

Suddenly, she is surrounded by dark forces - twisted, gnarled figures whose faces are hidden in the shadows. They grasp at her with their spindly fingers as she struggles to break free.

Eliana hears a sinister voice in her mind, trying to pry into her thoughts and discover where she has taken the Book of Ancient Spells. "Hand over the book, Eliana. We know you have it. You can't keep it from us forever."

Terrified, Eliana tries to push them away with all her might, but they continue to swarm around her, their presence suffocating her.

Just as she feels herself giving in, a bright light floods the darkness, and the dark forces begin to shriek in terror. The light grows stronger and stronger until it becomes blinding, and the dark forces begin to fade away into the shadows.

Eliana wakes up with a start, gasping for breath. She looks around the campsite, relieved to find that everything is safe and that it was just a nightmare. But the images and the voice still linger in her mind, reminding her of the dangers that lie ahead.

Chronicles of the Enchanted Mage: The Book of Ancient Spells

"Eliana's world is full of magic, wonder, and danger. In the enchanted forest, she learns to harness the power of spells with her mother, a powerful mage. But when dark wizards come seeking an ancient and powerful book of spells, Eliana must set out on a dangerous journey with a skilled swordsman and a group of bandits to protect it.

As they travel through the forest, Eliana faces countless challenges and encounters dangerous creatures. But she is determined to reach the Royal Palace and seek the help of the Council of Mages. Along the way, she must learn to trust her companions and her own abilities as a mage.

But even with the help of her new friends, Eliana is plagued by a nightmare that threatens to consume her. She must confront her fears and the darkness that lies ahead.

Filled with magic, adventure, and suspense, this thrilling fantasy novel will take readers on a journey they will never forget. Join Eliana as she discovers her true power, faces her deepest fears, and fights to protect the enchanted forest from the forces of darkness."

Story Plot

This is a fantasy-themed story with a young mage named Eliana as the main character. She grew up in an enchanted forest with her family of mages and received training from her mother in the art of magic. Eliana discovered a hidden book of spells in her family's library, which is believed to hold the key to unlocking ancient magic. Currently, Eliana is traveling the kingdom in search of ancient artifacts, fighting against dark forces threatening the land, and trying to uncover the truth about her past.

Aiden is a skilled swordsman and loyal friend to Eliana, who was trained in sword fighting from a young age and joined the royal army as a teenager. He rescued Eliana from a group of dark wizards in the past and is currently traveling with her to protect her on her journey. Aiden is also developing his own magical abilities and fighting against dark creatures and wizards.

The story features several locations, including The Enchanted Forest, The Royal Palace, The Dark Woods, The Mountain of Fire, and The Crystal Caves. The Enchanted Forest is home to Eliana's family of mages, while The Royal Palace is the grand castle where the royal family lives and the kingdom's affairs are managed. The Dark Woods are a foreboding forest filled with dangerous creatures and dark magic, while The Mountain of Fire is an active volcano that is home to powerful fire elementals. The Crystal Caves are a series of underground caves filled with rare crystals and guarded by ancient magic.

The story also mentions several groups and people, including The Council of Mages, a group of powerful mages who govern the use of magic in the kingdom. The Dark Lord is a mysterious figure who threatens the peace and stability of the kingdom, and The Fire Elementals are powerful elemental creatures who reside in the Mountain of Fire.

The Book of Ancient Spells is a mysterious book discovered by Eliana in her family's library, which is filled with powerful spells and magic. It is believed to hold the key to unlocking ancient magic and was protected by Eliana's family for generations. It was stolen by dark wizards but later recovered by Eliana. The Book of Ancient Spells is currently used by Eliana to cast powerful spells and protect herself on her journey, and it is a valuable tool in the fight against dark forces. Eliana continuously studies and deciphered it to uncover its secrets. In the future, Eliana plans to unleash powerful spells to defeat the dark lord, unlock the full potential of ancient magic, and become a master of the Book of Ancient Spells to use it to protect the kingdom.

The Crystal Guardians are mysterious beings who guard the Crystal Caves and possess ancient knowledge and magic. They have existed for centuries and guarded the Crystal Caves and the rare crystals within. They provided guidance and counsel to those who seek their help. Currently, they are meeting with Eliana and Aiden to provide guidance on their journey, teaching them ancient spells and magical techniques, and helping to defend the Crystal Caves from dark forces. In the future, they plan to battle against the dark lord and his minions, share their ancient knowledge and magic with the world, and become legendary figures in the history of magic and the kingdom.

{
"Characters":{
"Eliana":{
"Description":"A young mage with a mysterious past",
"Past Actions":[
"Grew up in the enchanted forest with her family of mages",
"Received training from her mother in the art of magic",
"Discovered a hidden book of spells in her family's library"
],
"Present Actions":[
"Traveling the kingdom in search of ancient artifacts",
"Fighting against dark forces threatening the land",
"Trying to uncover the truth about her past"
],
"Future Actions":[
"Confronting the dark lord behind the threat to the kingdom",
"Mastering powerful spells and ancient magic",
"Discovering the true nature of her magical abilities"
]
},
"Aiden":{
"Description":"A skilled swordsman and loyal friend to Eliana",
"Past Actions":[
"Trained in sword fighting from a young age",
"Joined the royal army as a teenager",
"Rescued Eliana from a group of dark wizards"
],
"Present Actions":[
"Traveling with Eliana to protect her on her journey",
"Fighting against dark creatures and wizards",
"Developing his own magical abilities"
],
"Future Actions":[
"Battling alongside Eliana against the dark lord",
"Becoming a master of sword fighting and magic",
"Leading the charge to defend the kingdom from future threats"
]
}
},
"Locations":{
"The Enchanted Forest":{
"Description":"A mystical forest filled with magical creatures and home to Eliana's family of mages"
},
"The Royal Palace":{
"Description":"The grand castle where the royal family lives and the kingdom's affairs are managed"
},
"The Dark Woods":{
"Description":"A foreboding forest filled with dangerous creatures and dark magic"
},
"The Mountain of Fire":{
"Description":"An active volcano that is home to powerful fire elementals"
},
"The Crystal Caves":{
"Description":"A series of underground caves filled with rare crystals and guarded by ancient magic"
}
},
"Mentioned groups/people":{
"The Council of Mages":{
"Description":"A group of powerful mages who govern the use of magic in the kingdom"
},
"The Dark Lord":{
"Description":"A mysterious figure who threatens the peace and stability of the kingdom"
},
"The Fire Elementals":{
"Description":"Powerful elemental creatures who reside in the Mountain of Fire"
}
},
"Entities":{
"The Book of Ancient Spells":{
"Description":"A mysterious book discovered by Eliana in her family's library, filled with powerful spells and magic",
"Past Actions":[
"Protected by Eliana's family for generations",
"Believed to hold the key to unlocking ancient magic",
"Stolen by dark wizards and later recovered by Eliana"
],
"Present Actions":[
"Used by Eliana to cast powerful spells and protect herself on her journey",
"A valuable tool in the fight against dark forces",
"Continuously studied and deciphered by Eliana to uncover its secrets"
],
"Future Actions":[
"Unleashing powerful spells to defeat the dark lord",
"Unlocking the full potential of ancient magic",
"Becoming a master of the Book of Ancient Spells and using it to protect the kingdom"
]
},
"The Crystal Guardians":{
"Description":"Mysterious beings who guard the Crystal Caves and possess ancient knowledge and magic",
"Past Actions":[
"Believed to have existed for centuries",
"Guarded the Crystal Caves and the rare crystals within",
"Provided guidance and counsel to those who seek their help"
],
"Present Actions":[
"Meeting with Eliana and Aiden to provide guidance on their journey",
"Teaching them ancient spells and magical techniques",
"Helping to defend the Crystal Caves from dark forces"
],
"Future Actions":[
"Battling against the dark lord and his minions",
"Sharing their ancient knowledge and magic with the world",
"Becoming legendary figures in the history of magic and the kingdom"
]
}
}
}

Story Event Log

This event log was generated by ChatGPT after reading the first chapter of this example book.

  • Eliana wakes up in her small cottage in the enchanted forest, excited for her magic lessons with her mother.
  • Eliana and her mother practice spells together for hours, and Eliana is introduced to the Book of Ancient Spells.
  • Dark wizards from the Dark Woods raid their cottage in search of the Book of Ancient Spells, but Aiden rescues them and guides them to safety.
  • Aiden suggests they take the Book of Ancient Spells to the Royal Palace for protection.
  • On their journey to the palace, they encounter a narrow path that leads through the Dark Woods.
  • They are confronted by a group of dark wizards who demand the book, but the bandits appear and engage them in battle.
  • After the battle, Marcus, the leader of the bandits, suggests they take the Book of Ancient Spells to the Council of Mages.
  • They set up camp for the night and swap stories around the campfire.
  • Eliana has a nightmare about the dark forces trying to take the book from her.
  • They continue their journey and face many obstacles along the way, including treacherous terrain and hostile creatures.
  • They arrive at the Royal Palace and present the Book of Ancient Spells to the Council of Mages.
  • The Council of Mages recognizes the power of the book and agrees to keep it safe.
  • Eliana and her companions feel a sense of relief and accomplishment, but also know that the threat of the dark forces still looms.
  • Eliana discovers that the Book of Ancient Spells holds a clue to defeating the Dark Lord.
  • The Dark Lord's minions attack the Royal Palace, seeking the book.
  • Eliana and her companions fight off the minions and escape with the book.
  • They discover that the key to defeating the Dark Lord is hidden in the Mountain of Fire.
  • Eliana and her companions set off to find the Mountain of Fire.
  • They face many dangers and obstacles on their journey, including hostile creatures and treacherous terrain.
  • They finally reach the Mountain of Fire and discover the key to defeating the Dark Lord.
  • Eliana and her companions use the key to defeat the Dark Lord and his minions.
  • The kingdom is saved, and Eliana is hailed as a hero.
  • Eliana and her mother decide to stay in the enchanted forest to continue practicing magic.
  • Eliana becomes a powerful mage and passes on her knowledge to future generations.
  • The enchanted forest remains a place of magic and wonder, protected by Eliana's descendants and the Book of Ancient Spells.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment