Ready to build with AI? This article showcases some sample prompts and flows an AI agent can run using the Wix MCP. These give you a strong starting point to explore what’s possible and accelerate your development.
Let’s say you want to take actions like updating store products, creating a new bookings service, or approving a member on a site. Instead of searching the documentation and implementing the APIs yourself, the Wix MCP can train your AI agent to take these actions for you.
Prompt: Apply a 15% discount to all products on the site Party Costume Store for 1 week starting from today.
Expected AI response: The AI agent creates a coupon giving customers a discount for 15% off all products.
Prompt: Create a data collection called Contact Labels on my site with 3 columns: name (string), email (string), label (string). Encrypt the name and email fields as PII.
Expected AI response: The AI agent creates a data collection with the requested fields on the site. The name and email fields are marked as PII.
Prompt: On site Joann’s Salon, add a new staff member with Wix Bookings.
Expected AI response: The AI agent adds a new staff member.
Prompt: What are the services on site Tax Consultation Business?
Expected AI response: The AI agent queries the available services on the site and lists them for you. You can extend the prompt by requesting to book one of the services, and the agent creates a new booking for you at the requested time.
Prompt: Send an inbox email message to Joe White in the site Just Bags. The message should say "This is a test message" and also attach an image.
Expected AI response: The AI agent searches for the contact and creates a new contact if it doesn’t find one. It then sends the inbox email message with the attached image.
Prompt: Could you create 5 new blog posts for me? Use the site DIY Activities and make the posts about various topics–fishing, video-making, and yoga. Then publish these posts for me.
Expected AI response: The AI agent creates 5 new blog posts about the given topics and publishes them on the site.
The Wix MCP makes it easy to develop your Wix Headless site directly in your AI agent. The MCP helps your agent set up a headless project and update the project code to take actions on your site.
Prompt: Create a new Wix Headless site.
Expected AI response: The AI agent creates a new Wix Headless site in your sites list.
Prompt: I want to create a log in page, and authenticate it using Wix Headless authentication. Add a new page in this project called login.tsx and write the code I need to authenticate with Wix.
Expected AI response:
The AI agent creates a login.tsx file in your local repository and adds the code needed to authenticate with Wix.
Prompt: Write code for my current headless client that lets site visitors register for events. Add this code to a local file called registration.tsx.
Expected AI response:
The AI agent creates an registration.tsx file in your local repository and adds code that uses the Events APIs to let visitors register for an event on the site.
Prompt: Retrieve data from my Wix CMS collection named "Real estate properties" and filter items where the title includes the word "beach". Display these items on a page called items.tsx.
Expected AI response:
The AI agent finds and retrieves all properties with the word “beach” in the title from your headless site collection Real estate properties, and writes code to display them in items.tsx.
If you’re confused about how to create code using a specific API, or don’t want to code parts of your app yourself, you can ask the AI agent to generate code for you. The Wix MCP trains the agent to generate correct examples and flows for working with Wix APIs.
Prompt: Give me example code in Node.js to use the Block Member method of Wix Members.
Expected AI response: The AI agent generates some JS code showing how to block a member using the Members API. You can copy this code or use further prompts to build more extensive code.
Prompt: Show me python code that uses Create Booking from Wix Bookings.
Expected AI response: The AI agent returns the steps required to create a booking and gives a minimal code example that you can copy and expand on.
Prompt: Show my todos collection in my app’s dashboard page.
Expected AI response: The AI agent edits the app code in your local files to display the collection as a table on the dashboard page.
Prompt: Create a form in my dashboard page with first name, last name and email.
Expected AI response: The AI agent adds Wix design system elements to the dashboard page code in your local editor to build a form with the requested fields. You can continue prompting it to add elements, required fields, and field validation to further develop your dashboard page form.
The Wix MCP lets you perform site-level actions through the AI agent, such as creating and publishing sites.
Prompt: Can you create a new Wix site for me?
Expected AI response: The AI agent prompts you for some extra information, like the type of site and a site name, and then creates the site for you.
Prompt: Install Wix Blog for me on the site The Travel Writer.
Expected AI response: The AI agent installs Wix Blog on the requested site.
Prompt: Publish the site The Travel Writer.
Expected AI response: Publishes the site The Travel Writer.
Here's some tips to try if your AI agent isn't returning the results you want:
When you write prompts for an AI agent using the Wix MCP, the more specific the request is, the more likely it is that the result will be helpful and correct. Try the following to improve your agent’s response:
Especially when starting a new chat, use the word “Wix” to cue the agent to use the Wix MCP. For example: “On the Wix site…”, “...using the Wix APIs”.
Tell the agent clearly which Wix business solution you’re referring to. For example, Wix Restaurants, Stores, and Events all have Orders APIs. To indicate which Orders API you want to use, include the name of the business solution you want to work with. For example, “List the orders on a site using the Events APIs”.
Give the agent specific instructions on what you want it to do. This improves the response and prevents the agent from changing files unexpectedly.
For example, if you want example code you can copy, use a prompt like "Write sample code that uses the Wix Members API to block a member". If you want the agent to create code for you, use a prompt like "Write code that blocks a member on a Wix site and add it to a file members.tsx".
Sometimes even if the prompt is good, the request fails or doesn’t return the result you expect. The issue may be the LLM you’re working with. Common tools like Cursor and Windsurf use GPT-4.1 by default. Try changing to a different model such as Sonnet 3.7 or Gemini 2.5.
Depending on the prompt you give it, your AI agent may make changes to your local code files or live site. To prevent the agent from making unwanted changes, consider disabling auto-run mode in the agent’s settings. This forces the agent to request your permission to run MCP tools, which gives you a chance to review any actions before it continues.
In particular if you're building an app or a headless site, we recommend starting your project from one of our app or headless templates. Then, you can return to your IDE and use the MCP to develop your project from the template. This gives the AI agent more context about what you're trying to create, and may achieve better results.
Last updated: 29 November 2026