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.
🌟 You'll need an active Oban Pro license and OpenAI keys to run the demo
Clone the repository, then install the dependencies:
mix deps.getCreate the database and run the migrations:
mix run ecto.create,ecto.migrateRun the tests to make sure everything installed:
mix testNow 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.