{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Review Responder: AI Reply Generator",
    "description": "Draft replies to Google reviews automatically. Each daily run returns only new reviews, each with an AI-drafted owner reply, themes and a priority flag, plus a ready-to-send alert email for low ratings. Built for agencies managing many Google Business Profiles.",
    "version": "0.0",
    "x-build-id": "VAf6QSeX2PYGBsx8l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/subtle_pluto~google-review-responder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-subtle_pluto-google-review-responder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/subtle_pluto~google-review-responder/runs": {
      "post": {
        "operationId": "runs-sync-subtle_pluto-google-review-responder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/subtle_pluto~google-review-responder/run-sync": {
      "post": {
        "operationId": "run-sync-subtle_pluto-google-review-responder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "locations"
        ],
        "properties": {
          "locations": {
            "title": "Business locations",
            "type": "array",
            "description": "Google Maps place links, copied from the address bar or the Share button. If you have a place ID, enter it as https://www.google.com/maps/place/?q=place_id:YOUR_PLACE_ID. Under User data you can add {\"business\": \"Acme Dental\", \"client\": \"Acme\"} so replies and alerts use the right name.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "replySignature": {
            "title": "Reply signature",
            "type": "string",
            "description": "How each drafted reply is signed, for example: The Acme Dental Team."
          },
          "contactLine": {
            "title": "Contact line for unhappy reviewers",
            "type": "string",
            "description": "Where low-rating reviewers are invited to reach out, for example: office@acme.com or (555) 010-0100."
          },
          "voiceNotes": {
            "title": "Voice notes (optional)",
            "type": "string",
            "description": "Anything about tone, for example: warm and family-friendly, never use exclamation marks."
          },
          "alertAtOrBelowStars": {
            "title": "Flag reviews at or below (stars)",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Reviews at or below this rating get high priority and a ready-to-send alert email.",
            "default": 2
          },
          "alertSignature": {
            "title": "Alert email signature (optional)",
            "type": "string",
            "description": "Signature block for the alert emails you send to your clients."
          },
          "firstRunLookbackDays": {
            "title": "First run: include reviews from the last (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "On the first run for a location, only reviews this recent are drafted. Later runs return only reviews posted since the previous run.",
            "default": 30
          },
          "maxReviewsPerLocation": {
            "title": "Max reviews read per location per run",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "A cap on how many of the newest reviews are read per location each run.",
            "default": 100
          },
          "includeAnsweredReviews": {
            "title": "Include reviews the owner already answered",
            "type": "boolean",
            "description": "Also draft replies for reviews the owner has already answered.",
            "default": false
          },
          "useAI": {
            "title": "Draft replies with AI",
            "type": "boolean",
            "description": "When on, replies are written for each specific review and themes are detected with AI. When off, built-in templates are used.",
            "default": true
          },
          "language": {
            "title": "Review language",
            "type": "string",
            "description": "Language code for reviews, for example en or es.",
            "default": "en"
          },
          "notifyWebhookUrl": {
            "title": "Send alerts to a webhook (optional)",
            "type": "string",
            "description": "High-priority reviews and their alert emails are POSTed here as JSON. Connect it to Gmail drafts, Slack, Zapier, Make or n8n."
          },
          "anthropicApiKey": {
            "title": "Your own Anthropic API key (optional)",
            "type": "string",
            "description": "Optional. Leave empty to use the built-in AI."
          },
          "maxLocations": {
            "title": "Max locations per run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "A safety cap on how many locations one run checks.",
            "default": 100
          },
          "stateStoreName": {
            "title": "History store name",
            "type": "string",
            "description": "Seen review IDs live in this named key-value store in your account, so each run returns only new reviews.",
            "default": "review-responder-state"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}