> 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 Flow

## Article: Sample Flow

## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/portfolio/sample-flow.md

## Article Content:

# Portfolio: 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.

## Organize real estate property listings

You can use the Wix Portfolio APIs to organize and showcase property listings on a site, where each listing represents a project. You can also group listings into collections based on property types, such as "Luxury Homes" or "Beachfront Properties."

To organize property listings on a portfolio site:

1. Call [Update Portfolio Settings](https://dev.wix.com/docs/api-reference/business-solutions/portfolio/portfolio-settings/update-portfolio-settings.md) to define the portfolio settings for the property listings site.

2. Call [Create Collection](https://dev.wix.com/docs/api-reference/business-solutions/portfolio/collections/create-collection.md) for each property type, such as "Luxury Homes" or "Beachfront Properties." Save each collection ID for later steps.

3. Listen for the [Project Created](https://dev.wix.com/docs/api-reference/business-solutions/portfolio/projects/project-created.md) and [Project Item Created](https://dev.wix.com/docs/api-reference/business-solutions/portfolio/project-items/project-item-created.md) events to detect when the Wix user creates new projects and project items. Save each project ID for a later step.

4. The Wix user creates projects for each property listing using [Wix Portfolio](https://support.wix.com/en/article/wix-portfolio-managing-your-wix-portfolio), adding media items such as images and videos. The events from step 3 trigger automatically each time a project or project item is created.

5. Analyze each project's details and media items, then call [Update Project](https://dev.wix.com/docs/api-reference/business-solutions/portfolio/projects/update-project.md) with the relevant project ID and collection ID to assign it to a collection.