AI Dungeon Master: How to Play D&D Solo (Prompt + Example Session)

By Updated 14 min read

An AI dungeon master can run the story of a solo D&D game: it describes the world, plays everyone you meet and calls for checks. You control your hero, roll the dice and track hit points, gold and gear. Put that split in one prompt, keep a short character sheet, and play. Set up your AI dungeon master in aimy.

A tracker with a bow holds a twenty-sided die by an old stone bridge, a glowing speech bubble lighting the far bank
Illustration generated with AI

Key takeaways

  • Give the AI the storytelling: descriptions, other characters, twists. Keep the dice, hit points, gold and gear on your side.
  • Agree on the rules before the first scene: who writes your hero, who rolls, who changes the numbers.
  • Don't treat a number the model writes as a fair roll: use a physical d20 or a dice app.
  • A six-field character sheet and a five-field campaign log keep the game on track between sessions.
  • Give each session one goal: scout the road, find someone, strike a deal.
Contents
  1. Can AI be a dungeon master?
  2. How do you play D&D solo with an AI dungeon master?
  3. What's a good AI dungeon master prompt for ChatGPT or Gemini?
  4. What does a solo session with an AI DM look like?
  5. Who rolls the dice when the DM is an AI?
  6. How do you make a character sheet for AI D&D?
  7. How do you keep a solo campaign going past one night?
  8. What if the AI dungeon master gets something wrong?
  9. Where can you play D&D with an AI for free?
  10. Bottom line

Can AI be a dungeon master?

Yes, as long as you don't ask it to do the whole job. A dungeon master does two kinds of work. One is storytelling: describing the cave, playing the innkeeper, deciding what happens when your hero climbs in through a window. The other is bookkeeping: how many hit points the goblin has left, how much gold is in the purse, whether a spell is even allowed at third level.

Language models handle the first kind well. A 2023 paper in Nature describes dialogue models through the lens of role-play: the model plays the part the conversation sets up. A narrator who voices a whole world is one more part. If you'd rather skip dice and sheets, these fantasy roleplay ideas give a narrator a ready world to run. For a lighter game with one goal, a turn limit and clear win and lose conditions, try an AI text adventure. The researchers behind CALYPSO tested models as assistants to human DMs, who used both text they could read straight to the table and rough ideas to brainstorm from, while the creative decisions stayed with them.

The second kind of work is where things slip. When researchers at UC San Diego tested models on D&D combat for a NeurIPS 2025 paper, they paired them with a rules engine that, in the words of the university's write-up, "acted as a guardrail to minimize hallucinations," and they scored how well each model kept track of resources and actions. One community guide to solo play with AI lands in the same place: you roll everything and handle the math, and the AI works as a co-DM for narration and characters.

In a plain chat without connected tools, that engine is you: you check the rules, roll the dice and keep the sheet.

Job Who handles it Why
Descriptions and atmosphere AI Ask for as much detail as you like
Other characters and dialogue AI Ask it to voice every NPC
Plot twists AI suggests, you decide Ideas from the model, choices yours
What your hero says and does You Otherwise the AI plays for you
Dice You Models are poor at random numbers
HP, gold and gear You Your sheet settles any mismatch
Difficulty of a check AI, before the roll So the result isn't bent to fit the number

It costs you a few seconds per roll and a short update when something changes. In return, your sheet becomes the record you check whenever the DM adds a reward or a wound out of nowhere. For rewards worth tracking, pick from these magic item ideas with built-in drawbacks.

How do you play D&D solo with an AI dungeon master?

Setup has six steps. After that it's a regular chat: you take a turn, the DM answers.

  1. Pick where to play. A general chatbot or a character app where you can build your own DM. The difference is covered near the end of this guide.
  2. Give the DM its rules. One block of text that says who writes what, who rolls and what tone you want. The template is in the next section.
  3. Make a character sheet. Six fields: who your hero is, ability scores, hit points, skills, gear and a goal.
  4. Pick a hook. Short, with a clear goal: scout a road, find someone who went missing, strike a deal. Ready-made hooks are in the fantasy section of our roleplay plot ideas.
  5. Start the scene. In a chatbot, send the rules, your sheet and the hook in one message, ending with "Open the scene and wait for my move." If your character DM has already opened the scene, reply with your sheet and your first move. The turn format is the same as in how to roleplay with AI: actions in asterisks, out-of-character notes in double parentheses.
  6. Roll when the DM asks. It names the check and the Difficulty Class (DC), then waits. You roll and post the total.

