📚 AI-Powered Story Generator
Create interactive stories with branching narratives using OpenAI and LangChain
Story Parameters ➡️ Genre | Story Parameters ➡️ Theme | Story Parameters ➡️ Story Length |
---|
Genre determines the type and style of your story:
- Fantasy: Stories with magic, mythical creatures, or supernatural elements (like Harry Potter or Lord of the Rings)
- Science Fiction: Stories involving futuristic technology, space travel, or scientific concepts
- Mystery: Stories centered around solving a crime or puzzle
- Romance: Stories focusing on relationships and love
- Horror: Stories designed to frighten or disturb the reader
- Adventure: Stories with exciting journeys, quests, or challenges
- Historical Fiction: Stories set in the past with historically accurate settings
- Comedy: Humorous stories meant to entertain and make readers laugh
Theme is the central idea or message that runs throughout your story. Some examples:
- Redemption: A character seeking forgiveness or making amends
- Loss: Dealing with grief or the absence of something important
- Discovery: Finding something new about oneself or the world
- Adventure: Exploring new places or situations
- Coming of age: A character maturing or growing up
- Betrayal: Dealing with trust being broken
- Power: The effects of gaining or losing control
- Justice: Exploring fairness and moral rights
- Love: Different types of relationships and connections
- Identity: Understanding who one truly is
Story Length determines the scope of your generated story:
- Short Story: A brief, self-contained narrative (typically 1,000-7,500 words) that can be read in one sitting
- Novella: A medium-length story (typically 17,500-40,000 words), longer than a short story but shorter than a novel
- Novel Chapter: A section of what could be a longer work, focusing on just one part of a potentially larger narrative
Status: Shows feedback about your story generation process (success messages, errors, confirmations)
Story Branches: When you click "Generate Branch Options," this area shows three different possible directions for your story. Each includes a title and brief description.
Select a Branch: Radio buttons that let you choose which story direction to follow. After selecting one, click "Continue with Selected Branch" to develop that storyline.
Generated Story: The main output area where your complete story appears, including all continuations and branches you've selected.
How to Use
- Enter your OpenAI API 🔑
- Select a genre, theme, and length
- Click "Start New Story" to begin
- Continue the linear story or generate branching options
- If you chose branching, select a branch to follow
This app uses LangChain to orchestrate the story generation process and OpenAI's models to create the content.