This skill is designed to help users automatically extract reviews from Google Maps via the Google Maps Reviews API. Agent should proactively apply this skill when users request to find reviews for local businesses (e.g., coffee shops, clinics), monitor customer feedback for a specific brand or location, analyze sentiment of reviews for competitors, extract reviews for a chain of stores or services, track reputation of a local restaurant, gather user testimonials for a specific venue, conduct market research on service quality of local businesses, monitor reviews for a new retail location, collect feedback on public attractions or parks, identify common complaints for a specific service provider, research the best-rated places in a city, analyze recurring themes in reviews for a specific industry.
This skill provides a one-stop review collection service using BrowserAct's Google Maps Reviews API template. It can extract structured review data directly from Google Maps search results. Simply provide the search keywords, language, and country to get clean, usable review data.
Before running, check the BROWSERACT_API_KEY environment variable. If not set, do not take other measures; ask and wait for the user to provide it.
:
"Since you haven't configured the BrowserAct API Key, please visit the BrowserAct Console to get your Key."
The Agent should flexibly configure the following parameters when calling the script:
KeyWords (Search Keywords)
stringcoffee shop, dental clinic, Tesla showroomlanguage (Language)
stringen, zh-CN, es, fr, etc.encountry (Country)
stringus, gb, ca, au, jp, etc.usAgent should use the following independent script to achieve "one-line command result":
# Example call
python -u ./scripts/google_maps_reviews_api.py "Keywords" "Language" "Country"
Since this task involves automated browser operations, it may take some time (several minutes). The script will continuously output status logs with timestamps (e.g., [14:30:05] Task Status: running).
Agent Instructions:
After successful execution, the script parses and prints results from the API response:
author_name: Display name of the reviewerauthor_profile_url: Profile URL of the reviewerrating: Star ratingtext: Review text contentcomment_date: Human-readable datelikes_count: Number of likesauthor_image_url: Reviewer's avatar URLIf an error occurs during script execution (e.g., network fluctuations or task failure), the Agent should follow this logic:
Check Output Content:
"Invalid authorization", it means the API Key is invalid or expired. Do not retry; guide the user to re-check and provide the correct API Key."Invalid authorization" but the task failed (e.g., output starts with Error: or returns empty results), the Agent should automatically try to re-execute the script once.Retry Limit: