> 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: Sample Flows

## Article: Sample Flows

## Article Link: https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/site-readiness-v1/sample-flows.md

## Article Content:

# GSC Site Readiness: Sample Flows

This article presents possible use cases and corresponding sample flows that you can support. It provides a useful starting point as you plan your implementation.

## Set up a site in Google Search Console

A Wix user wants their site verified, added to Google Search Console, submitting its sitemap, and indexed. Your app clears the readiness blockers first, then walks the site through the remaining setup steps.

> **Prerequisite:** Connect a Google account to the site with the [GSC Connection API](https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/connection-v1/introduction.md), and wait until the connection's status is `VALID`.

To set up a site:

1. Call [Get Site Readiness](https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/site-readiness-v1/get-site-readiness.md). If `status` is `READY`, the site's connection and ownership verification are in place, so continue from step 4.
1. If `status` is `NOT_READY`, act on the returned `blockingReason`:
    - `SITE_OWNER_NOT_VERIFIED`: call [Verify Site](https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/site-readiness-v1/verify-site.md). Verification runs synchronously against Google, so allow up to a minute. If the call fails with `FAILED_PRECONDITION`, resolve the reported problem first: publish the site, connect a domain, or allow search-engine indexing.
    - `NOT_CONNECTED`: the site has no Google account connected. Connect one with the [GSC Connection API](https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/connection-v1/introduction.md).
    - `SITE_NOT_ADDED`: the connection works, but the site isn't a property in the connected account's Search Console yet. Call [Add Site](https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/site-readiness-v1/add-site.md).
    - `TOKEN_INVALID`: the stored Google credentials stopped working. Reconnect the Google account with the [GSC Connection API](https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/connection-v1/introduction.md).
    - `DOMAIN_MISSING`: Google Search Console setup needs a connected domain. Have the Wix user connect one before continuing.
    - `SITE_NOT_CREATED`: the site doesn't exist yet. Have the Wix user create and publish it before continuing.
    - Any other value: treat the site as not ready, and don't assume a next action. New blocking reasons can be added over time.
1. Call [Get Site Readiness](https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/site-readiness-v1/get-site-readiness.md) again after each successful action, and repeat until `status` is `READY`. Read the current `blockingReason` each time instead of reusing an earlier one, because a response reports only the first step that's still blocking.
1. Call [Add Site](https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/site-readiness-v1/add-site.md) to add the site as a property in the connected account's Search Console, then call [Submit Sitemap](https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/site-readiness-v1/submit-sitemap.md). The sitemap, which is generated and hosted by Wix, is submitted to the property. Google processes sitemaps asynchronously, so check the processing state later with [List Sitemaps](https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/site-readiness-v1/list-sitemaps.md).
1. Call [Request Site Indexing](https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/site-readiness-v1/request-site-indexing.md) to ask Google to crawl the site. A successful call means Google accepted the request into its crawl queue, not that the site is indexed.

Readiness reports the site's Google connection and ownership verification. It doesn't track the property steps in steps 4 and 5, so call those in order yourself.

## Show the site's search performance

Your app has a dashboard that shows how the site performs in Google Search: total clicks and impressions over time, and the top search queries.

To show search performance:

1. Call [Get Search Analytics](https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/site-readiness-v1/get-search-analytics.md) with `?startDate=2026-08-01&endDate=2026-08-31&dimensions=date` to get a daily row for the period. Each row's `keys` holds the date, alongside its `clicks`, `impressions`, `ctr`, and `position`.
1. Call it again with `dimensions=query` and a `rowLimit` to get the top search terms for the same period.
1. Render the daily rows as a chart and the query rows as a table. Page through large result sets with `startRow` and `rowLimit`.

## Inspect the site's pages

A Wix user wants to know which of their pages are indexed by Google and which have issues. Your app runs Google URL inspection on the site's pages and presents the results.

To inspect pages:

1. Call [Inspect URLs](https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/site-readiness-v1/inspect-urls.md) with the IDs of the pages to inspect. The response contains the results of the first batch of pages.
1. If the returned `status` is `ONGOING`, Wix is still inspecting the remaining pages server-side. Poll [Get Inspection](https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/site-readiness-v1/get-inspection.md) every few seconds until `status` is `COMPLETE` or `ERROR`. Large inspections can take several minutes.
1. Check `remainingPageCount` in the final response. A value above zero means the connected account's Google inspection quota ran out before every page was inspected, so the missing pages can be inspected after the quota resets, using `updateResults: true` to merge the new results into the stored ones.
1. Present each result. The `page` object identifies the inspected page, and `data` carries Google's raw URL-inspection payload, including the index status verdict and any issues Google reports.

## Inspect a single URL

A Wix user just published or fixed a page and wants to know how Google sees it right now. Your app inspects that one URL and shows the verdict, without starting a background inspection.

To inspect a single URL:

1. Call [Inspect URL](https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/site-readiness-v1/inspect-url.md) with the page's full `url`. The call is synchronous and typically takes several seconds, so allow a request budget above 10 seconds.
1. Read `data.indexStatusResult`: `verdict` and `coverageState` say whether Google has the page indexed, and `inspectionResultLink` opens the same report in Google Search Console.
1. If the page isn't indexed yet, offer [Request Page Indexing](https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/site-readiness-v1/request-page-indexing.md) for that `url`. Each Inspect URL call consumes one of the 2,000 daily inspections Google allows per property, so don't poll it in a loop.