Guide · How-to

How to play D&D with ChatGPT Run a campaign with ChatGPT, and keep the dice honest.

How to set ChatGPT up as the dungeon master for a solo Dungeons & Dragons campaign: a project for the campaign, the free rules reference to give it, a character sheet it can use, dice you can trust, fights that keep moving, and a log that carries each session into the next. Then, why many players run long campaigns on LoreWeaver, where dice, trackers, and campaign memory are built in.

Written by
The LoreWeaver team
Updated
October 30, 2026
Reading time
9 minutes
A cloaked traveller on a broken stone bridge in the mist as a grey dragon climbs out of the gorge beside it

The short answer

Can you play D&D with ChatGPT as the dungeon master?

Yes. Create a ChatGPT project for the campaign, put your table rules in its instructions (tone, how dice work, and that ChatGPT never decides for your character), and add the free SRD 5.2.1 rules reference and your character sheet as files. Roll real dice and type the results, keep fights to one round per reply, and end each session with a log entry, so the next session can start in a fresh chat. On LoreWeaver, the Loom rolls real dice and tracks HP, quests, and inventory, and memories of the campaign are written for you every 4 replies.

Updated

the D&D rules reference Wizards of the Coast publishes free under CC BY 4.0
5.2.1
ready-made Loom templates on LoreWeaver, dice combat and skill checks among them
53
replies between the campaign memories LoreWeaver writes
4
replies to try a fantasy world as a guest
20

What ChatGPT handles, and what stays with you

ChatGPT makes a lively dungeon master for one player. It describes places vividly, gives every NPC a voice, improvises when you try something nobody planned for, and is ready whenever you are. A few jobs work better in your hands:

  • The rules. It knows the game’s broad strokes, and its rulings on a particular spell or condition can still be wrong. Give it the rules reference below, and keep the final word yourself.
  • The dice. A roll that ChatGPT simply writes into a reply was picked by the model. Roll for real; there’s a section on it below.
  • The bookkeeping. Hit points, spell slots, gold, and quest notes drift in a long chat unless something keeps them.
  • The memory. A campaign runs for weeks, far longer than any chat can keep in view at once.

Everything here works in a ChatGPT project, which keeps one campaign’s instructions, files, and chats together. For the craft of solo play in general, see how to play D&D solo with an AI game master.

Set up the campaign as a project

Create a project for the campaign, choose project-only memory so it stays apart from your other chats, and write your table rules into the project instructions. Custom instructions are a poor fit for a campaign: they apply to every chat, and hold 1,500 characters on ChatGPT’s Free and Go plans.

A DM brief to paste and adjust:

Change the content line to your own limits. The rest is a starting point; after the first session, adjust whatever didn’t feel right.

Give ChatGPT the rules: the free SRD

Wizards of the Coast publishes the D&D System Reference Document, SRD 5.2.1, as a free download under a Creative Commons license (CC BY 4.0). It draws on the 2024 core rulebooks, with classes, species, spells, magic items, and monsters, which covers most of what a solo game asks about. Download it from D&D Beyond, add it to the project’s files, and ask ChatGPT to check it before ruling:

  • [Before you rule on grappling, check the SRD file and give me the rule in one sentence.]
  • [Use the ogre stat block from the SRD file. Don’t invent one.]
  • [What does the frightened condition do? Answer from the SRD file, then go back to the scene.]

The SRD leaves out much of what’s in the published books, and ChatGPT can still misread a rule, so treat its answers as a quick check and make the call yourself. House rules belong in the project instructions, with a line saying they override the SRD.

A character sheet ChatGPT can use

Add your sheet to the project as a short text file, and keep only what comes up in play:

Two habits keep the numbers straight:

  • A status block every round. The brief asks for one in combat; correct it the moment it’s wrong.
  • Update the file between sessions. Level-ups, new gear, and spent gold go into the sheet, so the next chat starts from the right numbers.

Dice you can trust

A d20 roll only means something if chance decides it. When ChatGPT writes a roll into a reply without running any code, the model picked that number. Keep the rolling on your side of the table:

  1. ChatGPT names the check and the DC first. The brief asks for both before you roll, so the target can’t shift after the fact.
  2. You roll real dice. Physical dice or any dice app, then type the result: “Stealth: 13 + 7 = 20.”
  3. ChatGPT narrates the outcome. Success, failure, or success at a cost, decided by your number.

For monsters, let ChatGPT roll, but have it show each roll and modifier, so you can spot a run of suspiciously lucky goblins. If ChatGPT can run code on your plan, you can also ask it to roll with code and show the result, which gives you a random number.

To reset the habit mid-campaign:

Fights that keep moving

Long fights are the hardest part of a chat campaign to keep straight: rounds sprawl across pages, enemies forget their wounds, and your turn gets lost. The status block from the brief fixes most of it. A round should end like this:

