> 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: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/crm/community/feedback-moderation/reviews/reviews/introduction.md

## Article Content:

# About the Reviews API

With the Reviews API you can manage reviews for a site's services, content, or products. The review entity contains the content of the review, a rating score, and information about the author. Learn more about [Wix Reviews](https://support.wix.com/en/article/wix-stores-adding-and-setting-up-wix-reviews).

The Wix Reviews API allows you to:

- Import reviews from other sites and export reviews to other sites.
- Retrieve and display positive review data.
- Retrieve data on negative reviews, allowing you to respond effectively.
- Use the [Media API](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) to retrieve related review media.

## Moderation

If moderation is turned on, reviews are checked for content that requires moderation. If moderation is required, reviews remain as pending until a Wix user rejects or approves them in the site's [dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Freviews/pending). 
A Wix user can configure moderation settings in the site's [dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Freviews/settings/moderation). Learn more about [managing reviews](https://support.wix.com/en/article/wix-stores-managing-wix-reviews).

## Before you begin
It's important to note the following points before starting to code:

- The Reviews API is currently only available with the `"stores"` namespace.
- Every review needs a contact. To check whether a contact exists, you can call the [Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/query-contacts.md) with the author's email address.
- A review author is limited to 1 review per entity. Duplicate reviews receive an error response.

## Use cases
- [Real-time 2-way sync with an eCommerce solution](https://dev.wix.com/docs/rest/crm/community/reviews/reviews/sample-flows.md#real-time-2-way-sync-with-an-ecommerce-solution)
- [Display review media in a widget](https://dev.wix.com/docs/rest/crm/community/reviews/reviews/sample-flows.md#display-review-media-in-a-widget)
- [Get immediate updates of negative customer feedback](https://dev.wix.com/docs/rest/crm/community/reviews/reviews/sample-flows.md#get-immediate-updates-of-negative-customer-feedback)
- [Display the most helpful product reviews in a widget](https://dev.wix.com/docs/rest/crm/community/reviews/reviews/sample-flows.md#display-the-most-helpful-product-reviews-in-a-widget)

## Terminology

- **Entity**: The entity to review. For example, a Wix Stores product.  
- **Namespace**: The Wix service that the Reviews API is integrated with. Currently only Wix Stores is supported.
- **Rating**: The rating score for the review item. An author can give a rating score between 1 and 5. The rating displays with the site review.  
- **Helpfulness**: Helpfulness is the overall helpfulness score calculated by subtracting `foundUnhelpful` from `foundHelpful` in a review. Site visitors can indicate whether a review was helpful or not.  
- **Reply**: A direct reply to a review. The reply displays with the review.  

## SDK Setup
  `@wix/reviews`

To use the API, install the `@wix/reviews` package.

#### Install the package

Follow the installation instructions for your development environment.

| Development environment | Installation method |
|--|--|
| Wix sites (editor or IDE) | Use the [package manager](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-in-the-editor.md). |
| Wix sites (local IDE) | Run `wix install @wix/reviews` using the [Wix CLI](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-with-the-wix-cli.md).|
| Blocks apps | Use the same installation method as Wix sites. |
| CLI and self-hosted apps | Run `npm install @wix/reviews` or `yarn add @wix/reviews`. |
| Headless sites and apps | Run `npm install @wix/reviews` or `yarn add @wix/reviews`. |

#### Import the package

To import the package in your code:

```js
import { reviews } from '@wix/reviews'
```

#### Import types

Types for this API are accessed through the `reviews` namespace you already imported above, as `reviews.<TypeName>`, using any type name shown in these docs.
  