Graphrt

Google Business Profile

Locations, hours, reviews and replies, posts and daily performance metrics (API access needs Google approval)

Beta v0.1.0 Node.js 13 actions ToS risk low
Use in Graphrt Desktop

About

A Graphrt plugin for the official Google Business Profile APIs (formerly Google My Business). It manages the Maps and Search listings you own or manage: accounts and locations, description, phones and opening hours, reviews and replies, posts, and daily performance metrics. It pairs with google-maps-scraper, which finds listings you don't own. Every operation is a workflow node and an agent tool.

What it can do

  • Accounts and locations: list accounts, list and get locations (readMask), update description, phones, regular hours and special (holiday) hours (updateMask built from the fields you pass)
  • Reviews: list (with average rating and total count), get, reply or edit the reply, delete the reply
  • Posts: list, create STANDARD / EVENT / OFFER posts with a button and a photo URL, delete
  • Performance: daily impressions (Maps/Search, desktop/mobile), calls, website clicks, directions, messages, bookings and menu clicks, with per-metric totals
  • api_request: any other endpoint on the four Business Profile hosts, chosen with host
  • Auth: OAuth refresh token, service account key file, or a ready access token, tokens are fetched and cached by the plugin, one refresh serves all hosts
  • Creating a post is never retried after an unknown outcome, the error says how to check. update_location is safe to resend, so its failures are retryable. A delete that is retried and then gets 404 returns {deleted: true, already_absent: true}

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • List Business Profile accounts google-business-profile-api.list_accounts
  • List Business Profile locations google-business-profile-api.list_locations
  • Get Business Profile location google-business-profile-api.get_location
  • Update Business Profile location google-business-profile-api.update_location
  • List Google Business Profile reviews google-business-profile-api.list_reviews
  • Get Google Business Profile review google-business-profile-api.get_review
  • Reply to Google Business Profile review google-business-profile-api.reply_to_review
  • Delete Google Business Profile review reply google-business-profile-api.delete_review_reply
  • List Google Business Profile posts google-business-profile-api.list_local_posts
  • Create Google Business Profile post google-business-profile-api.create_local_post
Show all 13 actions
  • Delete Google Business Profile post google-business-profile-api.delete_local_post
  • Get Google Business Profile daily metrics google-business-profile-api.get_daily_metrics
  • Google Business Profile API request google-business-profile-api.api_request

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • GOOGLE_REFRESH_TOKEN
    OAuth refresh token (authorize with access_type=offline and the business.manage scope)
  • GOOGLE_CLIENT_ID
    OAuth client id that issued the refresh token
  • GOOGLE_CLIENT_SECRET
    OAuth client secret
  • GOOGLE_SERVICE_ACCOUNT_JSON
    Path to a service account JSON key file
  • GOOGLE_ACCESS_TOKEN
    A ready OAuth access token (expires after about an hour)
  • GOOGLE_BUSINESS_PROFILE_API_TOOL_TOKEN_SOURCE

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Google Business Profile.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install google-business-profile-api
workflow.yaml
- id: reviews
  type: google-business-profile-api.list_reviews
  account_id: "123456789"
  location_id: "987654321"
  limit: 20
- id: reply
  type: google-business-profile-api.reply_to_review
  account_id: "123456789"
  location_id: "987654321"
  review_id: "{{#start.review_id#}}"
  comment: "Terima kasih atas ulasannya!"
Plugins in the docs