Skip to main content

Automated AI Story Generation

Generate unique sci-fi and fantasy stories daily with GitHub Actions and AI. A creative automation project that brings imagination to life.

Quick Start

Get your automated story generator running in just a few steps.

1

Fork the repository

Fork the historia-diaria repository to your GitHub account.
2

Get your OpenRouter API key

Sign up for an OpenRouter account and generate an API key. OpenRouter provides access to various AI models for story generation.
The project uses the stepfun/step-3.5-flash:free model by default, which is available at no cost.
3

Configure GitHub Secrets

Add your OpenRouter API key as a GitHub secret:
  1. Go to your repository Settings
  2. Navigate to Secrets and variablesActions
  3. Click New repository secret
  4. Name: OPENROUTER_API_KEY
  5. Value: Your OpenRouter API key
4

Enable GitHub Actions

The workflow will automatically run daily at 8:00 AM Lima time (13:00 UTC). You can also trigger it manually from the Actions tab to test it immediately.
# The workflow creates a new story and updates your site
# View the results at: https://yourusername.github.io/historia-diaria

Key Features

Everything you need to run an automated creative writing project.

AI-Powered Stories

Generate unique sci-fi and fantasy stories using OpenRouter’s AI models with customizable prompts.

Automated Scheduling

GitHub Actions runs daily to create fresh content without manual intervention.

Dynamic Templates

Responsive HTML templates with modern styling and a historical sidebar navigation.

Story Archive

Automatic archiving of all stories organized by month with JSON-based history tracking.

Ready to Create?

Set up your automated story generator and start creating unique content every day.

Get Started Now

Build docs developers (and LLMs) love