> 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/business-solutions/events/registration/event-guests/sample-use-cases-and-flows.md

## Article Content:

# Event Guests: Sample Use Cases & Flows

This article presents possible use cases and corresponding sample flows that you can support. This can be a helpful jumping off point as you plan your implementation.

## Send invitations to customers for a new event

A lot of Wix users want to re-engage attendees who have previously participated in similar events or activities. You can retrieve the guest list from a past event and create a targeted email campaign that includes details about the upcoming event. The invitation can be tailored based on the past attendance history (see [Get guest attendance analytics](#get-guest-attendance-analytics)) or preferences of guests. This use case can be an effective way to increase attendance at future events, and generate more interest in them.

> **Note**: This flow assumes your guests already have the ability to subscribe to your newsletters.

To send invitations about an upcoming event, follow these steps:

1. [Query Event Guests](https://dev.wix.com/docs/api-reference/business-solutions/events/registration/event-guests/query-event-guests.md) by a previous `eventId`.

2. Retrieve all the email addresses from the `guestDetails` object, and pass them to your email marketing tool.

3. Request and filter the list of subscribers in your email marketing tool by the retrieved emails. 

4. Filter the list once again by the subscription status.

5. The contacts who have opted-in to marketing emails are now ready to receive the invitations.

## Get guest attendance analytics

An analytics system can provide valuable insights into guest attendance at events, making it easier to track and analyze data on attendance patterns, behavior, and preferences. For example, you can periodically check attendance for events to determine which events often have no-shows. This information could help determine if certain events need more advertising, reminders, or a change to pricing. For example, people are more likely to attend if they have paid, even a small amount, to attend.

To get attendance analytics, follow these steps:

1. [Query Event Guests](https://dev.wix.com/docs/api-reference/business-solutions/events/registration/event-guests/query-event-guests.md) of each past event, filtering by `eventId`.

2. For each event and each of its guests, retrieve the `guestDetails.checkedIn` value.

3. Calculate for each event how many `guestDetails.checkedIn` values are `false` and compute the attendance ratio.