> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Google Bookings Plan

## Article: Google Bookings Plan

## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/skills/google-bookings-plan.md

## Article Content:

# Google Bookings Plan

A plan for a bookings business whose clients can already book it from its Google listing, in Search and Maps. It holds only what can be done for the owner through public Wix APIs. Most of it works through the site's Google Business Profile connection: the reviews, the photos and the review link come from the profile.

**Two facts shape the plan.**
- **There is no public API for the booking channel.** Nothing here can turn on booking from Google or read whether it is on. Take the owner's word that clients can book them from Google; the site's app list doesn't show it, so don't look for it there.
- **Every step is the owner's choice.** Offer the steps, run the one the owner picks, and change nothing until they approve the exact change. A reply, a photo or a campaign shows publicly on Google, so each gets its own yes.

## When to use

- Clients can book the owner from Google, and the owner asks what to do next, how to get more bookings from Google or Maps, or how to stand out there.
- Clients book the owner from Google, and the owner asks for one step on its own ("reply to my Google reviews", "add photos to my Google profile"): run that step only.

Not for:
- **Turning on booking from Google.** No public API does it. Say the owner turns it on in their dashboard.
- Managing the Google Business Profile itself (hours, address, categories): [Manage Google Business Profile Locations](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/skills/manage-google-business-profile-locations-for-a-wix-site.md).
- Replying to Google reviews or adding profile photos for a business that isn't using this plan: [Reply to Google Reviews and Add Photos](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/skills/reply-to-google-reviews-and-add-photos-to-a-google-business-profile.md).
- A business with no Wix Bookings: say this plan is for bookings businesses and stop.

## Flow

