> 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/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/introduction.md

## Article Content:

# About the Recommendation Settings API

The Recommendation Settings API allows you to manage how menu item recommendations work for each [operation](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/operations/introduction.md) of a restaurant. Recommendations suggest additional menu items to customers while they order online, for example a drink to go with a pizza.

With the Recommendation Settings API, you can:

- Retrieve the recommendation settings of an operation, or query the settings of several operations.
- Turn recommendations on or off, separately for a menu item's details and for the purchase flow.
- Choose the strategy used to select recommended items for each of these placements.

Recommendation settings don't return recommended items. To retrieve the items to recommend, specify a strategy from the settings when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md) in the Recommendations API.

## Lifecycle of recommendation settings

Each operation has exactly 1 recommendation settings object. Its ID is the same as the operation ID.

Recommendation settings can't be created or deleted manually. They're created automatically when an operation is created, and deleted when the operation is deleted.

New recommendation settings have recommendations turned off for both placements, and both strategies set to `FREQUENTLY_ORDERED_TOGETHER`.

## Before you begin

It's important to note the following points before starting to code:

- This API requires Wix Restaurants Orders (New) to be installed on the site. If you're using this API in an app, add Wix Restaurants Orders (New) as an app [dependency](https://dev.wix.com/docs/build-apps/launch-your-app/market-listing/add-your-app-audience-info.md).
- A site has recommendation settings only for its existing operations. If a site has no operations, there's nothing to retrieve or update.
- The `enabled` values are stored preferences. The client that displays recommendations is responsible for checking them, as Wix's online ordering pages do. Get Recommendations returns recommendations regardless of these values.
- When you update a strategy, it's replaced as a whole. Specify the strategy's `type`, and also `featuredOptions.featuredInfos` when the type is `FEATURED`.

## Use cases

- [Build a custom recommendations settings page](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/sample-flows.md#build-a-custom-recommendations-settings-page)

## Terminology

- **Operation**: A service a restaurant offers, such as takeaway or catering. Each operation has its own online ordering configuration.
- **Recommendation settings**: The recommendation configuration of a single operation.
- **Placement**: Where recommendations are shown to customers.
  - **Item details**: The details of a single menu item, for example the item modal on an ordering page.
  - **Purchase flow**: The steps of placing an order, such as the cart and checkout.
- **Strategy**: The method used to select recommended items.
  - **Frequently ordered together**: Items that customers often order together with given items.
  - **Best sellers**: Items ordered most often from the operation.
  - **Featured**: Items that have any of the specified featured types.
- **Featured type**: The reason a menu item is featured, such as popular, new, or seasonal. Featured types are set on menu items.

