Setup Guide

Setup Google Business Profile

Untuk ambil review terbaru, rating, profile clicks, search queries, dan komentar.

JSON API

Step by step

1. Pastikan akses GBP
Akun Google harus punya akses owner/manager ke Google Business Profile Griesmakeup dan IWM.
start
2. Buka Google Cloud Console
console.cloud.google.com → buat project baru: Bosalip Command.
todo
3. Enable API
Enable Business Profile APIs / Google Business Profile Performance API jika tersedia di akun.
todo
4. Buat OAuth Client
APIs & Services → Credentials → Create OAuth Client → Web application.
todo
5. Redirect URL
Tambahkan redirect URL: https://dashboard.sixbro.web.id/oauth/google/callback
todo
6. Ambil client id/secret
Simpan di .env. Refresh token dibuat lewat OAuth connect flow nanti.
todo
7. Mapping location
Setelah connect, pilih location ID untuk Griesmakeup dan IWM.
todo

ENV yang dibutuhkan

GOOGLE_CLIENT_ID=...
GOOGLE_CLIENT_SECRET=...
GOOGLE_REFRESH_TOKEN=...
GBP_LOCATION_GRIESMAKEUP=...
GBP_LOCATION_IWM=...

Simpan di: /home/ubuntu/apps/web-command-center/.env

Permission: chmod 600 .env

Test koneksi

Setelah OPENAI_API_KEY diisi di .env, cek status:

Test OpenAI API

Safety rule

API key jangan ditulis di halaman publik. Jangan aktifkan publish real sebelum backup + dry-run sukses.