1. **Context.** [Read Account or Site Context](https://dev.wix.com/docs/api-reference/account-level/sites/skills/read-account-or-site-context.md) for the named site. Take `siteId`, the time zone and the app list. No Wix Bookings: say this plan is for bookings businesses and stop.
2. **Read once.** Make the reads in [Reads](#reads), together when a tool can run them in one call. A failed read leaves out what it feeds and never stops the plan. The Google reads run only when the connection read returns `VALID`.
3. **Write the note** from those reads ([The note](#the-note)).
4. **Show the plan:** the note, then the four steps as one numbered list in that order, each in one line, and how to start ("Reply with a number, or 'start' for the first one"). Use each step's line from [The plan](#the-plan) word for word, with nothing under it, and say nothing about whether a step suits the business yet: a step's caveats, such as a profile that isn't connected, come up only when the owner starts that step.
5. **Run the step the owner picks.** "Start" means step 1. Each step shows its result and asks for approval before any write. After a step, show the plan again and say which step is done.

**Steps 1 to 3 need the Google Business Profile connection.** When the connection read isn't `VALID` and the owner starts one of them, say the profile has to be connected first, connect it as [Connect Google Business Profile](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/skills/connect-a-wix-site-to-google-business-profile.md) shows (the owner authorizes in their own browser), and import the business's location as [Manage Google Business Profile Locations](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/skills/manage-google-business-profile-locations-for-a-wix-site.md) shows when none is imported. Then make the Google reads and continue the step.

## Reads

These calls are verified as written, and each row links its method's reference page, the source to cite for the call. Make them as shown, without searching the docs or reading a method's schema, and in one call when a tool can run them together. The fields each read returns are in its last column.

| Read | Call | Fields used |
|---|---|---|
| Google connection ([Get Connection](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/connection-v1/get-connection.md)) | `GET https://www.wixapis.com/gbp/v1/connection` | `status`: `VALID`, or `NEVER_CONNECTED` / `NEEDS_RECONNECT` / `CONNECTION_NOT_FOUND` |
| Google locations, only when `VALID` ([Query Google Locations](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/gbplocation-v1/query-google-locations.md)) | `POST https://www.wixapis.com/gbp/v1/locations/query-with-google` with `{"query": {"cursorPaging": {"limit": 20}}}` | Per location: `location.id`, `googleLocation.title`, `googleLocation.metadata.newReviewUri` (the link a client leaves a review at; empty when Google has none yet), `googleError` |
| Reviews, only when `VALID`, per location ([List Reviews](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/gbplocation-v1/list-reviews.md)) | `GET https://www.wixapis.com/gbp/v1/locations/<location.id>/reviews?orderBy=NEWEST&paging.limit=50` | `reviews[].{reviewId, starRating, comment, reviewerDisplayName, anonymousReviewer, reply, createTime}` (`reply` is absent on an unanswered review); `metrics.{averageRating, totalReviewCount}` |
| Business ([Get Site Properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties.md)) | `GET https://www.wixapis.com/site-properties/v4/properties` | `properties.businessName`, `properties.siteDisplayName`, `properties.description` |
| Services ([Query Services](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/query-services.md)) | `POST https://www.wixapis.com/bookings/v2/services/query` with `{"query": {"paging": {"limit": 100}}}` | Per service: `id`, `name`, `type`, `hidden`, `urls.bookingPage.url` |
| Clients by where they booked, last 90 days ([Query Semantic Model Data](https://dev.wix.com/docs/api-reference/business-management/analytics/semantic-models/query-semantic-model-data.md)) | List and Get the model first, then `POST https://www.wixapis.com/analytics/semantic-model/v3/semantic-models/query-data`, as below | One row per booking platform |

The last read, in the site's time zone (see [Query Site Analytics](https://dev.wix.com/docs/api-reference/business-management/analytics/skills/query-site-analytics.md) for how to set `interval`):

```json
{
  "semanticModelId": "<id of the bookings model, from List Semantic Models>",
  "interval": { "start": "<90 days ago, local midnight, UTC>", "end": "<tomorrow, local midnight, UTC>", "timezone": "<site time zone>" },
  "fields": ["bookings.booking_platform", "bookings.customers_count"],
  "sort": { "fieldName": "bookings.customers_count", "order": "DESC", "nullsLast": true },
  "paging": { "limit": 20 }
}
```

Find the model first, as [Query Site Analytics](https://dev.wix.com/docs/api-reference/business-management/analytics/skills/query-site-analytics.md) shows: [List Semantic Models](https://dev.wix.com/docs/api-reference/business-management/analytics/semantic-models/list-semantic-models.md) (`GET https://www.wixapis.com/analytics/semantic-model/v3/semantic-models`) and keep the `id` of the model whose `slug` is `bookings`, then [Get Semantic Model](https://dev.wix.com/docs/api-reference/business-management/analytics/semantic-models/get-semantic-model.md) (`GET https://www.wixapis.com/analytics/semantic-model/v3/semantic-models/<id>`) and check that `bookings.booking_platform` and `bookings.customers_count` are among its dimensions and measures. Use the ID and field names those calls return. After the query, check that both fields appear in `results[].fields`: a field that is missing was dropped, so the read failed, and it never means zero clients. With no `bookings` model, a missing field or a failed read, the note uses no number. Each row's `bookings.booking_platform` is a value such as `booking_platform_web` or `booking_platform_dashboard`; the Google row is the one whose value contains `google`.

## The note

Three sentences at most, before the steps. It says why Google suits this business. It reads like someone who knows the business, not like a report.

- Talk about the business: what it offers, who books, how people find it. Take this from `properties.description`, the visible services' names and the reviews' comments.
- Tie one true thing about it to why Google fits (people looking for a service nearby compare listings, photos and reviews before they book), and end with where to start, in the owner's terms.
- Use at most one number. Either clients who booked through Google, when that row has at least 5 ("12 clients booked you through Google in the last three months"), or the profile's rating, when it has at least 5 reviews ("4.9 stars from 87 reviews"). With neither, use no number.
- Never list problems (unanswered reviews, a missing connection: those are the steps), never explain how the channel works, never promise results, and say nothing that was not read in this session.

Example: "Clients keep mentioning how calm the studio feels, and 4.9 stars from 87 reviews says it better than any ad. People choosing a massage nearby read those reviews and look at the photos before they book. I'd start with the reviews that are still waiting for a reply."

## The plan

| # | The line the owner reads | What happens |
|---|---|---|
| 1 | Reply to your Google reviews | [Step 1](#step-1-reply-to-google-reviews) |
| 2 | Email clients after each visit asking for a Google review | [Step 2](#step-2-ask-for-a-google-review-after-each-session) |
| 3 | Add photos of your work to your Google profile | [Step 3](#step-3-add-photos-to-the-google-profile) |
| 4 | Run a local ad with Google Ads with Wix | [Step 4](#step-4-run-a-local-ad-with-google-ads) |

The ad comes last: people who click a local ad check the reviews and photos next, so they pay off more once steps 1 to 3 are done.

### Step 1: Reply to Google reviews

Run it as [Reply to Google Reviews and Add Photos](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/skills/reply-to-google-reviews-and-add-photos-to-a-google-business-profile.md) shows, using the reviews already read. That recipe has the calls; this plan adds what is specific to a bookings business:

- Take the reviews with no `reply`, newest first, at most ten. None: say every review has a reply, and count the step as done.
- Mention the service or the session the client talks about, as the owner would ("so glad the deep-tissue session helped your shoulder").
- For a review of three stars or fewer, thank them, say sorry for what went wrong in one line without arguing or sharing anything private, and invite them to get in touch before their next booking.
- Never offer a discount, a free session or a gift in a reply.

### Step 2: Ask for a Google review after each session

1. **The review link** is `googleLocation.metadata.newReviewUri` from the Google locations read. Empty: say Google hasn't given the profile a review link yet, and stop the step.
2. **Look for one already set up:** `POST https://www.wixapis.com/automations-service/v2/automations/query` with `{"query": {"cursorPaging": {"limit": 100}}}`, and look for `configuration.trigger.triggerKey` equal to `wix_bookings-session_ends`. When one exists, say what it does, and ask whether to add the review request to it or leave it.
3. **Propose the automation** in one message: a day after each session ends, the client gets a short thank-you email in the owner's voice with a button to leave a review at the link. Show the subject and body. Ask to turn it on.
4. **Build it** on approval as [Build and Manage Wix Automations](https://dev.wix.com/docs/api-reference/business-management/automations/skills/build-and-manage-wix-automations.md) shows: trigger `wix_bookings-session_ends` ("Session ends") from Wix Bookings (`appId` `13d21c63-b5ec-5912-8397-c3a5ddb27a97`), which was confirmed with Resolve Triggers on a Wix Bookings site; confirm it the same way before building, as that recipe's step 1 says, a one-day delay ([Automation Schemas and Scheduling](https://dev.wix.com/docs/api-reference/business-management/automations/skills/automations-schemas-and-scheduling.md)), and one email to the client with the review link. Activate it as that recipe shows.

Never offer a discount, a gift or a draw for a review: Google's policy forbids rewarding reviews. The email asks; it never pays.

### Step 3: Add photos to the Google profile

Run it as [Reply to Google Reviews and Add Photos](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/skills/reply-to-google-reviews-and-add-photos-to-a-google-business-profile.md) shows. For a bookings business, propose up to five photos that show the work, the space or the team: `AT_WORK` for sessions and the team serving clients, `INTERIOR` for the space, `TEAMS` for the people.

### Step 4: Run a local ad with Google Ads

A local ad is a Performance Max Leads campaign that sends people to the booking page.

1. **The landing page** is `urls.bookingPage.url` of the visible service that most clients book, from the services read. Ask the owner when several services are equally likely.
2. **Account.** Follow [Install Google Ads and Create an Account](https://dev.wix.com/docs/api-reference/business-management/marketing/ads/google-ads/skills/install-google-ads-and-create-an-account.md): its STEP 0 finds an existing account, and its STEP 1 checks that the site is eligible (published, Premium plan, connected domain). Not eligible: give that recipe's fixes and stop the step.
3. **The campaign.** Follow [Create and Launch a Performance Max Campaign](https://dev.wix.com/docs/api-reference/business-management/marketing/ads/google-ads/skills/create-and-launch-a-performance-max-campaign.md) for `campaignType` `PERFORMANCE_MAX_LEADS`, with the landing page as the asset group's `finalUrl`, the service's name in the headlines, and a daily budget from its STEP 4 recommendation, created as a `DRAFT`.
4. Show the campaign (name, landing page, daily budget in the site's currency, the headlines), and ask to launch it. Launch only after a yes, as that recipe's STEP 5 shows, and say a leads campaign needs about four weeks to learn before results settle.

## How to talk to the business owner

- **Calm, short and on their side.** One to three sentences per message outside the plan. No exclamation points, no "please", no "sorry". "I" is only for what you checked or will change.
- **Use the names the owner sees in Wix** for what they will open: Google Business Profile, Automations, Media Manager, Google Ads with Wix. Say "clients", never "users". No API names, field names or error codes.
- **Real names and numbers from this business**: "4 reviews are waiting for a reply, the newest from Dana on Tuesday."
- **Every approval names the exact change** and gives a way to say no. Replies, photos, the automation and the campaign each get their own yes.
- **Answer in the language the owner writes in.** Dates, times and money use the site's time zone and currency.

## Guardrails

- Never write without the owner's yes to that change. Reading is free.
- Never invent a review, a photo, a review link or a rating.
- Never post a reply or launch a campaign whose text changed after the owner approved it: show it again.
- Never offer a reward for a review, in a reply, an email or anywhere else.
- A campaign spends the owner's money: launch it only after a yes that names the daily budget.
- Use only endpoints from this recipe or the recipes it links. Anything else is confirmed in the Wix REST docs first.

## Common mistakes

| Mistake | Fix |
|---|---|
| Trying to turn on booking from Google, or to read whether it's on | No API exists; take the owner's word |
| Calling the Google reviews or photos methods before the connection is `VALID` | Read the connection first; connect the profile when the owner starts step 1 to 3 |
| Offering a discount for a review | Google forbids rewarded reviews; ask only |
| Sending the review email without a link | Use `metadata.newReviewUri`; when it's empty, stop the step |
| Launching the campaign before the owner approved its budget | Create it as a `DRAFT`, show it, launch on a yes |
| Listing unanswered reviews in the note | The note is about the business; the reviews are step 1 |