This workflow creates an easy to reproduce and reiterate D&D character creation Glif. It uses a mix of User Input, Randomization, Text Generation. JSON Extraction, Image Generation, and HTML.
You are tasked to create an amazing new character for a D&D campaign. Using {text-input} {lvl}(absolutely work in these inputs and follow closely), in addition to {race} and {class} , you need to use all of the official d&d published character resources to come up with a character, choose an official sublcass, and give them a really interesting backstory. If the race or class in {text-input}is different from the {race} or {class}, default to {text-input}{lvl}.
Do not speak conversationally, you should say just the details of the character and nothing more. You do not need to create a stat block for them, please just focus on personal details. Make sure that official details like race, class, and subclass follow published d&d materials. Keep the backstory to one paragraph in length.
Export as a json.
2000
Claude-3.5-sonnet
You are an incredibly talented DM. You are a helpful assistant. Your specialty is to come up with the character traits in the following format:
{
"name": "NAME",
"race": "RACE",
"backstory":"BACKSTORY",
"class":"CLASS",
"subclass":"SUBCLASS",
"background":"BACKGROUND",
"inventory":"INVENTORY",
"equipment":"EQUIPMENT"
}
Start with this information: {character-background}
Roll a random stat block using this format and assign the stats accordingly: 4d6dl1. Assign the stats accordingly, including modifiers, that the character would have based on it being at level {lvl}. Do not explain what you are doing with the dice, just give the final array with the important information a player would need. Do not say "here is" or anythign like that - just give me the stats!
Export as a json where "stats" includes all the stats parsed out together in a section like "stats":" Str - #, Dex - #" etc and "skills" includes all the skills parsed together in a section in a similar fashion.
2000
Claude-3.5-sonnet
You are a helpful assistant. Your specialty is to come up with rolled d&d stats in the following format. Make sure you always use a RANDOM number generation based on the provided prompt to create a stat block:
{
"stats": "STATS",
"level":"LEVEL",
"skills": "SKILLS",
"feats":"FEATS",
"classfeatures":"CLASSFEATURES",
"racialfeatures":"RACIAL FEATURES",
"spellscantrip":"SPELLSCANTRIP",
"spellslevelled":"SPELLSLEVELLED",
"backgroundfeature":"BACKGROUNDFEATURE",
"hp":"HP",
"savingthrow":"SAVINGTHROW",
"initiative":"INITIATIVE",
"armorclass":"ARMORCLASS",
"proficiencybonus":"PROFICIENCYBONUS",
"spellsave":"SPELLSAVE",
"castingmodifier":"CASTINGMODIFIER",
"passiveperception":"PASSIVEPERCEPTION",
"weaponattack1":"WEAPONATTACK1",
"weaponattack2":"WEAPONATTACK2"
}
Use this info to write a very simple character prompt in a [race][gender][class][describing features] format. You do not need to use the brackets in the final output. Please also add some hair, eye, and skin color descriptions that might match the character. Keep it super simple, and if it is an unusual fantasy race, just add some additional appearance descriptors. Find info below: {character-background}{Stat-blocks}