I looked into randomly creating an NPC about a year ago with a custom API/Mod Script. I didn't really like how limiting it would be, even if I programmed every little thing and came to realize that in most cases, the NPCs I was creating on the fly were non-combat types. That's when I discovered LLMs like ChatGPT. The new ability to create GPTs, means I can take my master prompt and create a kind of dedicated Chatbot for creating NPCs. I've spent some time perfecting my NPC Generation prompt that builds a semi-random NPC for me on the fly, puts it in Markdown format and generates a portrait, I can quickly upload to Roll20. You can easily copy the text and place it in a handout or your favorite campaign tracking tool (Onenote, Evernote, LegendKeeper, ...). Once it's generated, if I need additional detail like Stat Blocks, Spell List, Quotes they might use, Quirks, Secrets, or Rumors, I just ask ChatGPT for that additional info. Here is an example prompt: Generate an NPC based on a Crazy Human Wizard who is drunk on his own potions. Response: Here is the NPC you requested: A crazy human wizard, infused with the unpredictable effects of his own potions. He is a male with wild, unkempt gray hair and wide, unpredictable eyes that gleam with both excitement and a touch of confusion. His robes are a colorful, chaotic tapestry, stained with the remnants of various potion spills. In one hand, he holds a bubbling, glowing potion, and in the other, a crooked staff inscribed with mysterious runes. The background depicts his cluttered wizard's laboratory, brimming with books, bottles, and mystical artifacts, all bathed in a dim, magical glow emanating from the potion and other enchanted objects. --- **Name:** Alaric the Unpredictable **Race:** Human **Class:** Wizard **Alignment:** Chaotic Neutral **Appearance:** - **Hair:** Wild, unkempt gray - **Eyes:** Wide and unpredictable - **Robes:** Vibrantly colored, potion-stained - **Accessories:** Crooked, rune-inscribed staff; glowing potion **Personality:** - Eccentric and wildly imaginative - Prone to mood swings and unpredictable behavior - Fascinated by the effects and potential of potions **Abilities:** - Expert in potion making, with unexpected results - Skilled in various arcane arts - Unpredictable magic due to potion influence **Backstory:** Alaric was once a disciplined and respected wizard, known for his meticulous research in alchemy and the arcane. However, after an accident involving a potent experimental potion, his mind became as chaotic as his lab. Now, he pursues his potion-making with reckless abandon, often testing the limits of magical and alchemical boundaries, much to the concern (and sometimes amusement) of those around him. **Hook for Adventure:** Alaric could accidentally create a potion with unforeseen effects, leading to an urgent quest to find a rare ingredient to reverse its effects or to contain the chaos it unleashes.