Lunelle ← Back to home
Guides

How to play a choose-your-own-adventure story with AI

Updated

To play a choose-your-own-adventure story with AI, give the chatbot a prompt that sets up the story and asks it to end every passage with a few choices, then pick one and keep going. The rules in that prompt decide whether your choices matter. Left to itself, a chatbot tends to offer options that are the same move in different words, let every option work out, forget what you chose a few turns later, and keep the story going with no ending in sight. Ask for options that differ in what they risk, a short line at the end of each reply that records the choices that count, and a set number of endings the story has to reach within a set number of turns.

The advice works in ChatGPT, Claude, Gemini, and Grok, and in character apps such as Character.AI, Janitor AI, and SillyTavern. This guide covers what made the original gamebooks work, why AI choices often feel empty, a prompt you can copy, how to tell a good choice from a weak one, and how to give the story a shape and an ending. It ends with apps that offer AI stories with choices, as of December 2026. If you’d rather type your own actions than pick from a list, our guide to playing a text adventure with AI covers that kind of game.

What a choose-your-own-adventure story is

A choose-your-own-adventure story is told to “you,” and at the end of each passage you decide what happens next. In the books, each choice sent you to a different page. Bantam Books began the Choose Your Own Adventure series in 1979 with Edward Packard’s The Cave of Time. Smithsonian Magazine quotes one of its choices: “Will you ‘seek shelter’? (Turn to Page 6.) Or will you ‘brave the freezing wind to see more of the world about you’? (Page 16.)” The book has 40 possible endings, and “ten are catastrophically bad.”

The series’ current publisher, Chooseco, says the plot threads grew longer over time, so “the earliest books often contained nearly forty possible endings, while later titles contained as few as eight.” By its count, the series sold over 250 million copies between 1979 and 1999. In Britain, the Fighting Fantasy gamebooks by Steve Jackson and Ian Livingstone added fights and scores from 1982, and readers played them “armed with two dice and pencil and an eraser,” in the publisher’s words. Choose Your Own Adventure is a registered trademark of Chooseco. This guide uses the phrase for the kind of story, which people also call a gamebook or a choice-based game.

A book has every page written before you open it. A chatbot writes each passage when you reach it. That gives it endless branches, but none of them exists until the AI writes it, and nothing holds the AI to what it planned. Most of the problems below come from that.

Why AI choices often feel empty

A choice matters when its options lead to different places and you can roughly guess where each one leads. Chat models miss that in four common ways. Each one has a fix in the prompt further down.

The options are the same move in different words

Models tuned to follow instructions tend to produce similar, safe text. Vishakh Padmakumar and He He found that InstructGPT “tends to provide less diverse suggestions and introduce less diverse text” than the base model it came from (ICLR 2024). A 2025 paper from Northeastern and Stanford researchers calls this mode collapse: “Post-training alignment often reduces LLM diversity.” In a choice menu, the result is three options that do the same thing in different places or tones.

Researchers at the University of Pennsylvania and the University of Maryland, Baltimore County saw this when they asked GPT-4 to branch a story. With a simple prompt, it offered “non-choices” such as “Stark decides to get ambushed by the Ten Rings,” choices the character would never make, and “retreat decisions” in which the hero stays out of the situation, which “does not move the story forward.” Their system, WHAT-IF, got better branches by telling the model what the character wants and what state they’re in at each decision.

Game scholars have a name for a menu like that. Peter Mawhorter and colleagues at UC Santa Cruz define a false choice as “a choice where all of the different options lead to the same outcome,” including options whose differences are “disproportionately small” (FDG 2014).

Every choice works out

Chat models tend to go along with the user, and they lean toward happy outcomes. Yufei Tian and colleagues compared GPT-4’s stories with human ones and found that “LLM stories are homogeneously positive and lack tension” (EMNLP 2024). In Microsoft Research’s GENEVA project, GPT-4 wrote several branching versions of Little Red Riding Hood. The authors report that it chose “to steer clear of the original ending” in every one and gave them all positive endings.

Virgil Ierubino spent weeks building a choose-your-own-adventure game on GPT-4 in 2024. He wrote that it’s “more engaging if the player faces obstacles; but in general it wanted any of the player’s actions to succeed.” He solved it by “delegating the outcome of risky actions to actual chance (dice rolling).” When every option ends well, picking one only chooses the scenery.

