Skip to main content
Security notice: The Life Inside platform is not affected by the PHP vulnerabilities CVE-2026-109618 and CVE-2026-109619. No action is required for your use of Life Inside. Assessed 23 October 2026. Questions: legal@lifeinside.io

Wix chatbot: how to add an AI chat agent with Custom Code

A Wix chatbot from Life Inside answers visitors' questions from your own content, in the language they write in, and points them to the next step. Wix accepts it through Custom Code in your site's Settings, as long as two things are in place first: a premium site plan and a connected domain.

This guide covers both, then the steps, the settings that matter and how to test it. It is one of our platform install guides, and if you would rather do it together, book a demo.

What you need

  • A Wix Premium or Studio site plan. Wix requires one before you can connect your own domain.
  • A connected domain and a published site. Wix lists both as conditions for adding custom code.
  • Your Life Inside snippet with your own widget ID, sent by Life Inside when your agent is set up.
  • A Life Inside AI Agent plan. See the pricing page.

Add the Life Inside snippet to Wix

Your snippet, with your own widget ID, comes from Life Inside when your agent is set up. It looks like this:

<script>
  (function () {
    var s = document.createElement("script");
    s.src = "https://widget.lifeinside.io/loader/latest/widget";
    s.charset = "UTF-8";
    s.async = true;
    s.onload = function () {
      WidgetWrapper.mount({ id: "YOUR_WIDGET_ID" });
    };
    document.body.appendChild(s);
  })();
</script>
  1. Go to Settings in your site's dashboard.
  2. Click Custom Code in the Development & integrations section.
  3. Click + Add Custom Code at the top right.
  4. Paste the Life Inside snippet in the text box and give it a name you will recognise, such as Life Inside chat.
  5. Under Add Code to Pages, choose All pages. Wix then asks whether to load the code once per visit or on each page your visitor opens; ask Life Inside which to pick.
  6. Under Place Code in, choose Body - end.
  7. Click Apply.

Why a premium plan and a connected domain come first

Wix only adds custom code to sites that are published and have a connected domain, and connecting your own domain needs a Premium or Studio site plan. So a free site on a Wix address cannot use custom code, and with it a chat agent snippet.

Wix also ties each code snippet to a specific domain. If you later assign a different domain to the site, Wix deletes the snippets, and you add the Life Inside snippet again. Secondary domains need nothing, because their traffic redirects to the primary domain.

Wix custom code: placement and Code Type

Wix offers three places for code: Head, Body - start and Body - end. Choose Body - end. The Life Inside snippet adds the chat widget to the page body, so it should run after the page content, which is also the general rule Wix gives: verification and tracking codes in the head, other functional scripts in the body.

Each snippet also has a Code Type tab with four categories: Essential, Marketing, Analytic and Functional. Wix treats custom code as Essential by default, which means it loads before visitor consent. Wix asks you to categorise code by its purpose so your cookie banner can respect visitors' choices.

The Life Inside widget sets no cookies, and conversation data is EU-hosted under a data processing agreement. Which category you choose is a decision for whoever owns your privacy policy; our GDPR page has the details they will want.

What a Wix AI chatbot does for a service business

If you run a small business on Wix, you are probably also the one answering the phone. The agent takes the repeat questions off that pile. It answers from the pages, price lists, FAQs and documents you approve, and guides visitors to a booking link, a contact form or the right page. When a question needs a person, it points the visitor to the right contact instead of guessing.

  • Repeat questions: what is included, how long it takes, what to bring, where you are. See customer service.
  • Visitors who write in another language: the agent answers in more than 60 languages, in the language the visitor writes in.
  • A face behind the business: the agent can show an interactive video of you or your team in the same chat window, and the visitor keeps chatting afterwards.
  • What people ask before they book: AgentLoop shows the questions, topics and knowledge gaps with suggested fixes, so you know which page to improve next.

Show the chatbot on chosen pages only

In step 5, choose Choose specific pages instead of All pages and pick the pages from the drop-down menu.

Check that it works

If the widget does not appear, check that the snippet is switched on in the Custom Code list and placed in Body - end. Wix introduced new front-end security measures for custom code in December 2025, which can block some snippets until the provider updates them, so contact Life Inside if it still does not show.

  1. Open your published site on its connected domain.
  2. Look for the Life Inside widget in a bottom corner of the page.
  3. Ask a question your content answers, then one it should not know. The agent should say it does not know and point to the right contact.
  4. Confirm the conversation appears in AgentLoop.

Frequently asked questions

Not with custom code. Wix requires a published site with a connected domain, and connecting your own domain needs a Premium or Studio site plan.

No. Life Inside installs with one snippet in Custom Code, placed at Body - end on all pages or on the pages you choose. Life Inside can install it with you.

Wix ties code snippets to a specific domain. If you assign a different domain to your site, Wix deletes the snippets, so add the Life Inside snippet again afterwards.

The snippet loads the widget script asynchronously, so the browser keeps loading your page while the widget loads. Placing it at Body - end means it runs after the page content.

No. The Life Inside website widget sets no cookies. Wix still asks you to give each custom code snippet a Code Type, so agree the category with whoever owns your privacy policy.

Life Inside is not a live chat inbox. When a question needs a human, the agent points the visitor to the right contact or booking link instead of guessing.

Adding the snippet takes a few minutes. Life Inside builds the knowledge base with you from your site and documents, and most agents go live within a day.

Sources

Updated 2026-10-27