---
title: "Embed to Wix websites"
url: "https://help.magicblocks.ai/en/article/embed-your-ai-agent-on-your-wix-website"
language: "en"
last_updated: "2026-03-18T08:19:26.206Z"
---

# Embed to Wix websites

Want your AI Sales Agent working 24/7 right on your site? Here’s how to embed your MagicBlocks Agent into your Wix website, in minutes.

## **What You’ll Need Before You Start**

Before we jump in, make sure you have everything ready:

-   A **published** AI Agent built in MagicBlocks
-   Your **MagicBlocks Embed Code** (here’s the step-by-step on how to get the code ([Embedding](https://help.magicblocks.ai/en/article/embedding-your-ai-agent-to-a-website)).
-   Access to your **Wix Dashboard**

This method will embed your Agent across **every page** of your site, perfect for maximizing contact capture and instant engagement.

## **Step-by-Step: How to Embed Your AI Agent on Wix**

### **1\. Copy the Embed Code from MagicBlocks**

Start in your MagicBlocks dashboard:

1.  Go to **Agents**
2.  Select the Agent you want to go live with
3.  Navigate to the **Go Live**
4.  **Copy** the code to Embed.![1](https://export.supademo.com/renders/ad7kzdm79a/out.png)

This is the script you’ll paste into Wix to activate the Agent on your site.

This video will explain the step-by-step process on how to embed your AI Agent on Wix:

### **2\. Log In to Wix**

1.  Head over to [wix.com](http://wix.com/) and sign in to your Wix account.
2.  From your dashboard, select the site you’d like to install the AI Agent on.

### **3\. Open Site Settings**

In the left-hand menu, scroll down and click on **Settings**.![2](https://export.supademo.com/renders/ngi6a8q1fg/out.png)

### **4\. Navigate to “Custom Code” Settings**

Under the “Settings” menu, scroll to **“Development & Integrations”**, then click **“Custom Code”**.

This section lets you insert scripts that will run globally on your website.![3](https://export.supademo.com/renders/7vt7ap7ado/out.png)

### **5\. Paste Your MagicBlocks Embed Code**

Here’s how to add your AI Agent script:

Click **“+ Add Custom Code”**![4](https://export.supademo.com/renders/2tanz0gn4u/out.png)

Paste the script you copied from MagicBlocks![5](https://export.supademo.com/renders/m7hyg8d6gf/out.png)

Under **“Place Code In”**, select **“Head”**

![6](https://export.supademo.com/renders/5n7nbmkw75/out.png)Toggle the switch to **Applied on: All pages.** Click **Apply** to save your changes![7](https://export.supademo.com/renders/0uoktdx3gn/out.png)

![8](https://export.supademo.com/renders/7bsid2v8td/out.png)

### **Your AI Agent Is Live! 🎉**

Once saved, your AI Agent is live and visible on the page! You’ll see the chat icon appear in the corner. Now it’s time to interact with your AI Agent and test it! Try different conversation flows and make sure everything runs smoothly.
