Atpakaļ uz informācijas paneli

Dokumentācija

Uzziniet, kā lietot Asyntai

How to Add Asyntai AI Chatbot to Wix Studio

Step-by-step guide for Wix Studio sites

Iegūt iegulšanas kodu

1. solis: Iegūstiet savu iegulto kodu

Vispirms dodieties uz savu Asyntai vadības paneli un ritiniet uz leju līdz sadaļai "Iegultais kods". Nokopējiet savu unikālo iegulto kodu, kas izskatīsies šādi:

<script>(function(){var l=function(){var s=document.createElement("script");s.src="https://widget.asyntai.com/static/js/chat-widget.js";s.async=true;s.setAttribute("data-asyntai-id","YOUR_WIDGET_ID");document.head.appendChild(s)};if(document.readyState==="complete"){l()}else{window.addEventListener("load",l)}})();</script>

Piezīme: Iepriekš minētais kods ir tikai piemērs. Jums jānokopē savs unikālais iegultais kods no sava Vadības paneļa, jo tas satur jūsu personīgo logrīka ID.

Before you start: To use Custom Code in Wix Studio, your site must be published and connected to a domain. If your site isn't live yet, publish it first, then return to this guide.

Step 2: Open Custom Code in Your Site Dashboard

Wix Studio lets you add third-party scripts to every page from the site dashboard, without touching the editor:

  1. Log in to your Wix Studio account and open the Dashboard for the site you want to edit
  2. In the dashboard sidebar, click Settings
  3. Under the Development & integrations section, click Custom Code
  4. At the top right, click + Add Custom Code

Padoms: The Custom Code page is part of your site dashboard (business tools), not the Wix Studio Editor canvas. If you are inside the Editor, look for the dashboard link to switch over.

Step 3: Paste Your Asyntai Embed Code

In the Add Custom Code panel, configure the snippet so it loads on your whole site:

  1. Paste your Asyntai embed code into the code snippet text field
  2. Enter a descriptive name for the snippet, for example Asyntai Chatbot, so you can find it later
  3. Under Add Code to Pages, select All pages so the chatbot appears everywhere. You can leave the load option set to Load once
  4. Under Place Code in, select Body - end for the best page load performance
  5. Click Apply to save and publish the snippet
<script>(function(){var l=function(){var s=document.createElement("script");s.src="https://widget.asyntai.com/static/js/chat-widget.js";s.async=true;s.setAttribute("data-asyntai-id","YOUR_WIDGET_ID");document.head.appendChild(s)};if(document.readyState==="complete"){l()}else{window.addEventListener("load",l)}})();</script>

Piezīme: The three placement options are Head, Body - start, and Body - end. Asyntai works with any of them, but Body - end is recommended so the widget loads after your page content.

4. solis: Pārbaudiet instalēšanu

After clicking Apply, open your published Wix Studio site in a new browser tab or incognito window. You should see the chat widget button in the bottom right corner. Click it to ensure it opens and functions correctly.

Neredzat logrīku? Custom Code only runs on your live, published site, not in the editor preview. Make sure the site is published and connected to a domain, clear your browser cache or view in incognito mode, and confirm the snippet is set to All pages. Check the browser console (F12) for any JavaScript errors.

Nepieciešama palīdzība?

If you're not comfortable adding custom code, Wix Support can walk you through the Custom Code settings in your dashboard. You can also contact Asyntai support for guidance on installing the chatbot on your Wix Studio site.

Profesionāls atbalsts: Because Wix Studio is built for agencies and freelancers, you can also ask the designer or Wix Partner who built your site to add the snippet through the Custom Code panel.