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

Tài liệu

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

Tính năng
Thanh Ask AI Thanh tìm kiếm AI Tìm kiếm AI cho WordPress AI Search for Joomla AI Search for Webflow AI Search for Ghost AI Search for Moodle AI Search for TYPO3 AI Search for Craft CMS AI Search for Grav AI Search for Concrete CMS AI Search for October CMS AI Search for ProcessWire AI Search for Odoo AI Search for Bagisto AI Search for Medusa AI Search for OpenCart AI Search for BigCommerce AI Search for Magento Thu thập dữ liệu Website Lỗ hổng tri thức Thẻ sản phẩm Thẻ sản phẩm động Hình ảnh động Ngữ cảnh Người dùng Công cụ tùy chỉnh Tham số liên kết Giám sát trực tiếp Tiếp quản bởi Con người Chuyển tiếp Thông báo AI Báo cáo Hàng ngày Nguồn Dữ liệu Thời gian thực Nguồn Dữ liệu Thời gian thực Tối đa Thành viên Nhóm Đăng nhập một lần Xác thực hai yếu tố Bao gồm Hình ảnh Nhận diện Hình ảnh Tiện ích Dịch thuật Bản địa hóa Tính minh bạch AI Khách hàng tiềm năng Thu thập Khách hàng Thông minh Phiếu Hỗ trợ Danh mục trò chuyện Đặt lịch Nhúng Loại trừ Trang IP bị chặn Chính sách lưu trữ Chế độ không lưu trữ Che dữ liệu cá nhân (PII) Bộ phân loại câu trả lời Access Tags Ghim phiên bản Widget Nhật ký kiểm toán Mô hình Thông minh hơn Bật Suy nghĩ Gợi ý Trả lời Tin nhắn Theo dõi Chuyển Giọng nói thành Văn bản Tải xuống Bản ghi Chat Nhúng Nhúng bằng iframe

How to Add Asyntai AI Chatbot to Shoptet

Step-by-step guide for Shoptet e-shops

Lấy Mã Nhúng

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

First, go to your Asyntai Dashboard and scroll down to the "Embed Code" section. Copy your unique embed code which will look like this:

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

Step 2: Open the HTML Codes Editor in Shoptet

Shoptet has a built-in section for inserting custom HTML and JavaScript, so you never need to touch the theme's source files:

  1. Log in to your Shoptet administration
  2. In the left-hand menu, open Appearance and content (Czech: Vzhled a obsah)
  3. Click Editor
  4. Select HTML code (Czech: HTML kód)

Lưu ý: This section is available on all Shoptet plans and is intended for advanced users. Shoptet technical support does not assist with custom HTML, CSS, or JavaScript, so keep a copy of anything you paste here.

Step 3: Paste the Embed Code into the Footer Field (Recommended)

The HTML code editor has several fields. To load the chatbot on every page of your e-shop, use the footer field:

  1. Find the field labelled Footer (before the closing BODY tag) (Czech: Zápatí (před koncovým tagem BODY))
  2. Paste your Asyntai embed code into this field:
<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>
  1. Click Save to apply the change
  2. The chatbot will now appear on all pages of your store automatically

Mẹo: Placing the code in the footer field (before the closing BODY tag) ensures the page content loads first, so the chat widget never slows down your store.

Alternative: Use the Header Field

If you prefer to load the script in the page head, the same HTML code editor offers a header field:

  1. In Appearance and content → Editor → HTML code, find the field labelled Header (before the closing HEAD tag) (Czech: Záhlaví (před koncovým tagem HEAD))
  2. Paste the same Asyntai embed code into this field
  3. Nhấp Save

Lưu ý: You only need to add the embed code in one place. Use either the footer field or the header field, not both, to avoid loading the widget twice. The footer field is recommended for the best page performance.

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

After saving your changes, open your Shoptet e-shop 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 saved the HTML code field. Clear your browser cache or view in incognito mode. Shoptet may cache pages, so changes can take a few minutes to appear. Check the browser console (F12) for any JavaScript errors.

Cần Trợ giúp?

The HTML code section is intended for advanced users, and Shoptet support does not help with custom code. If you get stuck, contact Asyntai support for guidance on installing the chatbot on your Shoptet store.

Hỗ trợ chuyên nghiệp: If you would rather not edit the code yourself, a Shoptet partner or freelance developer can add the embed snippet for you in just a few minutes.