It forgets what you chose

A chat model rebuilds the story from the text of the conversation every time it replies. A choice you made twenty turns ago is one line in a long chat, and the model may not use it, or may not see it at all once the chat outgrows its context. The author of Control Alt Achieve, a technology blog for teachers, uses AI choose-your-own-adventure stories in class and warns that “if I go over 10 rounds,” the AI “might forget something that happened back in the first few rounds.” Our guide to why AI characters forget explains the mechanics.

It doesn’t know when to stop

A book has a last page. A chat model answers every message, and unless the prompt sets an ending, the story can run on with nothing to aim at. Choices carry more weight when you know the story is heading toward one of several endings, some good and some bad.

A choose-your-own-adventure prompt you can copy

This prompt builds those fixes into the story’s rules. It’s written for ChatGPT, Claude, Gemini, or Grok. Put it in a project’s instructions or a Gem if you can, so it applies to every reply, or paste it as your first message. Replace each bracket.

Run a choose-your-own-adventure story for me. You narrate in the second person ("you") and play every other character. I make the choices for my character.

Story: [the setting and situation, in two or three sentences]
My character: [name, and one line about who they are]
Goal: [what my character wants]
Tone: [for example: tense, with a little dry humor]
Length: [for example: about 15 choices]
Endings: [for example: 6 endings, from a full success to a disaster, with some in between]

Each turn:
- Write one passage of 100 to 200 words that ends at a decision, then offer three choices labeled A, B, and C. Add a last line: "Or type your own."
- Make the options differ in what they risk, cost, or value. Three ways of doing the same thing is one choice.
- Make no option obviously right. If an option is risky, let the passage hint at the risk.
- Some choices pay off at once, and some come back later. When a choice will matter later, end the passage with one short line, such as "The conductor will remember that."
- Choices can fail or cost something. Not every path ends well.
- Never make a choice for me, and never write what my character says or feels after a choice.
- If I type my own action, treat it as my choice and keep to the story's rules.

Endings:
- Plan the endings before you begin, and steer toward one of them as I choose. Bad endings are allowed.
- Reach an ending within the length above. When you do, name the ending, tell me how many endings there are, and stop.

End every reply with this state line, updated:
Turn [number] of [length] | Carrying: | People: | Choices that matter:

Here is how the brackets might look for a short story:

Story: Winter 1923, an overnight train crossing the mountains to the coast. At the first stop, the conductor hands you a sealed letter with your name on it. You don't know who sent it, and someone else on the train wants it.
My character: Ada Fenn, a junior clerk at a shipping company, on her way to her first posting.
Goal: reach the coast with the letter, and find out why it was sent to you.
Tone: tense, with a little dry humor.
Length: about 15 choices.
Endings: 6 endings, from a full success to a disaster, with some in between.

What each rule is for

Three choices is a common size for a menu. Kevin Bruner, a co-founder of Telltale Games, the studio behind the choice-driven video game The Walking Dead (2012), said “generally we give you three dialogue options at a time, those things have to matter a whole lot.” The line “Or type your own” keeps the freedom a chatbot has over a book. You can try something nobody listed, and the AI judges it by the story’s rules.

The line about choices that “will remember that” comes from Telltale’s games, which show a short notice when a choice will come back. Bruner explained it this way: “When it says ‘the game will remember that’ it’s something we’re collecting, and then we try to tailor the content specifically to the person in front of us.” In a chat, the line does two jobs. It tells you which choices count, and it puts the choice into the text the AI reads before every later reply.

Research suggests the notice itself helps. Matthew Fendt and colleagues at North Carolina State University compared a branching story with a linear one that acknowledged each choice in the text. They found “in most cases no significant difference” in how much control players felt (ICIDS 2012). Acknowledging a choice in the text goes a long way toward making it feel like it counted.

The planned endings and the turn count give the story a destination, the way a book’s page count did. The state line is the story’s memory, covered below. The rule that choices can fail follows Ierubino’s finding, and you can hand risky choices to dice, as the section on dice and stats explains.

What makes a choice worth making

Writers of choice-based games have thought about this for decades. Their advice comes down to two tests. The options should lead to different places, and you should be able to guess roughly where each one leads before you pick.

