The most addictive way to play with AI is a text adventure with AI as your "game master" (GM). You declare an action, the AI describes the scene, and the story branches — your own personal story is born on the spot. And what makes it AI: it handles wild actions outside the given choices too ("ask the dragon for career advice").

This article walks through how to build one from start to finish, with copy-paste prompts: a starter prompt you just paste, the parts that decide the fun, genre presets, next-level tricks like dice and saves, and how to fix "the AI goes soft / forgets the state." No programming at all. It's the deep-dive companion to item ⑦ in 15 fun ways to use AI.

🧒 Playing with kids? See AI for kids: 10 fun activities.

The bottom line, in 30 seconds

If you only read one thing

What you need
Just a free AI chat. No coding — paste the starter prompt.
The core of fun
Specify setting, tone, rules, state-tracking, and pacing.
Keep it going
Now and then say "summarize the story and state so far." That's both memory and a save.

1. What it is / why AI is good at it

A text adventure is a game where the situation is described in prose and the player types actions in words to move the story forward. It's an old genre, but you used to be able to pick only the branches prepared in advance. Make a generative AI your GM and that limit disappears — whatever the player says, the story is generated and responds on the spot.

📖 A classic gamebook

Only the prepared choices. No unexpected actions. Branches are finite, all written by the author.

🤖 AI as GM

Declare anything. The AI improvises description, adjudication, and branching. The story is endless.

Why AI fits is simple: improvised description, world consistency, and reading the player's intent are all things language models are good at. On the other hand, managing numbers and fair adjudication are weak spots (covered in ⑤ below). Design around these strengths and weaknesses and it goes well. See also what AI can and can't do.

2. Paste this first: the starter prompt

Never mind the theory — get it moving first. Just copy the starter prompt below and paste it into an AI chat to start playing. ChatGPT, Claude, or Gemini all work. Change only the [ ] parts to taste.

📋 Starter prompt (copy-paste as-is)

You are the game master (GM) of a text adventure. Run it by these rules:
・Setting: [first day at a school of magic] / Tone: [70% wonder, 30% slightly eerie]
・Each turn: ① describe the current scene in 3–5 sentences → ② offer me 3 choices. But I can also declare any free action outside the choices.
・Make the results of my actions realistic within reason (success and failure both possible). Don't just let everything conveniently succeed.
・Show "Inventory" and "HP (start at 10)" briefly at the end of every turn.
・Don't advance too far at once — wait for my input before continuing.
・When I say "Save," summarize the story so far, my location, and my state as bullet points.
Now begin with the opening description.

That alone gets the AI to paint the scene, offer choices, and wait for your input. From there, just type whatever comes to mind — "open the left door," "escape through the window," or "actually, go see the headmaster."

3. The 5 parts that decide the fun

Break down the starter and the fun comes down to these 5 specifications. Tune them and the experience is yours to shape.

① Setting (world)

When, where, what's happening. The more specific, the richer the description. Build tension into the situation — "a space station, 30 minutes of oxygen left" — and it grabs you instantly.

② Tone (atmosphere)

Horror / comedy / serious, etc. Specify it as a blend, "X% / Y%," and you hit the target. Like "80% comedy, 20% horror."

③ Rules (the loop)

"Describe → 3 choices + free action allowed" is the base pattern. State the length per turn, that failure is possible, and that it must not advance on its own.

④ State-tracking

Have it show HP, inventory, time, money at the end of every turn. Visible numbers make it a "game." AI tends to forget numbers, so making them explicit is key.

⑤ Pacing

Specify "don't advance too far; wait for input." Without it, the AI runs the story on its own and it turns into "reading." Protect the player's turn.

When in doubt, just changing ① setting and ② tone is the easy move. ③–⑤ are basically done as-is in the starter.

4. Genre presets

Swap ① and ② in the starter and the mood transforms. Five presets you can copy-paste as-is.

🏰 Fantasy adventure: Setting = day one of a journey toward the mountain where a dragon sleeps / Tone = 90% classic swashbuckling adventure, 10% humor. Give me one companion.
👻 Horror escape: Setting = midnight, locked inside a museum after closing / Tone = 80% slow-building dread, 20% comedy. Track the time left on the clock.
🕵️ Mystery investigation: Setting = a crime at a mansion on a remote island; I'm the detective / Tone = classic whodunit. Decide the culprit and truth in advance and hide them; answer my questions with facts only.
🚀 Sci-fi survival: Setting = a crippled spaceship, 60 minutes of oxygen left / Tone = tense hard sci-fi. Bad decisions consume oxygen and time.
☕ Cozy slice-of-life: Setting = running a small-town café for a day / Tone = 90% wholesome and soothing. Bring in one quirky regular customer each turn.

