# Google Reviews Monitor — Multi-Location Alerts & Reports (`luteous_rhythm/google-reviews-monitor`) Actor

Monitor Google Maps reviews across all your client locations on a schedule. Only-new deltas, negative/unanswered alerts, rating-drop detection, AI summaries & reply drafts, Slack/webhook alerts, and a rolled-up HTML report. Built for marketing & SEO agencies — action-ready, not raw data.

- **URL**: https://apify.com/luteous\_rhythm/google-reviews-monitor.md
- **Developed by:** [Imed](https://apify.com/luteous_rhythm) (community)
- **Categories:** Lead generation, SEO tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $15.00 / 1,000 location checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Google Reviews Monitor — Multi-Location Alerts & Reports

**Monitor Google Maps reviews across all your client locations on autopilot.** Schedule it,
and every run sends you only the *new* reviews, flags negative and unanswered ones, detects
rating drops, drafts replies, and rolls everything into one agency-ready report. Built for
marketing & SEO agencies and multi-location businesses who need to *act* on reviews — not
drown in raw data.

> Snapshot → diff → alert. This is a **monitor**, not a one-shot scraper. Point it at 1 or
> 100 Google Business locations, put it on a daily schedule, and get deltas + alerts.

---

### Why this instead of a plain reviews scraper?

Most Google reviews actors hand you a giant JSON dump of *every* review, every run. An
agency managing 30 client locations doesn't need that — they need to know **what changed
since yesterday and what needs a reply right now.** This actor is built around that job:

- 🆕 **Only-new deltas** — each scheduled run returns just the reviews that are new or
  changed since the last run (persisted between runs). No re-dumping history.
- 🚨 **Action-ready alerts** — new negative reviews, **unanswered** reviews, and **rating
  drops** surfaced per location, so you reply before the client notices.
- 🏢 **True multi-location** — one input, many locations, one rolled-up HTML report.
- 🤖 **AI summary + reply drafts** — a one-line briefing per location ("2 urgent reviews
  need replies; main complaint: wait times") and optional draft replies for urgent reviews.
- 🔔 **Slack / Discord / webhook alerts** — compact summaries pushed where your team works.
- 💸 **Pay per event** — pay for what you check, not a flat monthly rental.

---

### What it does

1. Opens each Google Maps location in a real browser (Crawlee + Playwright) via Apify
   **residential** proxy.
2. Loads the newest reviews, expands "See more", and extracts: rating, text, reviewer,
   relative date, **owner response (yes/no + text)**, and photos.
3. Compares against the previous run's snapshot and computes **new / changed** reviews.
4. Classifies: negative (≤ your threshold), unanswered, urgent (negative **and**
   unanswered), recurring complaint themes, and overall **rating drops**.
5. Emits an action-ready record per location to the dataset, optionally fires a **webhook**,
   and saves a rolled-up **HTML report** to the Key-Value Store.

---

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `locations` | array | — (required) | One entry per location: `{ "clientName": "...", "googleMapsUrl": "https://www.google.com/maps/place/..." }` |
| `maxReviewsPerRun` | integer | `50` | Newest reviews to load per location each run |
| `onlyNewSinceLastRun` | boolean | `true` | Emit only new/changed reviews (the core monitor behavior) |
| `alertOnNewReviews` | boolean | `true` | Include locations with new reviews in the alert signal |
| `alertOnNegativeReviews` | boolean | `true` | Flag new reviews ≤ threshold |
| `negativeRatingThreshold` | integer | `3` | Reviews at/below this rating are "negative" |
| `trackOwnerReplies` | boolean | `true` | Detect when the owner replies to a review |
| `detectRatingDrops` | boolean | `true` | Flag overall rating drops vs last run |
| `generateAiSummary` | boolean | `true` | One AI/rule-based briefing per location (on new reviews only) |
| `generateReplyDrafts` | boolean | `false` | Draft replies for urgent reviews |
| `aiModel` | string | `gpt-4o-mini` | AI model (GPT or Claude) used when a key is configured |
| `openaiApiKey` | string (secret) | — | Optional BYO OpenAI key (default provider); otherwise rule-based (free) |
| `anthropicApiKey` | string (secret) | — | Optional BYO Anthropic/Claude key (used if no OpenAI key) |
| `weeklyReport` | boolean | `true` | Render a rolled-up HTML report to the KV store |
| `webhookUrl` | string | `""` | Slack/Discord/generic webhook for alerts |
| `proxyConfiguration` | object | RESIDENTIAL | Apify Proxy (residential strongly recommended) |

#### Example input

```json
{
  "locations": [
    { "clientName": "Dental Group A — Downtown", "googleMapsUrl": "https://www.google.com/maps/place/..." },
    { "clientName": "Dental Group A — Westside", "googleMapsUrl": "https://www.google.com/maps/place/..." }
  ],
  "maxReviewsPerRun": 50,
  "onlyNewSinceLastRun": true,
  "alertOnNegativeReviews": true,
  "negativeRatingThreshold": 3,
  "generateAiSummary": true,
  "weeklyReport": true,
  "webhookUrl": "https://hooks.slack.com/services/XXX/YYY/ZZZ",
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
````

> **How to get a location URL:** open the business on Google Maps and copy the URL from your
> browser's address bar (it looks like `https://www.google.com/maps/place/Name/@lat,lng,17z/data=...`).

***

### Output

One action-ready record per location in the dataset:

```json
{
  "clientName": "Dental Group A — Downtown",
  "overallRating": 4.3,
  "isFirstRun": false,
  "counts": { "new": 2, "changed": 0, "negative": 2, "unanswered": 2, "newOwnerReplies": 0, "urgent": 2 },
  "ratingChange": { "before": 4.7, "after": 4.3, "delta": -0.4, "dropped": true },
  "themes": ["wait", "billing", "staff"],
  "urgentReviews": [
    {
      "reviewId": "abc123",
      "rating": 1,
      "reviewerName": "Sam",
      "relativeDate": "2 hours ago",
      "text": "Terrible wait, over an hour past my appointment...",
      "reason": "negative & unanswered",
      "suggestedReply": "Hi Sam, thank you for sharing your experience and we're sorry it fell short..."
    }
  ],
  "agencySummary": "2 new reviews (avg 1.5★). 2 urgent need replies. themes: wait, billing.",
  "reportUrl": "https://api.apify.com/v2/key-value-stores/.../records/latest-report.html",
  "syncStatus": "ok"
}
```

The first run establishes a **baseline** (no alerts) so you don't get spammed with the full
history; from the second run on you get pure deltas.

***

### Scheduling (this is the point)

1. Run the actor once to establish the baseline.
2. Open the actor → **Schedules** → **Create schedule** → run **daily** (cron `0 8 * * *`
   for 8am). Attach this actor + your saved input.
3. Add a `webhookUrl` so your team gets a Slack/Discord ping only when something changes.

A monitor only compounds value when it runs on a schedule — that's where the alerts come from.

***

### Use cases for agencies

- **Reputation management retainers** — prove value weekly with a per-client report.
- **Reply-SLA enforcement** — never miss a negative or unanswered review across 50 locations.
- **Churn prevention** — catch a rating drop the day it happens, not at the QBR.
- **Franchise / multi-branch oversight** — one dashboard for every location's reviews.
- **White-label** — pipe the webhook/report into your own client dashboard.

***

### Pricing (pay per event)

You only pay for the work each run does:

| Event | Price | When |
|---|---|---|
| Actor start | $0.005 | once per run |
| Location checked | $0.01 | per location successfully checked |
| Review processed | $0.001 | per **new/changed** review (never re-charged for history) |
| AI generation | $0.01 | per AI summary / reply draft (only on new reviews) |
| Report generated | $0.05 | per rolled-up report |

A typical daily run for one location with a few new reviews costs only a few cents. See
`MONETIZATION.md` for the full cost math.

***

### How it compares

Most Google reviews actors are **extractors**; this is a **monitor**. The three things they
all leave for you to build yourself:

| | Typical reviews scraper | **Google Reviews Monitor** |
|---|---|---|
| Each scheduled run returns… | the **full** review history (re-scraped & re-billed) | only **new/changed** reviews since last run |
| New negative / unanswered / rating-drop alerts | DIY in n8n/Make | **built-in**, routed to Slack/Discord/webhook |
| Output | JSON/CSV dump | action-ready record **+ AI reply drafts + client-ready HTML report** |
| Multi-location | a flat URL array | per-location records + one rolled-up report |
| Billing | per review scraped (history included) | pay-per-event on **deltas** — cents/day for many locations |

> Apify's own guide lists negative-review and rating-drop alerts as things you must build
> yourself. This actor ships them natively. (See `DISTRIBUTION_KIT.md` for the full competitor
> breakdown and sources.)

### FAQ

**Does this use the official Google Business Profile API?**
No — the GBP API only works on locations *you* own and requires per-user Google approval, so
it can't power a tool you run for other people's locations. This actor reads **public** Google
Maps reviews with a real browser + residential proxy.

**Will it get blocked?**
Use the default **RESIDENTIAL** proxy. The actor also rotates sessions/fingerprints and
retries. One location failing never stops the others (it's marked `failed` and the run
continues).

**Do I need an AI API key?**
No. Without one you still get a useful rule-based summary for free. Add an **Anthropic
(Claude)** or OpenAI key — or have the actor owner set the `ANTHROPIC_API_KEY` (or
`OPENAI_API_KEY`) secret — to get LLM-quality summaries and reply drafts. Default model is the
cheapest Claude (`claude-haiku-4-5`).

**How many locations can I monitor?**
As many as you want — add them all to `locations`. Each is checked independently.

**How is "new" determined?**
By a stable review id + a fingerprint of meaningful fields (rating, text, owner reply). State
persists between runs in a named Key-Value Store, so scheduled runs return true deltas.

**What about deleted/old reviews scrolling off the page?**
The monitor does **not** raise false "removed" alerts when an old review simply falls past
the `maxReviewsPerRun` window.

***

### Notes & limitations

- Google Maps markup changes often; the actor uses resilient selectors with fallbacks and
  forces English (`hl=en`) for predictable parsing.
- Some reviews are rating-only (no text) — that's normal and handled.
- Reply drafts are suggestions; review them before posting.

***

*Built on the Apify SDK with a reusable, source-agnostic monitoring engine. See `AGENTS.md`
for architecture.*

# Actor input Schema

## `locations` (type: `array`):

One entry per Google Business location. clientName is your label (e.g. the client/branch name); googleMapsUrl is the public Google Maps URL of the business. Tip: open the place on Google Maps and copy the URL from the address bar.

## `maxReviewsPerRun` (type: `integer`):

How many of the newest reviews to load per location each run. Higher = more thorough but slower. 50 is plenty for a scheduled monitor that only needs the latest deltas.

## `onlyNewSinceLastRun` (type: `boolean`):

Core monitor behavior: each scheduled run emits only NEW or CHANGED reviews (deltas), not a full re-dump. Persisted between runs via the Key-Value Store.

## `alertOnNewReviews` (type: `boolean`):

Include locations with any new review in the notification/report signal.

## `alertOnNegativeReviews` (type: `boolean`):

Flag new reviews at or below the negative rating threshold.

## `negativeRatingThreshold` (type: `integer`):

Reviews with a star rating at or below this value are treated as negative.

## `trackOwnerReplies` (type: `boolean`):

Detect when the business owner replies to a review (review changes from unanswered to answered).

## `detectRatingDrops` (type: `boolean`):

Compare each location's overall star rating against the previous run and flag drops.

## `generateAiSummary` (type: `boolean`):

Produce a short, action-ready briefing per location from the NEW reviews (e.g. '2 urgent reviews need replies; main complaint: wait times'). Uses an LLM if a key is configured, otherwise a free rule-based summary.

## `generateReplyDrafts` (type: `boolean`):

Draft a professional public reply for each urgent (negative + unanswered) review. Capped per run to control cost.

## `aiModel` (type: `string`):

Model used for AI summaries/reply drafts (only when an API key is configured). GPT models need an OpenAI key; Claude models need an Anthropic key.

## `anthropicApiKey` (type: `string`):

Optional. Bring your own Anthropic key to enable AI summaries/reply drafts with Claude. If left blank, the actor uses the ANTHROPIC\_API\_KEY environment secret (if the owner set one), then OpenAI, then a free rule-based summary.

## `openaiApiKey` (type: `string`):

Optional. Bring your own OpenAI key to use GPT models instead of Claude. Used only if no Anthropic key is configured.

## `weeklyReport` (type: `boolean`):

Render a single multi-location HTML report to the Key-Value Store and link it from each dataset record.

## `webhookUrl` (type: `string`):

Optional. Receive a compact summary when there are changes. Auto-formats for Slack and Discord incoming webhooks; otherwise sends a generic JSON payload (works with Zapier/Make/n8n and email-via-webhook).

## `proxyConfiguration` (type: `object`):

Apify Proxy settings. RESIDENTIAL is strongly recommended for Google Maps to avoid blocking.

## Actor input object example

```json
{
  "locations": [
    {
      "clientName": "Dental Group A — Downtown",
      "googleMapsUrl": "https://www.google.com/maps/place/..."
    },
    {
      "clientName": "Dental Group A — Westside",
      "googleMapsUrl": "https://www.google.com/maps/place/..."
    }
  ],
  "maxReviewsPerRun": 50,
  "onlyNewSinceLastRun": true,
  "alertOnNewReviews": true,
  "alertOnNegativeReviews": true,
  "negativeRatingThreshold": 3,
  "trackOwnerReplies": true,
  "detectRatingDrops": true,
  "generateAiSummary": true,
  "generateReplyDrafts": false,
  "aiModel": "gpt-4o-mini",
  "weeklyReport": true,
  "webhookUrl": "",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "locations": [
        {
            "clientName": "Dental Group A — Downtown",
            "googleMapsUrl": "https://www.google.com/maps/place/..."
        },
        {
            "clientName": "Dental Group A — Westside",
            "googleMapsUrl": "https://www.google.com/maps/place/..."
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("luteous_rhythm/google-reviews-monitor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "locations": [
        {
            "clientName": "Dental Group A — Downtown",
            "googleMapsUrl": "https://www.google.com/maps/place/...",
        },
        {
            "clientName": "Dental Group A — Westside",
            "googleMapsUrl": "https://www.google.com/maps/place/...",
        },
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("luteous_rhythm/google-reviews-monitor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "locations": [
    {
      "clientName": "Dental Group A — Downtown",
      "googleMapsUrl": "https://www.google.com/maps/place/..."
    },
    {
      "clientName": "Dental Group A — Westside",
      "googleMapsUrl": "https://www.google.com/maps/place/..."
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call luteous_rhythm/google-reviews-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=luteous_rhythm/google-reviews-monitor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Reviews Monitor — Multi-Location Alerts & Reports",
        "description": "Monitor Google Maps reviews across all your client locations on a schedule. Only-new deltas, negative/unanswered alerts, rating-drop detection, AI summaries & reply drafts, Slack/webhook alerts, and a rolled-up HTML report. Built for marketing & SEO agencies — action-ready, not raw data.",
        "version": "0.1",
        "x-build-id": "BzMezFZc5eS0n60hr"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/luteous_rhythm~google-reviews-monitor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-luteous_rhythm-google-reviews-monitor",
                "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/luteous_rhythm~google-reviews-monitor/runs": {
            "post": {
                "operationId": "runs-sync-luteous_rhythm-google-reviews-monitor",
                "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/luteous_rhythm~google-reviews-monitor/run-sync": {
            "post": {
                "operationId": "run-sync-luteous_rhythm-google-reviews-monitor",
                "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": "Client locations to monitor",
                        "type": "array",
                        "description": "One entry per Google Business location. clientName is your label (e.g. the client/branch name); googleMapsUrl is the public Google Maps URL of the business. Tip: open the place on Google Maps and copy the URL from the address bar."
                    },
                    "maxReviewsPerRun": {
                        "title": "Max reviews to load per location",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "How many of the newest reviews to load per location each run. Higher = more thorough but slower. 50 is plenty for a scheduled monitor that only needs the latest deltas.",
                        "default": 50
                    },
                    "onlyNewSinceLastRun": {
                        "title": "Only return new/changed since last run",
                        "type": "boolean",
                        "description": "Core monitor behavior: each scheduled run emits only NEW or CHANGED reviews (deltas), not a full re-dump. Persisted between runs via the Key-Value Store.",
                        "default": true
                    },
                    "alertOnNewReviews": {
                        "title": "Alert on new reviews",
                        "type": "boolean",
                        "description": "Include locations with any new review in the notification/report signal.",
                        "default": true
                    },
                    "alertOnNegativeReviews": {
                        "title": "Alert on negative reviews",
                        "type": "boolean",
                        "description": "Flag new reviews at or below the negative rating threshold.",
                        "default": true
                    },
                    "negativeRatingThreshold": {
                        "title": "Negative rating threshold (stars)",
                        "minimum": 1,
                        "maximum": 5,
                        "type": "integer",
                        "description": "Reviews with a star rating at or below this value are treated as negative.",
                        "default": 3
                    },
                    "trackOwnerReplies": {
                        "title": "Track owner replies",
                        "type": "boolean",
                        "description": "Detect when the business owner replies to a review (review changes from unanswered to answered).",
                        "default": true
                    },
                    "detectRatingDrops": {
                        "title": "Detect overall rating drops",
                        "type": "boolean",
                        "description": "Compare each location's overall star rating against the previous run and flag drops.",
                        "default": true
                    },
                    "generateAiSummary": {
                        "title": "Generate AI summary per location",
                        "type": "boolean",
                        "description": "Produce a short, action-ready briefing per location from the NEW reviews (e.g. '2 urgent reviews need replies; main complaint: wait times'). Uses an LLM if a key is configured, otherwise a free rule-based summary.",
                        "default": true
                    },
                    "generateReplyDrafts": {
                        "title": "Generate reply drafts for urgent reviews",
                        "type": "boolean",
                        "description": "Draft a professional public reply for each urgent (negative + unanswered) review. Capped per run to control cost.",
                        "default": false
                    },
                    "aiModel": {
                        "title": "AI model",
                        "enum": [
                            "gpt-4o-mini",
                            "gpt-4.1-mini",
                            "gpt-4o",
                            "claude-haiku-4-5",
                            "claude-sonnet-4-6"
                        ],
                        "type": "string",
                        "description": "Model used for AI summaries/reply drafts (only when an API key is configured). GPT models need an OpenAI key; Claude models need an Anthropic key.",
                        "default": "gpt-4o-mini"
                    },
                    "anthropicApiKey": {
                        "title": "Anthropic (Claude) API key (optional)",
                        "type": "string",
                        "description": "Optional. Bring your own Anthropic key to enable AI summaries/reply drafts with Claude. If left blank, the actor uses the ANTHROPIC_API_KEY environment secret (if the owner set one), then OpenAI, then a free rule-based summary."
                    },
                    "openaiApiKey": {
                        "title": "OpenAI API key (optional)",
                        "type": "string",
                        "description": "Optional. Bring your own OpenAI key to use GPT models instead of Claude. Used only if no Anthropic key is configured."
                    },
                    "weeklyReport": {
                        "title": "Generate rolled-up HTML report",
                        "type": "boolean",
                        "description": "Render a single multi-location HTML report to the Key-Value Store and link it from each dataset record.",
                        "default": true
                    },
                    "webhookUrl": {
                        "title": "Webhook URL (optional)",
                        "type": "string",
                        "description": "Optional. Receive a compact summary when there are changes. Auto-formats for Slack and Discord incoming webhooks; otherwise sends a generic JSON payload (works with Zapier/Make/n8n and email-via-webhook).",
                        "default": ""
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Apify Proxy settings. RESIDENTIAL is strongly recommended for Google Maps to avoid blocking.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            },
                            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
