> 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/crm/community/feedback-moderation/moderation-rules/sample-flows.md

## Article Content:

# Moderation Rules: Sample Use Cases & 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.

## Check Wix Blog comments for rule violations

To prevent the publication of spam content on a blog, which often includes links to advertised products or services, phishing sites, or fraudulent schemes, you can implement a moderation rule that applies only to site visitors, excluding members. Once this rule is defined, any comment containing links will be rejected.

To check comments for rule violations:

1. [Create a rule](https://dev.wix.com/docs/rest/crm/community/moderation-rules/create-rule.md) to define conditions on which the content will be rejected. For example:

    ```json
    {
      "rule": {
        "namespace": "comments/14bcded7-0066-7c35-14d7-466cb3f09103",
        "name": "Restrict links in comments",
        "audience": {
          "type": "VISITORS"
        },
        "trigger": {
          "contentFeatures": {
            "videos": false,
            "images": false,
            "links": true
          }
        },
        "action": {
          "type": "REJECT"
        }
      }
    }
    ```

1. After a site visitor submits the comment, call [Check Content](https://dev.wix.com/docs/rest/crm/community/moderation-rules/check-content.md) to verify that the comment does not break any rules.


## Sync moderation rules across all sites

If you have several eCommerce sites, you might need to sync moderation rules for product reviews across those sites. For example, you have a new rule, that from now on, all 1-star ratings must go through a manual review. This change also needs to be reflected on other sites.

To sync the rule across all sites:

1. Call [Get Rule](https://dev.wix.com/docs/rest/crm/community/moderation-rules/get-rule.md) on the site where you created a new rule.

1. Extract the whole `rule` object. Remove unnecessary fields, like `createdDate`.

1. Call [Create Rule](https://dev.wix.com/docs/rest/crm/community/moderation-rules/create-rule.md) for your other sites and pass the new rule to each.