Quay lại bảng điều khiển

Tài liệu

Tìm hiểu cách sử dụng Asyntai

How to Add Asyntai AI Chatbot to Sellfy

Step-by-step guide for Sellfy stores

Lấy Mã Nhúng

Bước 1: Lấy Mã Nhúng của Bạn

Đầu tiên, đi đến Bảng điều khiển Asyntai và cuộn xuống phần "Mã Nhúng". Sao chép mã nhúng duy nhất của bạn sẽ trông như thế này:

<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>

Lưu ý: Mã ở trên chỉ là ví dụ. Bạn phải sao chép mã nhúng duy nhất của riêng mình từ Bảng điều khiển vì nó chứa ID tiện ích cá nhân của bạn.

Before you start: The Custom code field is only available on Sellfy's paid plans. It is not included during the free trial. If you're still on the trial, upgrade to any paid plan first, then follow the steps below.

Step 2: Open Your Store Customizer

Sellfy lets you add code to every page of your store through the Store Customizer:

  1. Log in to your Sellfy dashboard
  2. In the left-hand menu, click Store settings
  3. Click the Customize store button to open the Store Customizer

Mẹo: The Store Customizer is where you manage your store's look and settings. The Custom code field lives inside its General settings section.

Step 3: Add the Embed Code to Custom Code

Inside the Store Customizer, add your Asyntai embed code to the footer custom code field:

  1. In the left-hand menu of the Customizer, open General settings
  2. Scroll down to the Custom code (Header / Footer) section
  3. Paste your Asyntai embed code into the Footer code field
  4. Click Publish to apply the changes to your live store
<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>

Mẹo: Adding the code to the Footer field ensures the widget loads after your page content, keeping your store fast. This method adds the chatbot to every page of your Sellfy store automatically.

Lưu ý: Remember to replace YOUR_WIDGET_ID with your own widget ID from the embed code you copied in Step 1. Changes only go live after you click Publish.

Bước 4: Xác minh Cài đặt

After publishing your changes, open your Sellfy store 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.

Không thấy tiện ích? Make sure you clicked Publish after pasting the code. Clear your browser cache or view in incognito mode. Confirm your store is on a paid plan, since the Custom code field is not available on the trial. Check the browser console (F12) for any JavaScript errors.

Cần Trợ giúp?

If you're not comfortable editing store settings, Sellfy's support team can help you locate the Custom code field. You can also contact Asyntai support for guidance on installing the chatbot on your Sellfy store.

Nhắc nhở: The Custom code feature requires an active paid Sellfy plan. If you don't see the Custom code section, check that your subscription is active and not on the free trial.