Manual Embedding in Wix
This guide explains how to manually embed a FormAgent.ai agent into your Wix site using the Custom Code feature.
Prerequisites
- You have a published Wix site with a connected domain (Sign up here)
- You have a FormAgent.ai account and have obtained your Agent ID
Embedding Steps
1. Open Custom Code Settings
- Go to your Wix site's dashboard.
- Click Settings in the left sidebar.
- Scroll down to the Advanced section and click Custom Code.
2. Add the FormAgent.ai Script
- Click + Add Custom Code at the top right.
- Paste the following code snippet into the text box, replacing
YOUR_AGENT_ID
with your actual Agent ID:
<script defer id="formagent-script" src="https://formagent.ai/embed.js" data-agent-id="YOUR_AGENT_ID"></script>
- Enter a name for your code, such as
formagent
. - Under Add Code to Pages, select All pages (recommended) or choose specific pages as needed.
- Under Place Code in, select Body - end.
- Click Apply to save your changes.
The FormAgent.ai chat widget will now be embedded on your Wix site.
Troubleshooting
- If the chat widget does not appear, double-check your Agent ID and the script placement.
- Clear your cache and reload the page.
Support
If you have any questions, please contact Support.