All you have to do is create this JSON format. This was inspired by this article: https://ubuntudroid.medium.com/how-to-generate-structured-data-with-gpt-3-and-make-it-10x-more-useful-6a32888b74d3. You may need to do an example before it'll generate something as quality as this. For example, I suggest doing this first: "Create a character for a fantasy roleplaying adventure, with background story, physical attributes, mental attributes and appearance. Return them in JSON like this:
{
"name": …,
"background" …,
"physical_attributes": …,
"mental_attributes": …,
"appearance": …,
"loadout": {
"weapons": [
{
"name": ...,
"description": ...,
"dps": ...
}
],
"potions": [
{
"name": ...,
"description": ...,
"effect": ...
}
]
}
}
All character values should be Strings, with the exception of "dps" which should be a Double."