Home Support

About AI Dungeon

AI Dungeon is an AI generated text adventure that uses deep learning to create each adventure. It uses OpenAI's new GPT-2 model, which has 117 million parameters, to generate each story block and possible action.

The first couple sentences of AIDungeon and the action verbs are handcrafted, but everything else is not. For each choice that is made, the initial prompt, the last story block, and the last action are fed into the neural network. The resulting story and action options are then output by the model.

In order to speed up the experience some of the first sets of stories, choices and results have been pre-generated and cached. After enough choices, however, it will start taking longer (around 20s) to generate each result.

As you can probably tell there's still a ways to go before AI will be your group's dungeon master, but even after running hundreds of adventures it still manages to surprise me in interesting ways. I've had a lot of fun making this and hope you enjoy it too.

Warning: The GPT-2 model was trained on a huge amount of internet text so there might be offensive content.

If you want to contact me about suggested improvements, comments, etc... feel free to email me about them at aidungeon.io@gmail.com.

AI Dungeon was created by Nick Walton with the support of the BYU Percepton Cognition and Control Lab, Alan Walton and Max Robinson.