On an AI that can generate images, asking "draw an illustration of this scene" at key moments boosts the immersion. See how to get started with image generation AI for the basics.

5. Level up: dice, stats, saves

Once you're comfortable, adding these "modules" to the starter makes it feel much more like a game. Add only what you need.

🎲 Add luck with dice

AI is bad at fair randomness, so state the rule explicitly and have it adjudicate. Example add-on:

For every important action, roll one 1–20 (you decide and show it): 10+ is a success, 9 or lower is a failure, and reflect that in the outcome. Give a special flourish on doubles or a 1/20.

📊 Give me stats and levels

Assign me three stats — Strength, Agility, Wisdom (1–5 each). Factor the relevant stat into action checks. Good choices earn XP; at 5 XP one stat goes up.

💾 Save & resume (the key to long play, even on a free plan)

As the chat gets long, the AI forgets the older parts. Have it summarize the state at breakpoints and copy it to your notes, and you can resume another day.

"Save": compile the story so far, my location, inventory, HP, and open objectives into a bulleted "save file." / To resume: "Resume from this save file: [paste]".

6. Fixing it when it goes wrong

SymptomFix (say it verbatim)
Too soft / everything succeeds"Add more failure and cost. Don't let things succeed just because it's convenient."
Runs the story on its own"One turn at a time. After the scene and choices, always wait for my input."
Feels like a single track"Make the story actually change based on my action. Respect actions outside the choices."
Too long / too short"Keep the description to 3–5 sentences per turn." (adjust to taste)
Forgets HP or inventory"At the end of every turn, always show the state (HP, inventory)."
World keeps drifting"If a contradiction appears, treat the most recent setting as correct and reconcile."

The trick is to correct it on the spot. A "note" to the GM always lands. The knack for good notes is exactly what the practical prompt engineering guide teaches.

7. Playing long / resuming later

  • Save at breakpoints: use the "Save" from ⑤ to get a summary and paste it into your notes. Even if you hit a free-plan limit, you can resume from there the next day.
  • Use chapters: declaring "that's it for today; next time start from Chapter 2" helps the AI segment the story and remember it.
  • Move to a new chat when it gets long: an overgrown conversation causes forgetting and lag. Paste the save file into a new chat to "move house" comfortably.
  • Aim for multiple endings: asking up front for "several endings that branch based on my actions" makes replays fun.

Things to keep in mind

  • It's fiction: AI mixes in convincing falsehoods (hallucinations). Don't believe in-story "history" or "facts" as truth. See what AI can and can't do.
  • Don't blend in too much personal info: go easy on real names, addresses, and real-world details. See information you shouldn't put into AI.
  • An adult should join in when kids play: services have age limits (13+ with guardian consent, etc., per their terms). For horror and the like, set the tone to "not too scary" and check the content first.
  • Avoid overly violent or inappropriate turns: keep it within safe fun. If it drifts, correct immediately with "keep it a more wholesome tone."

Summary

  • Making one is easy: just paste the starter prompt into a free AI. No programming.
  • The fun is in 5 parts: setting, tone, rules, state-tracking, pacing. When in doubt, change only ① setting and ② tone.
  • Level up: add dice, stats, and saves to go full-featured. Number management is AI's weak spot, so back it with explicit instructions.
  • The key to long play is saving: summarize at breakpoints and copy it. Move to a new chat and you can play on forever, even for free.

With a single line you type, the story can roll anywhere. Copy the starter prompt and spin up a world tonight. On a day you want something lighter, see 30 fun prompts to ask AI.

FAQ

Q. Do I need programming or an app?

No. You can play just by pasting a prompt into an ordinary AI chat (ChatGPT, Claude, Gemini, etc.). A free plan is plenty. Only for long play, use saving (copying the state summary).

Q. Which AI is best suited?

Any of them works, but consistency over a long story and richness of description shape the experience. Try pasting the same starter prompt into ChatGPT, Claude, and Gemini and compare "GM compatibility." Models that hold context longer have an edge in intricate stories.

Q. It advances too fast / feels like a single track

Both are fixed by re-specifying the rules. If it rushes, say "one turn at a time, wait for my input"; if it's on rails, say "make the story actually change based on my action, and respect actions outside the choices." Notes to the GM are always valid (see the table in section 6).

Q. The AI forgets HP or items

Language models are bad at managing numbers. Specify "at the end of every turn, always show the state (HP, inventory)", and if it still drifts, hand it the latest values with "the correct current state is this: [paste]" to reconcile. Keeping your own note of important numbers is the safe move.

Q. I want to know other ways to play with AI too

For a broad view of play modes, see 15 fun ways to use AI; for a copy-paste prompt collection, 30 fun prompts to ask AI; and to sharpen your prompting, the practical prompt engineering guide.