> 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: wix-crm-backend

## Namespace: workflows

## Article: Introduction

## Article Link: https://dev.wix.com/docs/velo/apis/wix-crm-backend/workflows/introduction.md

## Article Content:

# Introduction
> **Note:** The Workflows API will be discontinued in the upcoming months. If you're already using this module in 
your code, it will continue to work. Our team is 
working to provide alternatives, and we'll provide timely updates before 
implementing any changes. We understand that this transition might present challenges, 
and we appreciate your patience and understanding.

The Workflows API is used to manage your site's
[workflows](https://support.wix.com/en/article/about-workflows).

 A workflow consists of a number of phases, also known as steps. The final phase
 in the workflow, the phase that indicates the workflow has been completed,
 is know as the win phase. Each phase can contain cards that move between the phases,
 indicating the card's progression through the workflow.

### Before you begin

Each workflow is limited to 5,000 cards.
To avoid hitting this limit, [archive cards](https://dev.wix.com/docs/velo/apis/wix-crm-backend/workflows/archive-card.md)
when they're no longer needed.

 ### Retrieving IDs

 When working with the Workflows API, you will often need to specify the ID of a
 workflow, phase, or card.

 You can retrieve these IDs using the following functions:

 + [`listWorkflowsInfo()`](#listWorkflowsInfo)
 + [`listPhasesInfo()`](#listPhasesInfo)
 + [`listCards()`](#listCards)

 Sometimes, you need to use more than one of these functions to retrieve
 the ID you need. For example, if you are looking to retrieve a specific card's ID
 using the [`listCards()`](#listCards) function, you need to at least provide a
 workflow ID. So, you call [`listWorkflowsInfo()`](#listWorkflowsInfo) to retrieve
 the workflow ID and then pass that ID to [`listCards()`](#listCards) to get the
 card ID.

 Note that IDs for workflows, phases, and cards are also returned when they are
 created using the [`createWorkflow()`](#createWorkflow), [`createPhase()`](#createPhase),
 and [`createCard()`](#createCard) functions. You can store these returned IDs and
 use them later.

 To use the Workflows API, import `workflows` from the `wix-crm-backend` module:

   ```javascript
   import { workflows } from 'wix-crm-backend';
   ```