When a resolved action changes your HP, gold or gear, write the new numbers in your next message: "HP 22/28. Arrows 17." No change, no update. For a simple adventure like the one in this guide, that's enough bookkeeping.

You don't need to read a full rulebook first. The core of a check is enough: a twenty-sided die plus your hero's bonus, and a total equal to or higher than the DC succeeds. For full 5e play with spells and conditions, look up the details in the free System Reference Document 5.2.1. It covers the revised 5e rules and is on D&D Beyond under a Creative Commons license (CC BY 4.0), in English, German, Spanish, French and Italian.

Need a premise for the first session? Try these campaign hooks with clues and one-shot variations.

For a different way to handle uncertainty, the tabletop roleplaying guide includes a solo oracle you can use yourself.

What's a good AI dungeon master prompt for ChatGPT or Gemini?

A good DM prompt isn't a long essay. It's an agreement about who does what and how a turn works, and short rules are easier to repeat when a long game drifts.

Copy the template below and fill in the brackets. It's written about "the player" and "the DM," so it works both as your first message in a chatbot and as a character's description in a character app.

Solo fantasy adventure
inspired by D&D 5e.
You are the DM. The player
controls one hero. The DM
describes the world, plays
every other character and
calls for checks. All
characters are fictional
adults.

Rules:
1. Only the player writes the
hero's words and actions.
2. When the outcome is
uncertain and failure
matters, the DM names the
check and the DC, then stops
and waits. The player rolls
a d20, adds the bonus and
posts the total. Equal to or
above the DC succeeds. On a
miss, the attempt fails, but
the story finds a way on.
3. The player rolls all dice
for both sides, attacks
included.
4. The player keeps the sheet
and posts new HP, gold and
gear after a change. The DM
can object out of character.
5. Clues should fit the
scene. Valuable rewards need
an owner, a promise or a
place set up earlier. Nothing
goes on the sheet unless the
player agrees.
6. Unless waiting for a roll,
the DM replies in 1-2
paragraphs and ends on a
situation for the player.
7. Text in ((double
parentheses)) is out of
character.

World: [setting in 2-3
sentences].
Tone: [adventure / grim /
cozy]. Danger is real, no
graphic violence.

Why these rules:

  • Rule 1 keeps your hero yours. If the model writes your character's lines anyway, here's how to stop the AI talking for you.
  • Rule 2 puts chance in your hands. Naming the DC before the roll is a table agreement, not an official requirement, but it means the target can't be adjusted after you roll.
  • Rule 3 covers combat, where a model that rolls for monsters quietly decides how the fight goes.
  • Rule 4 ends arguments about numbers: the latest totals are always in your own messages.
  • Rule 5 keeps an unexpected magic sword off your sheet.
  • Rule 6 sets the pace of the chat and makes sure every reply gives you something to do.
  • Rule 7 separates table talk from the story, so a question to the DM isn't read as your hero speaking. New to the term? Here's what OOC means in roleplay.

Change the tone and genre to suit you, and set boundaries up front: what to show and what to keep off-screen. Before you play, check the rules of the service you use for what it allows.

In ChatGPT, Gemini or Claude, paste the template as your first message, add your character sheet and the hook, and end with "Open the scene and wait for my move." In a character app, the template goes into the DM's description, and your sheet goes into your first message. If you want the rules to stick across a long ChatGPT chat, our ChatGPT roleplay prompt guide covers where a prompt can live.

If your DM lives in a character description, give it a personality as well: "speaks briefly, likes to drop hints, never solves a riddle for you." For help defining the DM's style, see how to write an AI character.

What does a solo session with an AI DM look like?

Here's a short exchange written for this guide to show the format. It isn't a recorded session, and a real DM will word things differently. The prompt above is in place, the hero is Wren, a hired tracker, and the hook is a caravan stuck at an old stone bridge.

DM (opening scene):

Rain has turned the road into mud. Six wagons stand nose to tail in front of the old stone bridge, and the river below runs high and brown. A broad woman in an oilskin coat, the caravan master Orla Venn, is arguing with her drivers. On the far bank, the road disappears into pine woods. Somewhere in there, a scout she sent at dawn hasn't come back. Orla spots your bow. "You. Can you track?"

You:

Wren nods and walks to the edge of the bridge, studying the mud on the far side. I can. What did your scout look like, and which way did he go?

DM:

