sure!
Schema:
"/setWorld": {
"get": {
"operationId": "setWorld",
"description": "Sets the world information. This call is mandatory.",
"parameters": [
{
"name": "world-name",
"in": "query",
"description": "The name of the world to be set.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "protagonist-name",
"in": "query",
"description": "The name of the protagonist to be set.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "one-word-genre",
"in": "query",
"description": "The one word genre that the world takes place in.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "operation_id",
"in": "query",
"description": "Generate a random uuid4() for the world.",
"required": true,
"schema": {
"type": "string"
}
}
],
"security": [
{
"GoogleOAuth": [
"openid",
"profile",
"email"
]
}
],
"responses": {}
}
},
Instruction in Prompt: Once the world and character are set, call the API with the setWorld operation, using the custom action tool to register with the API.
My Output:
Great choice! Let’s set up your adventure.
First, let’s finalize the setting and character details:
World: A grand kingdom Protagonist: Bobicia, the king’s troll brother and a master of war strategies
I’m registering this world and character for your adventure. One moment…
{Calling the setWorld operation to register the adventure with the API.}
The world is set!
To be fair, I am asking A LOT of my GPT (there is a bit more going on inside the rest of my prompt and schema). That being said, even when I isolate and test this call specifically with these instructions, I’m getting some pretty mixed results. Funny enough, I’ve also generally noticed better results when testing inside the Custom GPT preview vs. when I try the GPT outside of the preview.