> 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/business-solutions/restaurants/reservations/sample-flows.md

## Article Content:

# Sample Flow
This article presents a possible use case and corresponding sample flow that you can support. This can be a helpful jumping-off point as you plan your implementation.

## Reservation app for restaurants on a Wix site
A company wants to build an app that allows customers to see available time slots and make reservations at any restaurant on a Wix site.

### Prerequisites
The Wix user must do the following:
* Install the Table Reservations app. 
* Configure at least 1 location in the dashboard.
* Ensure manual approval is disabled for online reservations at all locations. (It is disabled by default.)

### Flow
To create an app that allows customers to make reservations at restaurants listed on a site’s business info page, follow this basic flow:

1. Call [`List Reservation Locations`](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/reservations/reservation-locations/list-reservation-locations.md) in the Reservation Locations API to get a list of restaurant locations and present them to the customer to choose from.
2. When the customer selects a reservation location, record its ID and direct them to a page where they can enter party size and date. Pre-fill the date with the current date, and party size with 2. 
3. When the page initially loads, and whenever the party size or date changes, use the reservation location’s ID along with the selected party size and date to call [`Get Time Slots`](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/reservations/time-slots/get-time-slots.md) in the Time Slots API. Set `slotsBefore` and `slotsAfter` to your preferred values.
4. Using the information returned from `Get Time Slots`, find the start dates of time slots with the status `AVAILABLE` and present them for the customer to choose from. 
5. When a customer selects a time slot, call [`Create Held Reservation`](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/reservations/reservations/create-held-reservation.md) in the Reservations API with the selected reservation location ID, date, and party size.
6. Redirect the customer to a new page where they can enter their details and confirm their request for a reservation. 
7. When the customer confirms the request, call [`Reserve Reservation`](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/reservations/reservations/reserve-reservation.md) in the Reservations API to add the additional details to the reservation and change its status to `RESERVED`.
8. Notify the customer that their reservation has been approved.