"Tall, red scarf, name's Bram. Took the road straight into the trees." Orla points. From where you stand, the mud on the far bank is churned up, as if more than one person passed. To read the tracks from here, make a Survival check, DC 15.

You:

Survival: 9 + 4 = 13.

DM:

The rain has blurred too much. You can tell that several people crossed, some of them heavy, but not which way they went. You'll need to get closer. Orla holds out a folded sheet. "Map of the far bank. One gold, and it's yours." Below you, water pushes through a gap under the first stone of the bridge. It rocks in the current. What do you do?

You:

Wren hands Orla a coin and tucks the map into her coat, then tests the first stone with her boot. ((Gold 12 → 11 gp, +map of the far bank. If Wren takes it slow, does she still need a roll?))

DM:

((Taking it slow is enough for the first stones. The broken one in the middle needs an Acrobatics check, DC 10.))

Notice what each side did. The DM named the check and the DC before the roll, turned a failure into partial information instead of a dead end, and ended each reply on something to react to. You chose how Wren acted, rolled, did the math and updated the sheet. The DM decided whether the risk called for another roll.

Now a slip, because they happen. Later in the scene, the DM writes: "Under a rotten log you find a silver longsword glowing with blue runes." Nothing in the scene set that up, so rule 5 is broken. The fix is one line:

((Rule 5: that sword has no source in the scene. Let's swap it for something a missing scout would leave behind.))

The DM swaps the sword for Bram's broken compass and a trail of red thread on a branch, and the game goes on.

If you'd like to play this scene yourself, create a DM for the bridge scene.

Who rolls the dice when the DM is an AI?

You do. A language model can type "you rolled a 17," but you shouldn't treat that as a fair roll. In a 2026 study called "Large Language Models Are Bad Dice Players," accepted at the ACL 2026 conference, researchers asked 11 models to produce random numbers from different distributions. When each number came from a separate request, 10 of the 11 models failed to match any of the distributions tested, and the authors conclude that tasks needing real randomness call for external tools.

For your game, the practical takeaway is simple: keep the dice out of the model's hands.

A three-step roll protocol:

  1. The DM names the check and DC before the roll. "Stealth check, DC 15." If it doesn't, ask in a note.
  2. You roll a d20 and add your bonus. A physical die or any dice app. Post the total: "Stealth: 11 + 5 = 16."
  3. The DM describes the outcome. Equal to or above the DC succeeds. Below it, the attempt fails, the story still moves on, and the DC doesn't change after the fact.

For a quick benchmark, D&D 5e uses DC 10 for an easy check, 15 for a medium one and 20 for a hard one. Ask the DM to stick to that scale unless the scene clearly calls for something else.

Combat in chat. Full rules combat by text gets tiring: initiative, positions, dozens of numbers. If you want something lighter, try this house rule for one enemy at a time. Before the fight, the DM states the enemy's Armor Class (AC), attack bonus, the fixed damage it deals on a hit and how many wounds it can take:

Enemy Wounds to defeat Example
Weak 1 A novice bandit, a giant rat
Regular 2 A mercenary, a wolf
Tough 4 A gang leader, a troll

Then take turns, starting with whoever acted first in the scene. For both sides, roll a d20 plus the attack bonus against the target's AC; equal or higher hits. A natural 20 always hits, a natural 1 always misses.

  • Your hit: one wound, two on a natural 20. Don't roll weapon damage.
  • The enemy's hit: your hero loses the fixed damage the DM named.
  • The fight ends when the enemy runs out of wounds, gives up or flees, or your hero drops to 0 HP.

Here's one exchange. The DM declares: "Mercenary: AC 13, +4 to hit, 4 damage on a hit, 2 wounds." Wren shoots: 8 + 5 = 13, a hit, one wound of two. The mercenary swings back: 7 + 4 = 11 against Wren's AC 14, a miss. The DM narrates both swings.

To use the house rule, add this block to your prompt under rule 3:

Fights: one enemy at a time.
Before any roll, the DM
states its AC, attack bonus,
fixed damage and wounds
(1, 2 or 4).
Whoever acts first goes
first, then alternate.
The player rolls both sides:
d20 + attack bonus vs AC.
A tie hits. A natural 1
misses; a natural 20 hits.
Hero hit: 1 wound, 2 on a
natural 20.
Enemy hit: the fixed damage
comes off the hero's HP,
even on a natural 20.
Stop at the wound limit,
0 HP, surrender or flight.

It isn't an official rule, and "tough" doesn't promise the fight is balanced for one hero.

How do you make a character sheet for AI D&D?

A sheet for chat doesn't have to copy the paper one. The DM needs what affects the scene: who your hero is, what they're good at, how much they can take and what they're carrying. Keep the rest in your own notes.

A six-field template (ability scores in the usual order, Strength to Charisma):

Wren Calloway, 34, level 3
ranger. Quiet, doesn't trust
wizards.
STR 12 DEX 16 CON 14 INT 10
WIS 14 CHA 8
HP 28/28 · AC 14 (leather)
Skills: Stealth +5, Survival
+4, Perception +4. Longbow +5
Gear: longbow, 20 arrows,
shortsword, rope, 12 gp
Goal: find her brother, who
left with a caravan and never
came back.

For a first session, you can use Wren's sheet as written. A skill that isn't listed uses the plain ability bonus: for the bridge check, Acrobatics runs on Dexterity, so Wren's DEX 16 gives her +3, and she rolls d20 + 3.

The last line matters most. A goal gives the DM material: leads, encounters, people who know something. A hero without one just wanders.

How to use the sheet during play:

  • Send it in your first turn: together with the DM rules and the hook in a chatbot, or with your first move if your character DM has already opened the scene.
  • Post new numbers after a change: "HP 22/28. Arrows 17. Gold 16 gp."
  • Repost the full sheet at the start of each session and after a big change: a new level, a lost sword, an important item.

If the DM says Wren lights a torch she doesn't own, correct it in a note: ((No torch on Wren's sheet. She looks for something else to light the way.)) Small contradictions add up, and the world starts to feel less real.

