> 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/assets/rich-content/site-context-v1/sample-flows.md

## Article Content:

# Ricos Site Context API: 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.

## Let users link to a static page

A rich content editor can let users add a link to one of the site's pages, such as the home page or an about page. Store the page's `path` as the link target, so the link keeps working if the site's domain changes.

To let users link to a static page:

1. Call [List Static Pages](https://dev.wix.com/docs/api-reference/assets/rich-content/site-context-v1/list-static-pages.md) to retrieve the pages. While `pagingMetadata.hasNext` is `true`, call it again with `paging.cursor` set to `pagingMetadata.cursors.next`.
2. Show the `title` of each page. When the user picks one, store its `path` as the link target.
3. To show a preview of the link, use the `url` of the page.
4. If `published` is `false`, tell users that the links don't work for visitors until the site is published.

## Let users link to a dynamic item page

A site with a collection, such as a list of team members in a Wix Data collection, has a dynamic page that generates one item page for each item. Users can link to a single item page.

To let users link to an item page:

1. Call [List Dynamic Pages](https://dev.wix.com/docs/api-reference/assets/rich-content/site-context-v1/list-dynamic-pages.md) to retrieve the dynamic pages.
2. Show the dynamic pages whose `hasItemPages` is `true`. If `published` is `false`, item pages aren't available yet, so don't show them.
3. When the user picks a dynamic page, call [List Dynamic Item Pages](https://dev.wix.com/docs/api-reference/assets/rich-content/site-context-v1/list-dynamic-item-pages.md) with its `path` as `prefix` and its `id` as `pageId`. While `pagingMetadata.hasNext` is `true`, call it again with `paging.cursor` set to `pagingMetadata.cursors.next`.
4. Show the `title` of each item page. When the user picks one, store its `path` as the link target.