Daily
Score new Google Maps reviews and keep them searchable
Each day new Google Maps reviews get a sentiment score in your sheet and are added to Pinecone, so you can search past feedback by topic.
- Runs
- Daily
- Apps
- Google Sheets, Pinecone
- AI
- Yes, uses the built-in AI allowance
- Access
- sheet edit; Pinecone write
Send this to your assistant
Create a ClickRuntime automation: every morning, fetch new Google Maps reviews for my place, score each one's sentiment with AI, add them to my Reviews sheet and index them in Pinecone.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Reviews contain the most direct feedback a local business gets, but they are read once and forgotten. Months later, when you want to know how often people mentioned slow service or parking, there is no easy way to look back.
Restaurants, clinics, hotels and multi-site managers use it to build a scored log of every review and a searchable archive of what customers have said.
What you get out of it
A score for every review
Sentiment in the sheet makes it easy to chart how feedback moves over time.
Search feedback by topic
Pinecone finds reviews about parking or staff even when they use different words.
Nothing gets lost
Every new review is kept, not just the ones someone happened to read.
Ready for reports
The sheet can feed charts and monthly summaries without extra work.
How it works
What happens, step by step
Every morning, ClickRuntime fetches the latest Google Maps reviews for your place.
Reviews it has already stored are skipped.
AI gives each new review a sentiment score and a topic.
The reviews are added to your sheet and indexed in Pinecone for later searching.
Before it runs live
- Connect your Google Sheets account and pick the spreadsheets it may use
- Connect Pinecone
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Change what the AI looks for, or how it writes the result
- Add another app, for example also send it to Slack
- Combine it with other Google Sheets and Pinecone steps into one automation
Under the hood
The code that runs this automation
import json
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, state, ai
PLACE_ID, SHEET_ID = "ChIJN1t_tDeuEmsRUsoyG83frY4", "your-spreadsheet-id"
SCHEMA = {"type": "object", "properties": {"scores": {"type": "array", "items": {"type": "object", "properties": {
"score": {"type": "number"}, "topic": {"type": "string"}}}}}}
HOST, NS = "https://kb-abc123.svc.aped-1234.pinecone.io", "reviews" # your index host and namespace
def upsert(records):
http.post(f"{HOST}/records/namespaces/{NS}/upsert", data="\n".join(json.dumps(r) for r in records[:96]), headers={
"Api-Key": credentials.secret("PINECONE_API_KEY"), "X-Pinecone-API-Version": "2025-04", "Content-Type": "application/x-ndjson"}).raise_for_status()
@on_trigger
def run(event):
place = http.get(f"https://places.googleapis.com/v1/places/{PLACE_ID}", headers={"X-Goog-FieldMask": "reviews",
"X-Goog-Api-Key": credentials.secret("GOOGLE_MAPS_API_KEY")}).json()
seen = set(state.get("seen") or [])
new = [r for r in place.get("reviews", []) if r["name"] not in seen and r.get("text")]
if not new:
return {"new": 0}
texts = [r["text"]["text"][:1000] for r in new]
scores = ai.generate("Score each review's sentiment from -1 to 1 and give a one-word topic, in order:\n"
+ "\n".join(f"{i}. {t}" for i, t in enumerate(texts, 1)), json_schema=SCHEMA, max_output_tokens=300).json["scores"]
rows = [[r["publishTime"][:10], r["authorAttribution"]["displayName"], r["rating"], s["score"], s["topic"], t]
for r, s, t in zip(new, scores, texts)]
build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False) \
.spreadsheets().values().append(spreadsheetId=SHEET_ID, range="Reviews!A:F", valueInputOption="RAW", body={"values": rows}).execute()
upsert([{"_id": r["name"].split("/")[-1], "chunk_text": t, "rating": r["rating"]} for r, t in zip(new, texts)])
state.set("seen", sorted(seen | {r["name"] for r in new})[-5000:])FAQ
Common questions
How many reviews does it fetch?
How is sentiment scored?
What do I need to set it up?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Answer your standard questions about each new financial report in a sheet
Each quarter new financial reports are indexed in Pinecone, and the answers to your standard questions about each company are written to your sheet.
See how it worksIndex new documents nightly and log each one in a sheet
Every night new documents are indexed into Pinecone, and your sheet shows each file's name, chunk count and the date it was indexed.
See how it worksAnswer chat questions from your sheet data and documents together
People ask a question in your chat and get an answer that combines the figures in your Google Sheet with the guidance in your documents.
See how it worksKeep exploring
Set up “Score new Google Maps reviews and keep them searchable” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.