> 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/domains/domain-dns/sample-flows.md

## Article Content:

# Sample Use Cases & Flows: Domain DNS

This article shares a possible use case your implementation could support, as
well as a sample flow. You're not limited to this use case, but it can be a
helpful jumping off point for your planning.

## Update DNS records for a domain

You can update the MX and TXT records for a domain purchased through Wix, and connect it to an external (non-Wix) site.

To update the DNS records for a domain:

1. Prompt the site owner for the relevant domain name, DNS record type, and host name of the registered domain. 
1. Call [Update DNS Zone](https://dev.wix.com/docs/rest/account-level/domains/domain-dns/update-dns-zone.md)
   to change the MX and TXT records in Google's Cloud DNS.
1. Connect the domain to the external site.

## Connect an external domain by nameservers to a Wix site

You could help Wix site owners connect an external domain by nameservers to
their site. Note that you can't use
[Update DNS Zone](https://dev.wix.com/docs/rest/account-level/domains/domain-dns/update-dns-zone.md)
for external domains that are connected by pointing.

To connect an external domain by nameservers to a Wix site:

1. If the relevant site is a free Wix site, call
   [Resellers Create Package v2](https://dev.wix.com/docs/api-reference/account-level/resellers/packages-and-product-instances/create-package-v2.md)
   to assign a Premium plan to it.
1. Register the domain through an external provider.
1. Call [Create Connected Domain](https://dev.wix.com/docs/api-reference/account-level/domains/connected-domains/connected-domain-v1/create-connected-domain.md)
   to start the connection process. Make sure to use
   `{"connectionType": "NAMESERVERS"}`.
1. Call [Get Connected Domain Setup Info](https://dev.wix.com/docs/api-reference/account-level/domains/connected-domains/connected-domain-setup-info-v1/connected-domain-setup-info-object.md)
   to retrieve the new DNS record values. You find them in
   `connectedDomainSetupInfo.pointingRecords.aRecord.values`
   and `connectedDomainSetupInfo.pointingRecords.cnameRecord.value`.
1. Call [Update DNS Zone](https://dev.wix.com/docs/rest/account-level/domains/domain-dns/update-dns-zone.md)
   to change the A and CNAME records in Google's Cloud DNS.
1. Call [Get Connected Domain](https://dev.wix.com/docs/api-reference/account-level/domains/connected-domains/connected-domain-v1/get-connected-domain.md)
   to monitor the connected domain's `dnsPropagationStatus` and confirm that it
   changes to `"COMPLETED"`.