This article outlines the flow for moderating site visitor reviews using the Reviews and Moderation Rules APIs. It covers creating reviews, setting up automated moderation, and handling flagged content.
Note: On Wix sites, you can manage and moderate reviews with the Wix Reviews app.
It's important to note the following points before starting to code:
The following diagram shows the full reviews and moderation flow.

The following steps describe the complete flow for creating reviews with automated moderation and handling reviews that require manual approval.
Create moderation rules that define how reviews are evaluated after being submitted. Each rule pairs a trigger with an action. For example, to manually moderate reviews that include images, create a rule with trigger.contentFeaturesOptions.images set to true and action.type set to NEEDS_MANUAL_APPROVAL.
Action: Call Create Rule.
Result: Moderation rule created.
Reviews are created when site visitors submit them through a form, or when you programmatically create them via the Reviews API.
Action: Call Create Review. To import or migrate multiple reviews, call Bulk Create Review.
Result: Review created with a moderation status of SUBMITTED. Continue to Step 3.
Action: The system automatically checks the submitted review against active moderation rules:
moderationStatus of the review is updated to APPROVED.action.type is REJECT, the moderationStatus of the review is updated to REJECTED.action.type is NEEDS_MANUAL_APPROVAL, the moderationStatus of the review is updated to IN_MODERATION.Possible results:
Retrieve reviews that require manual moderation and evaluate their content.
Action: Call Query Reviews with a filter for moderation.moderationStatus equal to IN_MODERATION. Use the returned review content for evaluation.
Result: A list of reviews requiring manual evaluation.
For each review, evaluate its content, decide to approve or reject, and update its status accordingly.
Action: For each review, call Update Moderation Status with reviewId set to that review's ID. To process multiple reviews at once, call Bulk Update Moderation Status.
Possible Results:
After implementing this flow, you have a review moderation system that automatically evaluates reviews against moderation rules and provides a workflow for manually evaluating flagged content.