# Local Review Booster — Google Review Replies & Triage (`leadharbor/local-review-booster`) Actor

Pull a local business's Google reviews, draft a reply for each, and flag unanswered low-star reviews. Built for restaurants, salons, clinics and the agencies that serve them.

- **URL**: https://apify.com/leadharbor/local-review-booster.md
- **Developed by:** [Mohammed Samaan](https://apify.com/leadharbor) (community)
- **Categories:** Lead generation, Integrations, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## Local Review Booster — Google Review Replies & Triage

Pull a local business's **Google reviews**, get a **ready-to-paste reply drafted
for every one**, and instantly see the **urgent ones** (unanswered + low-star)
that are quietly costing the business customers.

Built for **restaurants, salons, clinics, gyms, contractors** — and the **local
marketing agencies** that manage them. A lean alternative to Birdeye / Podium.

### What you get per review

| Field | Meaning |
|---|---|
| `reviewer` · `stars` · `sentiment` | Who, rating, positive/neutral/negative |
| `review` | The review text |
| `ownerReplied` · `needsAttention` | Already answered? / urgent (unanswered + ≤3★) |
| `suggestedReply` | A ready-to-paste reply, in your chosen tone |

### How it works

We **reuse a maintained Google Maps actor** for the review data (so there's no
anti-bot fight), then add the value buyers want: a drafted reply per review and
an urgency triage. Replies are generated by **smart templates by default — free,
no API key**. Want AI-written replies? Paste an OpenAI key and it upgrades
automatically (falls back to templates if the call fails).

### Input

| Field | What it does |
|---|---|
| `businesses` | Google Maps URLs or "Name, City", one per line |
| `maxReviews` | Reviews to pull per business |
| `onlyNeedsAttention` | Only urgent (unanswered ≤3★) reviews |
| `replyTone` | warm / professional / brief |
| `openaiApiKey` | Optional — AI replies (else free templates) |

### Pricing

Pay-per-result: per **review processed**. Agencies run it across many client
locations on a schedule → recurring.

### Who buys & how we reach them

Local businesses with unanswered/low reviews, and agencies managing them — both
**findable** with our Google Maps lead scraper (pull the business, see its
review count, get the owner's email, pitch the fix).

### Deploy

See [`DEPLOY.md`](./DEPLOY.md).

# Actor input Schema

## `businesses` (type: `array`):

Google Maps URLs, or "Business Name, City" queries — one per line.
## `maxReviews` (type: `integer`):

How many recent reviews to pull per business.
## `onlyNeedsAttention` (type: `boolean`):

Only surface unanswered reviews of 3★ or lower (the ones that cost money).
## `replyTone` (type: `string`):

Style for drafted replies.
## `businessNameForReply` (type: `string`):

Optional — name to sign replies with.
## `openaiApiKey` (type: `string`):

Optional — for AI-written replies. Leave blank to use built-in smart templates (free).
## `aiModel` (type: `string`):

Used only if an API key is provided.
## `mapsActorId` (type: `string`):

Maintained Google Maps actor used to fetch reviews. Leave as default.
## `webhookUrl` (type: `string`):

POST the urgent (needs-attention) reviews here as JSON.

## Actor input object example

```json
{
  "businesses": [
    "Joe's Pizza, New York"
  ],
  "maxReviews": 30,
  "onlyNeedsAttention": false,
  "replyTone": "warm",
  "aiModel": "gpt-4o-mini",
  "mapsActorId": "compass/crawler-google-places"
}
````

# 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 = {
    "businesses": [
        "Joe's Pizza, New York"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("leadharbor/local-review-booster").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 = { "businesses": ["Joe's Pizza, New York"] }

# Run the Actor and wait for it to finish
run = client.actor("leadharbor/local-review-booster").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 '{
  "businesses": [
    "Joe'\''s Pizza, New York"
  ]
}' |
apify call leadharbor/local-review-booster --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=leadharbor/local-review-booster",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Local Review Booster — Google Review Replies & Triage",
        "description": "Pull a local business's Google reviews, draft a reply for each, and flag unanswered low-star reviews. Built for restaurants, salons, clinics and the agencies that serve them.",
        "version": "0.1",
        "x-build-id": "7W255nJjHgMjbCeS1"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/leadharbor~local-review-booster/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-leadharbor-local-review-booster",
                "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/leadharbor~local-review-booster/runs": {
            "post": {
                "operationId": "runs-sync-leadharbor-local-review-booster",
                "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/leadharbor~local-review-booster/run-sync": {
            "post": {
                "operationId": "run-sync-leadharbor-local-review-booster",
                "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": [
                    "businesses"
                ],
                "properties": {
                    "businesses": {
                        "title": "Businesses",
                        "type": "array",
                        "description": "Google Maps URLs, or \"Business Name, City\" queries — one per line.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxReviews": {
                        "title": "Reviews per business",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "How many recent reviews to pull per business.",
                        "default": 30
                    },
                    "onlyNeedsAttention": {
                        "title": "Only urgent reviews",
                        "type": "boolean",
                        "description": "Only surface unanswered reviews of 3★ or lower (the ones that cost money).",
                        "default": false
                    },
                    "replyTone": {
                        "title": "Reply tone",
                        "enum": [
                            "warm",
                            "professional",
                            "brief"
                        ],
                        "type": "string",
                        "description": "Style for drafted replies.",
                        "default": "warm"
                    },
                    "businessNameForReply": {
                        "title": "Business name (for reply signature)",
                        "type": "string",
                        "description": "Optional — name to sign replies with."
                    },
                    "openaiApiKey": {
                        "title": "OpenAI API key (optional)",
                        "type": "string",
                        "description": "Optional — for AI-written replies. Leave blank to use built-in smart templates (free)."
                    },
                    "aiModel": {
                        "title": "AI model (optional)",
                        "type": "string",
                        "description": "Used only if an API key is provided.",
                        "default": "gpt-4o-mini"
                    },
                    "mapsActorId": {
                        "title": "Reviews source actor (advanced)",
                        "type": "string",
                        "description": "Maintained Google Maps actor used to fetch reviews. Leave as default.",
                        "default": "compass/crawler-google-places"
                    },
                    "webhookUrl": {
                        "title": "Webhook URL (optional)",
                        "type": "string",
                        "description": "POST the urgent (needs-attention) reviews here as JSON."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