When your own hero's sheet is ready, open a new campaign with your hero's sheet in the first turn and make your first move.

For a smaller cast, a single narrator can play several characters in one chat and leave the player's decisions open.

How do you keep a solo campaign going past one night?

Long chats are the AI dungeon master's weak spot. A model works with a limited amount of text at once, so early details may no longer be available to it: the DM forgets a wound, a promise or the innkeeper's name. The reasons are explained in why AI chatbots forget.

A campaign log helps. It's a short recap you paste at the start of each session:

((Campaign log.
Location: …
Last event: …
People and promises: …
Open questions: …
Next: …))

Paste your current sheet under it and end with the question you're picking up from. Places and factions that don't change belong in a lorebook, if your app has one, rather than in the log. Five fields, one message, and the DM has everything important in front of it. For a longer campaign, the fantasy version of our roleplay memory summary template expands the log.

Second rule: one session, one goal. Scout the road, question a witness, get out of the ruins. When the goal is reached, end with Wren's decision and record what changed in the log. Sessions without a goal drift, and the DM starts repeating descriptions and offering the same choices. If that has already started, see why AI keeps repeating itself.

Third: forks instead of open searching. If you don't know where to go next, ask: ((Give me three short leads for where to go next. I'll pick.)) The DM supplies the ideas, the choice stays yours.

For a first session, pick a short hook with a clear goal and one or two checks along the way. Here's one you can start from:

What if the AI dungeon master gets something wrong?

It will. In a text-only setup, the world exists only in the chat, so check the DM's account against your notes. Most slips take one line to fix, without restarting the game.

