Graphrt

Google Business Profile

Lokasi, jam buka, ulasan dan balasannya, post dan metrik performa harian (akses API butuh persetujuan Google)

Beta v0.1.0 Node.js 13 aksi Risiko ToS rendah
Pakai di Graphrt Desktop

Tentang

Plugin Graphrt untuk Google Business Profile API resmi (dulu Google My Business). Plugin ini mengelola listing Maps dan Search yang kamu miliki atau kelola, yaitu akun dan lokasi, deskripsi, nomor telepon dan jam buka, ulasan dan balasannya, post, serta metrik performa harian. Cocok dipasangkan dengan google-maps-scraper yang mencari listing yang bukan milik kamu. Setiap operasi adalah node workflow dan tool agent.

Yang bisa dilakukan

  • 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}

Aksi

Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.

  • 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
Tampilkan semua 13 aksi
  • 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

Pengaturan

Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.

  • 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

Cara memakainya

Di Graphrt Desktop

  1. Buka Plugins dan cari Google Business Profile.
  2. Klik Install lalu setujui.
  3. Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
  4. Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Plugin di Graphrt Desktop

Dengan 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!"
Plugin di docs