Skip to content

oban-bg/firesaga

Repository files navigation

FireSaga

Fire Saga is a workflow that generates a collection of children's stories based on a topic using generative AI. The authors are selected at random, then a short children's story and an illustration are generated for each author before it's all packaged together with cover art in a tidy markdown file.

Usage

🌟 You'll need an active Oban Pro license and OpenAI keys to run the demo

Clone the repository, then install the dependencies:

mix deps.get

Create the database and run the migrations:

mix run ecto.create,ecto.migrate

Run the tests to make sure everything installed:

mix test

Now you can generate a story. Start an iex session, then start a workflow:

FireSaga.Story.insert(chapters: 3, topic: "whatever silly topic you want")

Wait a moment and it will spit out the markdown for a collection of stories with images.

About

Cascading workflow demonstration that generates children's stories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages