Wix Integration Guide
Add the Demeterics AI Chat widget to your Wix website in minutes.
Requirements
- A Wix website (any plan)
- A Demeterics AI Chat widget (get your widget key from the AI Chat dashboard)
- Wix Premium Plan (required for Custom Code feature - most reliable method)
Method 1: Custom Code (Recommended)
This method works site-wide and is the most reliable option.
Step 1: Get Your Widget Code
- Log into your Demeterics dashboard
- Go to AI Chat
- Click on your widget
- Copy your Agent Key (e.g.,
DEM-A4E4OWSVGHBN)
Step 2: Add Custom Code in Wix
- Log into your Wix account
- Go to your site's dashboard
- Click Settings in the left sidebar
- Scroll down and click Custom Code under Advanced
- Click + Add Custom Code at the top right
Step 3: Configure the Widget
- Name your code: Enter "Demeterics AI Chat Widget"
- Paste the code in the code snippet box:
<!-- Demeterics AI Chat Widget -->
<script src="https://demeterics.com/widget/embed.js?k=DEM-YOUR-KEY-HERE" async></script>
<dem-agent name="default" title="Need help?" state="minimized"></dem-agent>
- Replace
DEM-YOUR-KEY-HEREwith your actual Agent Key - Select placement: Choose Body - end (recommended for best performance)
- Add code to pages: Choose All pages (or select specific pages)
- Click Apply
Step 4: Publish Your Site
- Click Publish in the top right corner of the Wix Editor
- Visit your live site to see the widget appear in the bottom right corner
Method 2: HTML Embed (Free Alternative)
If you don't have a premium plan, you can use an HTML iframe on specific pages.
Limitations: This only works on individual pages, not site-wide.
Steps:
- Open the Wix Editor
- Click the Add (+) button on the left sidebar
- Select Embed Code → HTML iframe
- Click Enter Code
- Paste your widget embed code:
<script src="https://demeterics.com/widget/embed.js?k=DEM-YOUR-KEY-HERE" async></script>
<dem-agent name="default" title="Need help?" state="minimized"></dem-agent>
- Replace
DEM-YOUR-KEY-HEREwith your actual key - Click Update
- Drag the widget element to the desired location on your page
- Repeat for each page where you want the widget
Note: The HTML iframe method may have positioning limitations. The Custom Code method is recommended for better user experience.
Customization Options
Change the Widget Title
<dem-agent name="default" title="Chat with us!"></dem-agent>
Use Different Prompts on Different Pages
If you've created multiple prompts in your Demeterics dashboard:
<!-- For product pages -->
<dem-agent name="sales" title="Product Questions?"></dem-agent>
<!-- For support pages -->
<dem-agent name="support" title="How can we help?"></dem-agent>
Start the Widget Open
<dem-agent name="default" title="Need help?" state="open"></dem-agent>
Troubleshooting
Widget doesn't appear
Check these:
- Did you publish your site after adding the code?
- Is your widget key correct?
- Is your Wix site domain added to Allowed Domains in your Demeterics widget settings?
- Are you using a Premium Wix plan with the Custom Code method?
Test in Preview mode first: Use Wix's Preview mode to check if the widget loads before publishing.
"Domain not allowed for this agent"
- Go to your Demeterics dashboard → AI Chat → Your Widget
- Add your Wix domain to Allowed Domains (e.g.,
yoursite.wixsite.comor your custom domain) - Save and refresh your website
Widget appears multiple times
If using Method 2 (HTML iframe) and the widget appears multiple times, make sure you've only added the embed code once per page.
Widget looks cut off or mispositioned
With Method 2 (HTML iframe), the widget may have positioning issues. We recommend upgrading to a Wix Premium plan and using Method 1 (Custom Code) for the best experience.
Need Help?
Email us: support@demeterics.com
We can help with:
- Setting up Custom Code in Wix
- Troubleshooting domain issues
- Writing custom prompts for your business
- Optimizing widget placement