About AI-Stories

AI-Stories started as and is still on one side a project to explore the usage of generative AI and on the other for me to test some (for me) new ways of building things.

The backend is built using node. And is constructed of a GraphQL api that fetches data from a MongodDB atlas database. This and all the functions for generating the stories are running on AWS Lambda using Serverless to configure and deploy.

The frontend is built with nextjs and is generating static content at build time. Hosted on Vercel

The vision

The vision is to create a web-app where stories are being generated by AI (GPT) on a regular basis. One new story once every week that is followed by one chapter every day.

The logic looks something like this:

Day 1

  1. Ask GPT to generate a plot idea for a fantasy novel.
  2. Ask GPT to use that plot to generate the first chapter of 7.
  3. Ask GPT to generate a image generation prompt that can be used to generate a picture for the chapter.
  4. Ask Dall-e to generate a picture using the prompt from GPT

Day 2-6

  1. Ask GPT to write the next chapter in a fantasy novel. Providing the previous chapter and original plot idea as part of the input
  2. Ask GPT to generate the image generation prompt
  3. Ask Dall-e to generate the image.

Day 7

  1. Ask GPT to write the last chapter in a fantasy novel. Providing the previous chapter and original plot idea as part of the input
  2. Ask GPT to generate the image generation prompt
  3. Ask Dall-e to generate the image.

Work in progress

This project started in the days between Christmas and New Year’s Eve 2023.

The code is rough and I will keep iterate and tune to figure out and learn what works or not. I don’t know where this will end. But I am sure it will lead to some interesting thoughts and strange stories.

Transparency

Trough the whole of this project I will try to be as transparent as possible that all content is AI generated.

However, this page is written by humans…