> 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 Use Cases and Flows

## Article: Sample Use Cases and Flows

## Article Link: https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/member-reports/sample-use-cases-and-flows.md

## Article Content:

# Member Reports: 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.

## Notify members who are reported for spam

You may want to notify members when they're reported for spam. For example, if a member repeatedly posts promotional links in a forum and is reported for spam, a notification gives them a chance to correct their behavior or appeal.

> **Prerequisite:** [Create an email template](https://support.wix.com/en/article/email-marketing-creating-and-sending-a-campaign-from-start-to-finish) to send to members who are reported for spam.

To notify members who are reported for spam:

1. Listen for [Member Report Created](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/member-reports/member-report-created.md). When the event is triggered, check whether `createdEvent.entity.reason.category` is `"SPAM"`. If it is, save `createdEvent.entity.reportedMemberId`.
1. Call [Get Member](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/member-management/members/get-member.md) with the saved reported member ID as `id`, and save `member.loginEmail`.
1. Send the email template to the saved email address.

## Prevent abuse of the reporting system

Members could misuse the reporting system, for example by submitting false or repeated reports to target another member. Tracking how often each member submits reports helps you detect this and keeps the Wix user's review workload manageable.

To prevent abuse of the reporting system:

1. Listen for [Member Report Created](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/member-reports/member-report-created.md). When the event is triggered, save `createdEvent.entity.reportingMemberId`.
1. Call [Query Member Reports](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/member-reports/query-member-reports.md), filtering by the saved reporting member ID and by `createdDate` for the time frame you want to check. Count the returned reports.
1. If the count exceeds your threshold, [block](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/member-management/members/block-member.md) the reporting member.

## Clear reports after resolving them

After the Wix user handles reports about a member, for example by contacting the member or confirming the reports were unfounded, you may want to clear those reports so the member no longer appears as reported.

To clear reports about a member:

1. Call [Query Member Reports](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/member-reports/query-member-reports.md), filtering by `reportedMemberId`, to retrieve the reports about the member and show them to the Wix user.
1. After the Wix user resolves the reports, call [Delete Member Reports](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/member-reports/delete-member-reports.md) with the member's ID as `memberId`.
1. Optionally, listen for [Reported Member Deleted](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/member-reports/member-report-reported-member-deleted.md) to update any external system that tracks reported members.