Choice of Games, a publisher of text-based choice games, puts it plainly: “One of our core principles is that choices have to be meaningful.” A meaningful choice “has to have consequences,” and the player has “to know why they’re choosing it.” Before a choice, the text should signal “the potential story results for each option” and “the relative difficulty of each option, if some options are harder than others.” Its example of what not to do comes from old gamebooks, which offered “Go right” or “Go left” with nothing to go on: “Then, they’d probably fall off a cliff.”

Emily Short, an interactive fiction author and designer, ties this to the player’s sense of control. It “depends, in turn, on whether the player can form a reasonable guess about the results of an action before taking that action. If the player cannot guess or does not care where the action will lead, there is no agency.”

A study at North Carolina State University tested what makes options feel different. Rogelio Cardona-Rivera and colleagues had 88 people play a choose-your-own-adventure game. Players “reported a higher sense of agency when faced with choices that differed in situational content,” meaning where the story goes, when, who is in it, and what the characters are trying to do (AIIDE 2014). They point to an earlier game in which choosing between “Your sword and shield” and “Your crossbow” felt like less of a choice than “The forest to the north of town” or “The mountains to the east of town.”

Mawhorter and colleagues’ list of choice types makes a good checklist for an AI’s menu:

Here is a false choice from the night train:

A) Open the letter in your compartment.
B) Open the letter in the dining car.
C) Open the letter in the corridor.

All three lead to reading the letter. A better menu at the same moment:

A) Open the letter now, before anyone can take it from you.
B) Give it back to the conductor unopened and ask who handed it to him.
C) Slip it into the coat of the man in seat 4B, who has watched you since the platform, and see what he does.

Each option risks something different. Opening the letter gets you information, but now you know something dangerous. Returning it gives up the letter for an answer. Planting it keeps you safe for now and tests a stranger. If the AI offers a menu like the first one, say so out of character: (OOC: These three choices all lead to the same thing. Give me three that risk different things.) Our guide to what OOC means covers notes like this.

Keep your choices in the story’s memory

The AI can only build on a choice it can still see. The state line at the end of each reply keeps the choices that matter written down at the end of the chat, where the model reads them right before it writes the next passage. After a few turns on the night train, it might read:

Turn 6 of 15 | Carrying: the sealed letter, ticket, a few coins | People: conductor wary, man in 4B hostile, the widow in 6A friendly | Choices that matter: gave the conductor a false name; kept the letter

Keep the line short, because it’s sent back with every reply and long lists crowd out the story. Read it each turn. If it drops a choice you made, or adds one you didn’t, correct it at once with an OOC note. A wrong fact that sits in the chat for many turns is harder to remove.

For a story that runs longer than one sitting, end the session with a short summary of what happened and the latest state line, and paste both into a new chat with the prompt. Our guide to writing a chat memory summary has templates.

Give the story a shape

A book’s author decides in advance where the branches split and where they join. In a chat, nobody decides unless you ask. Sam Kabo Ashwell, an interactive fiction writer and critic, named the common shapes in “Standard Patterns in Choice-Based Games” (2015). Three of them suit an AI story:

To ask for a branch-and-bottleneck story, add a line to the prompt such as: “Plan three or four events that every path reaches. My choices decide how I reach them and what state I’m in when I do.” On the night train, every path might reach the border check at midnight and the arrival at the coast. What changes is who is on your side, and whether you still have the letter.

Plan the story map before you play

The AI keeps to a plan best when the plan is written down where it can read it. You have three ways to do that, the same three our murder mystery guide describes for a culprit.

  1. Ask a second chat for a story map. Ask for the key events, the endings, and which choices lead toward each, with the endings at the bottom. Ask for one route through the story first, then each other route with the first in mind. Microsoft’s GENEVA researchers found that GPT-4 “was not good at interweaving the storylines” when it wrote all of them at once, and did better one at a time. Paste the map into your prompt without reading the end.
  2. Have the AI write the map in code. Ask for the map in its first reply in a form you can’t read at a glance, such as Base64. The mystery guide explains how.
  3. Improvise. Keep the prompt’s rules about planned endings and let the AI plan without showing you. The story holds together less well, but nothing is spoiled.

Endings worth reaching