What goes wrong What to try
Hands out gold and items for free ((Rule 5: no free loot. Let's swap the sword.))
Forgets a wound or a loss Post the new numbers, then the campaign log
Rolls the dice itself ((I roll the dice. Name the check and the DC.))
Writes for your hero ((Only I write Wren's words and actions.))
Everything succeeds, no risk ((Make failure cost something: time, a wound, noise.))
An enemy "dies" too early ((The gang leader still has two wounds. The fight goes on.))
Repeats descriptions Change the goal of the scene or the place

If mistakes pile up, a rule may have gotten lost at the start of a long chat. Repost the rules with the campaign log; it's easier than starting over.

The trickier slip is when the DM quietly changes the world: the inn moves to the other side of the river, the innkeeper has a new name. Add details like these to the log as soon as they come up. If the DM still gets one wrong, correct it gently: ((The innkeeper's name is Hollis, we've met before.))

Where can you play D&D with an AI for free?

Free: 100 messages a day and your first AI character of your own on aimy.chat, and that character can be your DM. Put the prompt and the world in the character's description: a long text fits into the character description (with PRO, up to 2,000 characters per field). For the opening scene, the chat opens with a greeting the character writes itself from its description, and creator beta testers with PRO can also write the first message by hand, so Orla's question at the bridge can be the first thing you see. Your character sheet and campaign log go in your messages, so the rules of the game stay yours. Under the hood it's an ordinary AI roleplay chat, with the DM as the character you talk to.

If you want to try it, create your solo Dungeon Master.

Beyond that, there are three kinds of tools, and each has a trade-off. Free limits differ from service to service, so check the current plan where you play.

Where Pros Cons
General chatbot Paste the prompt and start In a new chat, you paste the setup again
Character app The DM is a separate character with its own manner You still keep the rules and numbers
Dedicated D&D tool Built around rules and dice Check whether rolls and HP updates happen in code

If you'd rather skip rules and dice and just play a story with choices, try the narrator-style ideas in our AI roleplay ideas list.

Bottom line

An AI dungeon master is a good storyteller and an unreliable bookkeeper. Give it descriptions, other characters and twists, and keep the dice, hit points, gold and gear for yourself.

For a solo campaign you need four things: a DM prompt that sets the rules, a six-field character sheet, a roll protocol ("DC before the roll, I roll"), and a campaign log at the start of every session. Give each session one goal. When the DM slips, fix it with one line in double parentheses and keep playing.

Build your Dungeon Master and start a campaign

Roleplay without lectures · one-click sign-in

Free: 100 messages a day and your first AI character of your own

Or with

400,000+ sign-ups · 18+

By continuing, you agree to the Terms and Privacy Policy.

FAQ

Can AI replace a human dungeon master for a group?

Not fully. In a group, the model has to keep several heroes, their actions and their numbers straight, and it can lose track of who did what. If your group wants to try, pick one person to send everyone's declared actions together in one message, let each player roll their own dice, and name one human who settles any ruling.

Can ChatGPT be a dungeon master?

Yes, for the story side. Paste a DM prompt as your first message, add your character sheet, and make your first move. You can use the same prompt as a first message in Gemini or Claude, or as a character description in a character app. Keep the dice on your side, and if the DM drifts in a long chat, repost the rules with a short recap of the campaign.

Can an AI roll dice for D&D?

A chatbot can type a number, but you shouldn't treat it as a fair roll. In a 2026 study presented at ACL 2026, 10 of 11 language models failed to match any of the tested distributions when each number came from a separate request, and the authors point to external tools for real randomness. Roll a physical die or use a dice app, then type the total into the chat.

Do I need to know the D&D rules to play with an AI?

Not for a simple adventure like the one in this guide. You need three ideas: your hero has ability scores and skills, a risky action is checked with a twenty-sided die plus a bonus, and a total equal to or higher than the Difficulty Class succeeds. For full 5e play, look up rules questions in the free System Reference Document 5.2.1, which is on D&D Beyond under a Creative Commons license.

Is AI Dungeon the same as an AI dungeon master?

No. AI Dungeon is the name of one particular AI text-adventure game. An AI dungeon master is any AI model you ask to run a tabletop-style game for you, in a general chatbot or in a character app.

How do I continue a campaign the next day?

Start the session with a campaign log: where your hero is, what happened last, who they met and what they promised, open questions and what happens next. Add your current character sheet and end with the question you're picking up from. The DM then gets everything important in one message, even if older details have dropped out of the chat.

Sources

  1. Role play with large language models — Nature (M. Shanahan, K. McDonell, L. Reynolds),
  2. CALYPSO: LLMs as Dungeon Masters' Assistants — arXiv, AIIDE 2023 (A. Zhu, L. Martin, A. Head, C. Callison-Burch),
  3. Large Language Models Are Bad Dice Players: LLMs Struggle to Generate Random Numbers from Statistical Distributions — arXiv; ACL 2026 (M. Zhao, Y. Du, M. Wang),
  4. From chatbots to dice rolls: Researchers use D&D to test AI's long-term decision-making abilities — UC San Diego Today (on the NeurIPS 2025 paper "Setting the DC"),
  5. System Reference Document 5.2.1 — D&D Beyond, Wizards of the Coast,
  6. Statuo's Guide to Using AI to Play Tabletop RPG's Solo — Community guide (rentry)
What changed
  • — First version.
  • — Added links to new related guides.

What next

What nextAI Roleplay Ideas: 60 Scenarios to Try With an AI Character

Related articles

All articles

Continue in aimy

Free: 100 messages a day and your first AI character of your own

Or with

400,000+ sign-ups · 18+

By continuing, you agree to the Terms and Privacy Policy.