Aaron Copywriter

Aaron Copywriter · Actions GPT

AaronChatPDF

  • POST /link/queryMake sure to collect the 'instructions' field before calling this endpoint.Extract and transform content from a provided link
  • GET /file/upload-linkCreate a unique link for file uploads
  • POST /file/rewriteGet content of an uploaded file and possibly rewrite or transform it
Schéma original API
{
  "openapi": "3.0.1",
  "info": {
    "title": "AaronChatPDF",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.gptcloud.dev/run/654d23dc80b7a5ccae50e700/65786cb0956caf0360799198"
    }
  ],
  "paths": {
    "/link/query": {
      "post": {
        "summary": "Make sure to collect the 'instructions' field before calling this endpoint.Extract and transform content from a provided link",
        "operationId": "ExtractContent",
        "requestBody": {
          "description": "Link and instructions details for extracting content",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExtractContentBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response containing the extracted content and any associated instructions.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/ResponseBody"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request error."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    },
    "/file/upload-link": {
      "get": {
        "summary": "Create a unique link for file uploads",
        "operationId": "CreateUploadLink",
        "responses": {
          "200": {
            "description": "Successful response containing the unique file upload link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadLinkResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request error."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    },
    "/file/rewrite": {
      "post": {
        "summary": "Get content of an uploaded file and possibly rewrite or transform it",
        "operationId": "GetRewrittenContent",
        "requestBody": {
          "description": "Information regarding the desired transformation on the file content",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RewriteBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response containing the transformed content and any associated instructions.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SummaryResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request error."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "RewriteBody": {
        "type": "object",
        "properties": {
          "instructions": {
            "type": "string",
            "description": "Instructions for text manipulations to be executed on the extracted content."
          }
        }
      },
      "ResponseBody": {
        "type": "object",
        "properties": {
          "result": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "responseInstructions": {
                  "type": "string",
                  "description": "Instructions regarding the response content"
                },
                "content": {
                  "type": "string",
                  "description": "The actual extracted content or its transformation"
                }
              }
            }
          }
        }
      },
      "ExtractContentBody": {
        "type": "object",
        "properties": {
          "instructions": {
            "type": "string",
            "description": "ALWAYS Populate this field with instructions for text manipulations to be executed on the extracted content"
          },
          "urls": {
            "type": "array",
            "description": "URL links from which content should be extracted",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [ "instructions" ]
      },
      "UploadLinkResponseBody": {
        "type": "object",
        "properties": {
          "responseInstructions": {
            "type": "string"
          }
        }
      },
      "SummaryResponseBody": {
        "type": "object",
        "properties": {
          "summary": {
            "type": "string"
          },
          "responseInstructions": {
            "type": "string"
          }
        }
      }
    }
  }
}