A set number of endings, spread from good to bad, gives your choices something to aim at. Chooseco describes the kinds of ending the books used: at least one “highly desired resolution,” endings “that result in the death of ‘you,’” and others “either satisfactory (but not the most desired ending) or unsatisfactory (but not totally bad).” Ask the AI for a similar spread in the Endings line of the prompt.

The books didn’t always warn you before a bad ending, which is part of their charm and part of the joke about falling off a cliff. In a chat, ask the AI to hint at danger in the passage, as Choice of Games advises. With a hint, you can see a bad ending coming, so it feels like the result of your choice.

When you reach an ending, you can go back. Smithsonian notes that the books had “one advantage: You can flip back a few pages and make a different choice.” Most chat apps let you edit an earlier message and send it again, which starts a new branch from that point. You can also start a fresh chat with the same story map and choose differently from the beginning.

Dice and stats, if you want them

A plain choose-your-own-adventure story has no dice. Adding them, as Fighting Fantasy did, means a risky choice can fail even when you pick well, which keeps the AI from letting everything work. Choice of Games adds stats that some choices test, and its writers hint in the text which stat a choice will test. You can ask for both:

Stats: Nerve 2, Wits 3, Charm 1 (0 to 5). When a choice tests a stat, name the stat and ask me to roll a d6. I add the stat and tell you the total. 7 or more: it works. 4 to 6: it works, at a cost. 3 or less: it fails.

Roll the dice yourself, in a dice app or with real dice. A chat model writes a number that fits the story instead of rolling one. Our guide to using ChatGPT as a dungeon master explains why and suggests dice apps.

Choose-your-own-adventure stories in character apps

Character apps can run a story like this through a narrator bot, a bot that tells the story and plays everyone in it. Put the rules from the prompt into the bot’s definition or scenario. Make the greeting the first passage, ending with three choices and the state line, because the greeting shows the model the format to follow. Our guides to writing a scenario and making a bot with multiple characters cover the setup in Janitor AI, SillyTavern, Chub, and Character.AI.

Character.AI also has Scenes, short stories set up around a situation. A Scene’s creator defines the “setting, backstory & player goal,” and you play by typing; the announcement says, “Your choices shape what happens next.” It doesn’t offer menus on its own, so ask for lettered choices in your first message if you want them.

Apps with AI stories and choices

A few apps are made for AI stories with choices, as of December 2026:

Common questions

Can ChatGPT do a choose-your-own-adventure story?

Yes. Ask it to end each passage with a few lettered choices, and give it rules: options that differ in what they risk, a state line that records your choices, and a set number of endings within a set number of turns. Without rules, its options tend to blur together and the story rarely ends. The prompt in this guide works in ChatGPT, Claude, Gemini, and Grok.

What is a good choose-your-own-adventure prompt for AI?

One that sets the story, your character, a goal, a length, and a range of endings, and asks for choices that differ in risk or value. It should forbid the AI from choosing for you and ask for a short state line in every reply. The prompt in this guide covers all of these.

Why do all the AI’s choices lead to the same place?

Chat models tend toward similar, safe text, and in a menu that becomes three versions of one move. Game designers call it a false choice. Add a rule that options must differ in what they risk, cost, or value, and send weak menus back with an OOC note.

How many choices should each turn have?

Three is a common size: enough for a real decision and short enough to read at a glance. Telltale’s games usually gave three dialogue options. Two works for a sharp dilemma at a big moment. More than four tends to produce filler options.

Is there a free AI choose-your-own-adventure game?

Yes. The prompt in this guide works on the free tiers of ChatGPT, Claude, and Gemini. Hidden Door offers unlimited free play on the web, and Perchance’s AI Text Adventure is free in the browser with no account.

Can AI write a choose-your-own-adventure book I can share?

It can help. Ask for a story map first: the key events, the endings, and which choices lead where. Then have it write the passages one route at a time, checking each against the map, since a model can drift from its own plan. To publish the result as a clickable story, Twine is “an open-source tool for telling interactive, nonlinear stories” that publishes to a web page.

Choices that last in Lunelle AI

Lunelle AI has adventures you play in your own words, and you can create your own with its chat-based creator. Characters remember events and the choices you made across sessions, so a choice from an early chapter can still shape a later one. See long-term memory for long adventures.

Sources

Research

Game design

History, apps, and reports