> ## Documentation Index
> Fetch the complete documentation index at: https://sitespeak.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to add ChatGPT to Wix

> Complete guide to installing an AI chatbot on your Wix website. Learn how to add custom code using Wix's Marketing Integration Tools.

Adding a custom trained AI chatbot to your Wix website enables you to provide instant customer support, answer common questions, and capture leads around the clock.

<Frame>
  <iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/VJ4pxY8DCUc" title="How to add an AI chatbot to Wix" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />
</Frame>

<Accordion title="Video transcript">
  In this tutorial, I'll show you how to add a ChatGPT AI chatbot to your Wix website. We'll create and train it on your own content, then add it to your site so it can answer your visitors' questions around the clock.

  Before you can add your agent to Wix, you need to create and train it. After you log in to SiteSpeak, you land on the Get Started page, which walks you through it in five quick steps. First, give your agent a name. This is the name your visitors will see when they chat with it. Click Save and Continue to create the agent. Next, add the website you want your agent to learn from. For this example I'll use snapwidget.com. Click Save and Continue, and SiteSpeak crawls the site to find pages it can train on. In a few seconds, it finds the main pages on the site. SiteSpeak selects those pages for you. Click Save and Continue to train your agent on them. SiteSpeak now trains your agent on that content automatically. Once it finishes, your agent is ready to answer questions, and you can add it to your Wix website.

  Once your agent is trained, open Install Agent in SiteSpeak and copy your JavaScript snippet. Adding custom code to Wix needs a Premium plan, and your site must be published to a domain. In the Wix Editor, click Add Elements, the plus icon on the left. Select Embed Code, then choose Custom Code under Marketing Integration Tools. In the Custom Code dialog, click Add Code in the Head section. Paste your SiteSpeakAI snippet into the Add Custom Code box. Give it a name like SiteSpeakAI Chatbot, choose to load it on all pages, then click Apply. Click Publish to make your changes live. The chatbot only shows on your published site, not in the editor preview. Your chatbot button now appears on your live Wix website. Visitors can click it to open the chat and start asking questions, around the clock.

  And that's it. Your ChatGPT AI chatbot is now live on your Wix site, trained on your content and ready to help your visitors.
</Accordion>

<Warning>
  Adding custom code to your Wix website requires a **Premium plan**. Your site must also be published and connected to a domain for the chatbot to appear on your live site.
</Warning>

## Add your chatbot to your Wix website

### In SiteSpeakAI

Select your chatbot from the dropdown menu at the top, click on the **Install Agent** section in the sidebar, then click on the **Copy Code** button to copy your code snippet.

<img src="https://mintlify.s3.us-west-1.amazonaws.com/espressodev/images/installing-your-chatbot/copy-code.png" alt="Copy code snippet" />

### In Wix

1. In the Wix Editor, click **Add Elements** (the plus icon)

![WIX - Add a new element\_2.png](https://nyc3.digitaloceanspaces.com/cdn.sitespeak.ai/uploads/help-center/images/nxo7auOSY58Z59vt8mDOWjTUTIvep4njEKFOsyqc.png)

2. Select **Embed Code**, then choose **Custom Code** under **Marketing Integration Tools**

![WIX - Add the Custom Code Element\_2.png](https://nyc3.digitaloceanspaces.com/cdn.sitespeak.ai/uploads/help-center/images/YAkqGKAnFRMRkOLEP8xSiucDfWt1OKDeAjmTCvGt.png)

3. Click **Add Code** in the **Head** section of the Custom Code dialog

![WIX - Custom Code Modal\_2.png](https://nyc3.digitaloceanspaces.com/cdn.sitespeak.ai/uploads/help-center/images/w4c2btE8lfTGrE5HEn8wwVZ4Xs5domc3KIRkM56o.png)

4. Paste your chatbot code snippet into the **Add Custom Code** modal
   * Give it a name like "SiteSpeakAI Chatbot" to identify it easily
   * Choose whether to display on **All pages** or a specific page

5. Click **Apply** to save your changes

![WIX - Custom Code Entry\_2.png](https://nyc3.digitaloceanspaces.com/cdn.sitespeak.ai/uploads/help-center/images/stApQFONPnInXRvNAJ8EIK9yl8RQbPOcdnE0fGb4.png)

6. Click **Publish** to make your changes live

![WIX - Publish Site\_2.png](https://nyc3.digitaloceanspaces.com/cdn.sitespeak.ai/uploads/help-center/images/hP3GsrcTiUITJXCbkDvrmHH6nKaQ9J90BoFQojBL.png)

<Note>
  The chatbot will only appear on your published site, not in the Wix Editor preview. You must publish your changes to see the chatbot.
</Note>

7. Your chatbot button will now appear on your live website

![Wix - Chatbot Button.PNG](https://nyc3.digitaloceanspaces.com/cdn.sitespeak.ai/uploads/help-center/images/b0YktZknskdUnqYtU226VLSccIrVSjAVTulY8JsB.png)

8. Visitors can click the button to open the chat and start asking questions

![Wix - Chatbot Dialogue.PNG](https://nyc3.digitaloceanspaces.com/cdn.sitespeak.ai/uploads/help-center/images/LQjOC826XYjlBjO9FJpKTugEHYXF5fOyZhogg6J8.png)

## Alternative: Using an HTML embed

If you prefer to embed the chatbot in a specific location on your page rather than as a floating widget:

1. In the Wix Editor, click **Add Elements** > **Embed Code** > **Embed HTML**
2. Drag the HTML widget to where you want the chatbot to appear
3. Click **Enter Code** and paste the iFrame embed code from SiteSpeakAI
4. Resize the embed box as needed
5. Publish your site

This method is useful if you want the chatbot to appear inline within your page content rather than as a floating button.

## Mobile responsiveness

The SiteSpeakAI chatbot widget is fully responsive and works on all devices. On mobile, the chat button automatically adjusts its position to avoid interfering with navigation elements. You can customize the mobile position offset in your SiteSpeakAI dashboard if needed.

## Troubleshooting

**Chatbot not appearing after publishing?** Clear your browser cache and reload the page. Wix may cache your site for performance.

**Custom Code option not available?** Make sure you have a Wix Premium plan. Custom code features are not available on free Wix sites.

**Chatbot appears in wrong position?** Adjust the position and offset settings in your SiteSpeakAI appearance settings. You can position the widget in any corner and set custom margins.

**Preview not showing the chatbot?** This is expected behavior. Wix's preview mode doesn't load custom code. You must publish your site to see the chatbot.

***

<Card title="Ready to automate your customer service with AI?" icon="bot" href="https://sitespeak.ai/register?utm_source=docs&utm_medium=cta&utm_campaign=primary-cta" arrow="true" cta="Create Your AI Agent">
  Join over 1000+ businesses, websites and startups automating their customer service and other tasks with a custom trained AI agent.
</Card>
