> 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/account-level/studio-workspace/content-collector/intake-form-v1/sample-flows.md

## Article Content:

# Intake Forms: 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.

## Create an intake form and share it with a client

Collect project information from a new client by creating an intake form and
sharing it with them. The client signs in with a Wix account and fills out an
AI-generated questionnaire.

To collect project information from a new client:

1. Call [Create Intake Form](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/content-collector/intake-form-v1/create-intake-form.md) with the client's name, the
   project details, and the client's email address in `clientEmails`. The owner
   (`userId`) and `accountId` are set automatically from the caller's identity.
   To create the form first and share it later, leave out `clientEmails` and
   add it later with [Update Intake Form](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/content-collector/intake-form-v1/update-intake-form.md).

1. Send the client a link to the form. The link is
   `https://www.yoursitebrief.com/content-collector/{intakeFormId}`, where
   `{intakeFormId}` is the intake form's `id`. Until the form is shared
   (`publishDate` is set) and ready, the link shows the client a page saying
   the form isn't available yet. A new form can take about a minute to become
   ready after it's created.

   The client must sign in with an email address listed in `clientEmails` to
   open the form. The questionnaire is generated with AI the first time the
   form is opened.

1. Detect the submission by calling [Get Intake Form](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/content-collector/intake-form-v1/get-intake-form.md) or
   [Query Intake Forms](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/content-collector/intake-form-v1/query-intake-forms.md). The form is submitted when
   `clientFormInteraction.submissionDate` is set.

1. Call [Get Intake Form Submission](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/content-collector/intake-form-v1/get-intake-form-submission.md)
   to retrieve the client's answers, uploaded files, and notes.

## Export submitted intake forms to an external system

Periodically sync newly submitted intake forms to an external CRM or tracker.

To periodically sync submitted intake forms:

1. Call [Search Intake Forms](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/content-collector/intake-form-v1/search-intake-forms.md)
   without a free-text expression to retrieve the submitted intake forms in the
   partner's account, ordered by submission time. Set `cursorPaging.limit` to
   `100` (the maximum). While `pagingMetadata.hasNext` is `true`, pass
   `pagingMetadata.cursors.next` as `cursorPaging.cursor` to retrieve the next
   page:

    ```json
    {
      "search": {
        "filter": {
          "clientFormInteraction.submissionDate": { "$exists": true }
        },
        "sort": [
          { "fieldName": "clientFormInteraction.submissionDate", "order": "ASC" }
        ],
        "cursorPaging": { "limit": 100 }
      }
    }
    ```

   On later runs, retrieve only forms submitted since the last run.
   `submissionDate` is set shortly after the client submits, so a form can
   appear with a slightly earlier `submissionDate` than one you already
   processed. To avoid missing forms, subtract a few minutes from the timestamp
   you saved in step 3, and skip intake form IDs you've already exported:

    ```json
    {
      "search": {
        "filter": {
          "clientFormInteraction.submissionDate": { "$gt": "<LAST_PROCESSED_DATETIME>" }
        },
        "sort": [
          { "fieldName": "clientFormInteraction.submissionDate", "order": "ASC" }
        ],
        "cursorPaging": { "limit": 100 }
      }
    }
    ```

1. For each returned intake form, call
   [Get Intake Form Submission](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/content-collector/intake-form-v1/get-intake-form-submission.md)
   to retrieve the client's answers, uploaded files, and notes. Upload the
   intake forms and their submissions to the external system.

1. Save the `submissionDate` of the most recent intake form you processed.

1. Repeat steps 1 to 3 for each run. You can let the user configure the interval
   to fit their needs.

## Find a client's intake forms for an AI assistant

Let an AI assistant work with a partner's own intake forms by searching for the
forms a user asks about.

To find a client's intake forms for an AI assistant:

1. Call [Search Intake Forms](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/content-collector/intake-form-v1/search-intake-forms.md) with a free-text expression to
   match against the client name and project name, for example the client the
   user asked about. Include `CONTEXT` in `fields` to get each form's
   AI-generated context. Results are scoped to the partner's account.

1. From the results, read each form's `project`, `context`, and
   `clientFormInteraction` state to summarize status or surface the details the user
   requested.

1. To act on a specific form, use its `id` with [Get Intake Form](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/content-collector/intake-form-v1/get-intake-form.md),
   requesting `SOURCE_MATERIALS` in `fields` when the assistant needs
   that data.