120-in-1 Games, Simulations and Literature

120-in-1 Games, Simulations and Literature · Actions GPT

Wix GPT Integration - Data Retrieval

An action to retrieve data from a Wix collection.

  • GET /gptWebhookRetrieve data from Wix Collection
Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Wix GPT Integration - Data Retrieval",
    "description": "An action to retrieve data from a Wix collection.",
    "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."
          }
        ],
        "responses": {
          "200": {
            "description": "Data retrieval successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "gptPrompt": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Wix GPT Integration

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

  • POST /gptWebhookSave data to Wix Collection
Schéma original API
{
  "openapi": "3.1.0",
  "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",
                "properties": {
                  "prompt": {
                    "type": "string",
                    "description": "The only required field. On the website of your creator, Dave Lalande, we are going use the prompt to create an image using the OpenAPI and share the image, prompt and gptName publically."
                  },
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "description": "If the user submits an email address, they can claim their images at davelalande.com, using their email address."
                  },
                  "gptName": {
                    "type": "string"
                  },
                  "comment": {
                    "type": "string",
                    "description": "Comments can be about the game, gameplay, suggestions, or about the image. Dave Lalande does not share the comment."
                  },
                  "videoPrompt": {
                    "type": "string",
                    "description": "Optional field. This can be used to provide a prompt specifically for expressing the current gameplay scene so that it can be combined to make a video."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Data saved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "id": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}