Agartha Awakens: The Hidden Kingdom

Agartha Awakens: The Hidden Kingdom · GPT-Aktionen

Wix GPT Integration - Data Retrieval

An action to retrieve data from a Wix collection, focusing on specific game information.

  • GET /gptWebhookRetrieve data from Wix Collection
Ursprüngliches API-Schema
{
  "openapi": "3.0.1",
  "info": {
    "title": "Wix GPT Integration - Data Retrieval",
    "description": "An action to retrieve data from a Wix collection, focusing on specific game information.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://tinycorp.ai/_functions/"
    }
  ],
  "paths": {
    "/gptWebhook": {
      "get": {
        "operationId": "getData",
        "summary": "Retrieve data from Wix Collection",
        "parameters": [
          {
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Title of the game to search for in the collection. This fetches the specific game's data."
          }
        ],
        "responses": {
          "200": {
            "description": "Data retrieval successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "gptPrompt": {
                      "type": "string"
                    },
                    "gptList": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string"
                          },
                          "gptPrompt": {
                            "type": "string"
                          },
                          "genre": {
                            "type": "string"
                          },
                          "GPTName": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Wix GPT Integration

An action to save data from GPT to a Wix collection.

  • POST /gptWebhookSave data to Wix Collection
Ursprüngliches API-Schema
{
  "openapi": "3.0.1",
  "info": {
    "title": "Wix GPT Integration",
    "description": "An action to save data from GPT to a Wix collection.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://www.tinycorp.ai/_functions/"
    }
  ],
  "paths": {
    "/gptWebhook": {
      "post": {
        "operationId": "saveData",
        "summary": "Save data to Wix Collection",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "prompt",
                  "gptName",
                  "videoPrompt",
                  "audioPrompt",
                  "musicPrompt",
                  "dialogue"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "description": "The main prompt from the user, required to initiate the creation process. This serves as the central piece of content around which the GPT's response is built."
                  },
                  "gptName": {
                    "type": "string",
                    "description": "The title of the GPT whose instructions are being run. This identifies the specific GPT simulation, game, or set of literary instructions in use."
                  },
                  "videoPrompt": {
                    "type": "string",
                    "description": "A prompt specifically for expressing the current gameplay scene or context, used to create or select relevant video content."
                  },
                  "audioPrompt": {
                    "type": "string",
                    "description": "A prompt for creating or selecting game-related audio content, such as sound effects or voice-overs."
                  },
                  "musicPrompt": {
                    "type": "string",
                    "description": "A prompt for creating or selecting background music to enhance the gameplay or visual content experience."
                  },
                  "dialogue": {
                    "type": "string",
                    "description": "A specific dialogue or script to be used within the game or content, highlighting interactions or narrative elements."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Data saved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "id": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}