A few more habits keep fights brisk:

  • Describe the move before the roll. “I drop off the roof onto Voss, blade first” gives ChatGPT something to narrate whatever the dice say.
  • One round per reply. Your action, each enemy’s answer, the status block, then stop.
  • Let enemies break. Ask ChatGPT to have them flee, bargain, or give up when a fight turns against them.
  • Call the fight when it’s decided. [The thugs scatter. I want to question Voss.]

If you’d rather keep numbers light, tell ChatGPT to settle each exchange with a single check and describe the rest.

Between sessions: a log, then a fresh chat

A campaign outlives any single chat. ChatGPT can only keep so much of a conversation in view, and a session full of rolls and status blocks fills that space quickly. Treat each session as its own chat inside the project, joined by a log:

  1. Stop somewhere safe. A camp, an inn, or a locked door makes a clean place to pick up from.
  2. Ask for the log entry. Use the prompt below.
  3. Update the project files. Add the entry to a Campaign log file, and update the character sheet.
  4. Open the next session in a new chat in the same project, with the opening prompt.

Project-only memory helps here: the project’s chats can draw on each other, and the campaign stays out of your other conversations.

To start the next session:

Dice, trackers, and campaign memory, built in

ChatGPT can run a good table, and the routine above holds a campaign together for a long time. It also leaves the bookkeeping to you: logs, sheets, status blocks, and dice. For campaigns meant to run for months, many players switch to LoreWeaver, where a storyteller runs the world and that work happens around the story:

  • Real dice. The Loom rolls standard notation such as 1d20+5 against a DC you set, shows the roll on screen, and tells the storyteller how it went. Ready-made templates include Dice Combat, Skill Checks, and Attribute Checks.
  • Trackers on screen. Health, XP and levels, mana, gold, quests, and inventory live in the story’s HUD, set up from templates such as Health System, Leveling & XP, Mana & Spellcasting, Coin Purse, Quest Tracker, and Inventory & Keys.
  • Campaign memory. Every 4 replies, LoreWeaver writes memories of what happened and recalls them by meaning, wording, and who is in the scene. A running recap, which you can edit, follows the whole campaign.
  • Lore cards for NPCs and places, which return whenever the story names them. From Plus, Lorekeeper suggests cards for the characters and places the storyteller invents.
  • GPT models, and many more. GPT-6 Luna opens on Plus, and free accounts can play it with their 25 premium replies a day. GPT-6.1 Terra opens on Ultra. There are 43 models in all, with no ChatGPT plan needed.

The AI dungeon master page shows the setup, and the Loom guide covers every dice and tracker option. The Loom comes with every plan, the free one included, and you can play a fantasy world as a guest for 20 replies first. LoreWeaver accounts are for adults, 18 and over.

Dungeons & Dragons and D&D are trademarks of Wizards of the Coast LLC. LoreWeaver isn’t affiliated with or endorsed by Wizards of the Coast, and the names are used here only to describe the game.

Sources

All checked October 30, 2026.

Questions

D&D with ChatGPT, answered.

01Can ChatGPT be a D&D dungeon master?

Yes, for solo play. It can describe the world, voice NPCs, and improvise. Give it a campaign project with your table rules, the free SRD 5.2.1 as a rules file, and your character sheet, and keep the dice and the final word on rules with you.

02Can ChatGPT roll dice fairly?

A roll ChatGPT writes into a reply without running code was picked by the model, so roll real dice or a dice app and type the result. If ChatGPT can run code on your plan, ask it to roll with code and show the result. On LoreWeaver, the Loom rolls real dice against a DC and shows the roll.

03Which D&D rules can I give ChatGPT?

The System Reference Document, SRD 5.2.1, which Wizards of the Coast publishes free under CC BY 4.0 on D&D Beyond. Add it to your campaign project’s files and ask ChatGPT to check it before ruling.

04How do I keep a D&D campaign going across sessions in ChatGPT?

Play each session in its own chat inside one project. End with a log entry, add it to a campaign log file along with your updated character sheet, and open the next session by asking ChatGPT to read both.

05Does ChatGPT remember my character between sessions?

A project with project-only memory lets its chats draw on each other, but the numbers that matter, such as hit points, spell slots, and gold, are safest in a character sheet file that you update after each session.

06Where can I play a long D&D-style campaign with AI?

On LoreWeaver, the Loom rolls dice and tracks HP, quests, and inventory, memories and a running recap follow the campaign, and lore cards hold your NPCs and places. GPT-6 Luna opens on Plus, and free accounts can play it with their 25 premium replies a day. You can try a fantasy world as a guest for 20 replies first.

Keep reading

Pull another thread.

Put it to work

Where this guide leads in LoreWeaver.