D&D · Gaming · Roleplay
How to Use AI for Dungeons & Dragons and Tabletop RPGs
Tabletop roleplaying games have found an extraordinary companion in AI. Dungeon Masters use it to generate detailed NPCs, create encounter tables, build world lore on the fly, improvise plot twists when players go off-script, and design dungeons and locations with the kind of rich detail that takes hours to write manually. Players use it to develop character backstories, think through tactical decisions, write in-character journal entries, and get into the fiction more deeply between sessions. AI is also genuinely useful as a solo play GM, running the narrative side of a one-player game where there is no human DM available. The result is richer, more responsive games with less prep time.
5 Best Prompts for Dungeons & Dragons to Ask Claude or ChatGPT
Copy any prompt below and paste it directly into your AI of choice.
-
Prompt 01 · Generate an NPC
"I need a memorable NPC for my D&D campaign. They are a [role: tavern keeper / corrupt guard captain / mysterious sage / traveling merchant] in a [setting: dark fantasy / high magic / grimdark / whimsical] world. Can you give me: their name, appearance, personality, speech mannerism, secret motivation, and 3 things they might say to the players?"
Best for: creating NPCs that feel like real people rather than quest dispensers.
-
Prompt 02 · Improvise when players go off-script
"My players just did something completely unexpected: [describe what happened]. I need to improvise a consequence or development that: fits the tone of my campaign [describe tone], makes the players feel their choice mattered, and creates an interesting new situation. What happens next?"
Best for: the DM panic of players derailing your carefully prepared session.
-
Prompt 03 · Build a location
"I need a detailed description of [location: abandoned mine / fey forest / underwater temple / city slum] for my players to explore. Can you give me: an atmospheric description to read aloud when they arrive, 3-5 interesting features or rooms with potential for encounters or discovery, and 2-3 secrets hidden in the location?"
Best for: generating vivid, explorable locations with enough detail to run without additional prep.
-
Prompt 04 · Develop a character backstory
"I am playing a [race] [class] in a [setting] campaign. Here are the broad strokes of their background: [describe]. Can you help me develop a rich backstory that includes: a formative childhood event, a defining choice they made, a secret they carry, a motivation that drives them, and a character flaw that will create interesting roleplay moments?"
Best for: building a character with genuine depth rather than a list of stats and a vague tragic past.
-
Prompt 05 · Solo play session
"I want to play a solo D&D-style adventure. You are the Game Master. I am playing [character description]. Start me in [opening scene] and run the game interactively -- describe what I see, let me make choices, and resolve my actions using D&D logic. When I need to roll dice, tell me what to roll and what different outcomes mean."
Best for: getting your tabletop fix when you do not have a group or a DM available.