by we

Horror Story Generator

Test this app for free
12
import logging
import os
from flask import Flask, render_template, request
from abilities import llm

app = Flask(__name__)
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)

def generate_horror_story(theme=None, length=None):
    prompt = "Generate a scary horror story"
    if theme:
        prompt += f" about {theme}"
    if length:
        prompt += f". The story should be approximately {length} words long"
    
    schema = {
        "type": "object",
        "properties": {
            "title": {"type": "string"},
            "story": {"type": "string"}
        },
        "required": ["title", "story"]
    }
Get full code

Created: | Last Updated:

Generates unique horror story prompts and narratives.

Horror Story Generator Template Guide

This template creates a web application that generates unique horror stories based on user-provided themes and length preferences. The app features a dark-themed interface and produces customized scary narratives.

Getting Started

  • Click "Start with this Template" to begin using the Horror Story Generator template in Lazy Builder

Test the Application

  • Click the "Test" button in Lazy Builder
  • Lazy will deploy the application and provide you with a server link to access the web interface

Using the Application

Once you access the provided server link, you can use the Horror Story Generator through its web interface:

  • Enter an optional theme for your horror story (e.g., "haunted house", "zombie apocalypse")
  • Select your desired story length from the dropdown menu:
  • Short (~300 words)
  • Medium (~500 words)
  • Long (~1000 words)
  • Click the "Generate Horror Story" button to create your story
  • The generated story will appear with a title and narrative
  • Use the "Generate Another Story" button to create more stories

The interface features a dark theme with red accents for an appropriately spooky atmosphere. The generated stories are displayed in an easy-to-read format with proper spacing and formatting.



Template Benefits

  1. Content Creation Automation
  2. Streamlines the creation of unique horror stories for publishers, blogs, and content platforms
  3. Reduces time and resources needed for generating original creative content
  4. Maintains consistent output quality while scaling content production

  5. Entertainment Industry Applications

  6. Provides inspiration for screenwriters and game developers
  7. Helps generate initial concepts for horror movies, games, or interactive experiences
  8. Creates quick story prototypes for pitching to production companies

  9. Educational Tool Integration

  10. Supports creative writing courses and workshops
  11. Helps students understand horror genre conventions and storytelling structures
  12. Provides writing prompts for classroom exercises and assignments

  13. Marketing Campaign Enhancement

  14. Creates engaging content for Halloween-themed marketing campaigns
  15. Generates unique stories for social media engagement
  16. Supports themed events and promotional activities

  17. Digital Publishing Platform

  18. Can be monetized as a subscription-based story generation service
  19. Enables creation of custom horror story collections
  20. Supports user engagement through personalized story parameters

Technologies