Skip to main content

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​

  1. Go to your Wix site's dashboard.
  2. Click Settings in the left sidebar.
  3. Scroll down to the Advanced section and click Custom Code.

2. Add the FormAgent.ai Script​

  1. Click + Add Custom Code at the top right.
  2. 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>
  1. Enter a name for your code, such as formagent.
  2. Under Add Code to Pages, select All pages (recommended) or choose specific pages as needed.
  3. Under Place Code in, select Body - end.
  4. 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.