+84902030918

AI OPERATIONS · TÀI LIỆUAI OPERATIONS · DOCS

Từ email mua gói đến trợ lý trả lời kháchFrom the purchase email to a consultant answering visitors

Nhúng trợ lý tư vấn lên website, nạp kiến thức bằng API hoặc để AI nạp qua MCP, và — với gói Pro — giao việc cho Thư ký cùng 9 phòng ban.Embed the consultant on your website, load knowledge through an API or let an AI load it over MCP, and — on Pro — hand work to the Secretary and its 9 departments.

Lĩnh vực của bạnYour sector

Chọn lĩnh vực gần nhất với doanh nghiệp của bạn — đoạn nhúng và đường dẫn trong trang này tự đổi theo.Pick the sector closest to your business — the embed code and links on this page follow it.

Tổng quanOverview

Starter Pro
Trợ lý tư vấn svc-aidesvc-aide consultant✓✓
Kho kiến thức riêng (API JSON, MCP)Own knowledge base (JSON API, MCP)✓✓
Nhúng lên website (1 thẻ script)Embed on your site (one script tag)✓✓
Thư ký AI svc-talksvc-talk AI Secretary—✓
9 phòng ban + phòng Tích hợp9 departments + Integration—✓
Giá / tháng (theo năm)Price / month (yearly) $12 ($9)$24 ($19)

Mọi gói dùng thử 14 ngày. Nâng cấp Starter → Pro giữ nguyên kho kiến thức, token và đoạn nhúng.Every plan has a 14-day trial. Upgrading Starter → Pro keeps your knowledge, token and embed code.

Bắt đầu nhanhQuick start

  1. Mua góiBuy a plan ở /system/pricing (PayPal). Email "Token MCP để nạp kiến thức cho trợ lý" tới ngay: MCP endpoint, MCP_TOKEN, đoạn nhúng có sẵn owner của bạn. at /system/pricing (PayPal). The email "MCP token" arrives right away: the MCP endpoint, your MCP_TOKEN, and embed code with your owner filled in.
  2. Nạp kiến thứcLoad knowledge — dán 1 đường dẫn API JSON trong Cài đặt trợ lý, hoặc cài MCP rồi bảo AI nạp (xem bên dưới). — paste a JSON API link in the assistant's settings, or install MCP and ask your AI to load it (see below).
  3. NhúngEmbed — dán 2 dòng vào website, trước </body>. — paste two lines into your website, before </body>.
  4. Hỏi thửAsk a question — mở trang, bấm nút trợ lý, hỏi điều chỉ kho của bạn mới có. — open the page, tap the assistant, ask something only your knowledge knows.
  5. Pro — vào /system/ecommerce, đăng nhập, nhắn việc cho Thư ký. — open /system/ecommerce, sign in, message the Secretary.

Nhúng trợ lý lên websiteEmbed the assistant

Một file JS tự đủ (không phụ thuộc gì, chạy trên mọi tên miền). Thay YOUR_HUB_ID bằng owner trong email: One self-contained JS file (no dependencies, works on any domain). Replace YOUR_HUB_ID with the owner from your email:

<script type="module" src="https://chatzui.com/embed/svc-aide.js"></script>
<svc-aide division="ecommerce.consult" owner="YOUR_HUB_ID"></svc-aide>

Theo nền tảngBy platform

  • HTML — dán ngay trước </body> của mọi trang (hoặc layout chung).paste right before </body> on every page (or the shared layout).
  • WordPress — plugin chèn mã header/footer (vd WPCode) → Footer; hoặc khối "Custom HTML" trong widget chân trang.a header/footer code plugin (e.g. WPCode) → Footer; or a "Custom HTML" block in a footer widget.
  • Shopify — Online Store → Themes → Edit code → layout/theme.liquid, dán trước </body>.Online Store → Themes → Edit code → layout/theme.liquid, paste before </body>.
  • Haravan / Sapo — Giao diện → Chỉnh sửa code → file layout chính, dán trước </body>.Themes → Edit code → the main layout file, paste before </body>.
  • Wix / Squarespace / Webflow — mục "Custom code" / "Code injection" của site, vị trí Body – end.the site's "Custom code" / "Code injection", placed at Body – end.

Thuộc tínhAttributes

owner BẮT BUỘC — hub id của bạn (trong email mua gói). Trợ lý CHỈ trả lời từ kho kiến thức này. Thiếu owner thì trợ lý không chạy trên site của bạn (kiến thức chung chỉ dành cho site của nền tảng).REQUIRED — your hub id (in the purchase email). The assistant answers ONLY from this knowledge base. Without it the assistant does not run on your site (the shared knowledge is for the platform's own sites).
division Phòng Tư vấn của lĩnh vực bạn chọn: <ngành>.consult — chọn ở Lĩnh vực của bạn đầu trang, đoạn mã tự đổi. Đang mở: ecommerce.consult, education.consult, fnb.consult.The Consult of the sector you pick: <sector>.consult — choose it under Your sector at the top, the code follows. Open now: ecommerce.consult, education.consult, fnb.consult.
theme dark (mặc định) hoặc light.dark (default) or light.
lang vi (mặc định) hoặc en — chữ trên giao diện; trợ lý trả lời theo ngôn ngữ khách hỏi.vi (default) or en — the interface text; answers follow the visitor's language.
x, y Vị trí nút nổi, mặc định 99% / 65% (như background-position).Floating button position, default 99% / 65% (like background-position).
types Chỉ dùng kiến thức các loại này, nối bằng | — vd product|faq. Trống = mọi loại.Only use these knowledge types, joined with | — e.g. product|faq. Empty = every type.
embedded Không có nút nổi — chỉ khung chat, lấp đầy phần tử chứa nó.No floating button — just the chat panel, filling its container.

Đặt trong trang thay vì nút nổiInline instead of a floating button

<!-- Khung chat nằm ngay trong trang (không nút nổi) — tự lấp đầy khung chứa -->
<div style="height: 560px; max-width: 420px">
  <svc-aide embedded division="ecommerce.consult" owner="YOUR_HUB_ID"></svc-aide>
</div>
<!-- The chat sits right in the page (no floating button) — it fills its container -->
<div style="height: 560px; max-width: 420px">
  <svc-aide embedded division="ecommerce.consult" owner="YOUR_HUB_ID"></svc-aide>
</div>

Màu và phông chữColors and fonts

Bundle mang sẵn bảng màu mặc định, chỉ áp lên thẻ svc-aide (không đụng phần còn lại của trang). Ghi đè bằng CSS của site: The bundle ships a default palette, applied to the svc-aide tag only (the rest of your page is untouched). Override it from your site's CSS:

svc-aide {
  --color-primary: #e11d48;      /* màu nhấn: nút, viền focus */
  --color-base-100: #ffffff;     /* nền panel */
  --color-base-content: #1f2937; /* chữ */
  --font-sans: "Inter", system-ui, sans-serif;
}
svc-aide {
  --color-primary: #e11d48;      /* accent: buttons, focus ring */
  --color-base-100: #ffffff;     /* panel background */
  --color-base-content: #1f2937; /* text */
  --font-sans: "Inter", system-ui, sans-serif;
}

Lịch sử chat của khách lưu ở trình duyệt của họ (IndexedDB), 30 ngày. Câu hỏi tối đa 2.000 ký tự.Visitor chat history lives in their own browser (IndexedDB) for 30 days. Questions are capped at 2,000 characters.

Nạp kiến thứcLoad knowledge

Trợ lý chỉ trả lời từ các dòng kiến thức của bạn — mỗi dòng phải tự đủ ý (tiêu đề + nội dung). Có 2 cách nạp, đều vào cùng một kho: The assistant answers only from your knowledge rows — each must be self-contained (title + content). Two ways in, both into the same base:

1. Từ API JSON, trong Cài đặt1. From a JSON API, in Settings

  1. Mở /system/ecommerce (trang lĩnh vực của bạn), đăng nhập bằng node Tài khoản (góc phải trên) đúng tài khoản đã mua gói. Open /system/ecommerce (your sector's page) and sign in with the Account node (top right) — the account that bought the plan.
  2. Mở node Tư vấn → nút ⚙ trên đầu khung chat → Nạp từ API & MCP. Open the Consult node → the ⚙ button atop the chat → Load from API & MCP.
  3. Dán đường dẫn, chọn Loại (product, faq, law, post, technical, finance, medical, other hoặc tự đặt) → Xem trước (5 mục mẫu + cách map) → Nạp dữ liệu. Paste the link, pick a Type (product, faq, law, post, technical, finance, medical, other or your own) → Preview (5 samples + mapping) → Load.

Không cần khai cột: hệ thống tự tìm mảng đầu tiên và đoán title/name/question, description/content/answer, id/slug/sku, tags. Ví dụ API hợp lệ: No field mapping needed: the first array is found and title/name/question, description/content/answer, id/slug/sku, tags are guessed. A valid API, for example:

[
  {
    "id": "sp-001",
    "name": "Áo khoác gió",
    "description": "Chống nước, 3 màu, size S–XL. Giá 450.000đ.",
    "tags": [
      "ao-khoac"
    ]
  },
  {
    "id": "faq-ship",
    "question": "Bao lâu thì nhận hàng?",
    "answer": "Nội thành 1–2 ngày, tỉnh 3–5 ngày."
  }
]
[
  {
    "id": "sku-001",
    "name": "Windbreaker jacket",
    "description": "Waterproof, 3 colors, sizes S–XL. $39.",
    "tags": [
      "jackets"
    ]
  },
  {
    "id": "faq-shipping",
    "question": "How long does delivery take?",
    "answer": "1–2 days in the city, 3–5 days elsewhere."
  }
]
  • Nạp lại cùng nguồn (nút ⟳ ở Nguồn đã lưu) cập nhật theo id — không nhân đôi. Tối đa 20 nguồn, 5 MB / lần.Reloading a source (⟳ under Saved sources) updates by id — never duplicates. Up to 20 sources, 5 MB per load.
  • Các dòng cùng tag tự nối với nhau, nên câu trả lời kéo theo kiến thức liên quan.Rows sharing a tag are linked, so answers pull in related knowledge.
  • Dòng trạng thái draft được lưu nhưng không tìm thấy. Dòng loại finance không bao giờ dùng để trả lời khách.Draft rows are stored but never found. finance rows are never used to answer visitors.

2. Để AI nạp qua MCP2. Let an AI load it over MCP

Cài 1 lần theo phần ngay dưới, rồi chỉ cần nói với AI — nó đọc được API, tệp (PDF, Markdown, bảng tính) hay văn bản bạn dán, tự tách thành các mục tự đủ ý và nạp vào. Xem lại bằng list_knowledge, xoá bằng delete_knowledge.Install once with the section right below, then just tell your AI — it can read an API, a file (PDF, Markdown, spreadsheet) or text you paste, split it into self-contained items and load them. Review with list_knowledge, remove with delete_knowledge.

MCP — cài tự độngMCP — auto install

MCP server của bạn chạy kiểu Streamable HTTP, xác thực bằng Authorization: Bearer MCP_TOKEN. Dán token (hoặc đăng nhập để cấp token mới điền sẵn), rồi chọn client — token không rời trình duyệt này. Your MCP server speaks Streamable HTTP, authenticated with Authorization: Bearer MCP_TOKEN. Paste the token (or sign in to issue a new one, filled in for you), then pick a client — the token never leaves this browser.

Các toolTools

Mọi tool tự giới hạn trong hub của token — không có tham số owner. list / import / upsert nhận thêm sector (ngành) và fn (phòng; consult = khung chat khách).Every tool is scoped to the token's hub — there is no owner parameter. list / import / upsert also take sector and fn (department; consult = the visitor chat).

hub_info Hub của token: owner, gói, nguồn đã lưu, số dòng kiến thức theo loại.The token's hub: owner, plan, saved sources, knowledge rows per type.
list_knowledge Các dòng gần đây — lọc theo loại, trạng thái, ngành, phòng.Recent rows — filter by type, status, sector, department.
import_url Đọc 1 API JSON và chép vào kiến thức (tự đoán cột; dryRun để xem trước).Read a JSON API and copy it into knowledge (fields guessed; dryRun to preview).
upsert_knowledge Ghi các mục AI tự soạn — cùng id thì cập nhật.Write items the AI shaped itself — the same id updates.
reindex_knowledge Lập lại chỉ mục tìm kiếm (vector + từ khoá) cho các dòng còn chờ.Rebuild the search index (vector + keyword) for pending rows.
delete_knowledge Xoá dòng theo id — chỉ của hub mình.Delete rows by id — your own hub's only.

Thử nói với AITry telling your AI

  • Gọi hub_info của astro-knowledge, cho tôi biết đang có bao nhiêu kiến thức.Call hub_info on astro-knowledge and tell me how much knowledge there is.
  • Nạp https://api.cuahang.vn/products vào trợ lý, loại product — chạy dryRun trước cho tôi xem cách map.Load https://api.myshop.com/products into the assistant as type product — dryRun first so I can check the mapping.
  • Đọc file chinh-sach-doi-tra.md này, tách thành các mục FAQ tự đủ ý rồi upsert_knowledge với loại faq.Read this returns-policy.md, split it into self-contained FAQ items and upsert_knowledge them as type faq.

Thư ký & 9 phòng ban (Pro)Secretary & 9 departments (Pro)

Chạy trong không gian làm việc trên canvas của lĩnh vực bạn chọn: /system/ecommerce. Đăng nhập đúng tài khoản Pro — các phòng đọc kho kiến thức của chính bạn, đúng phạm vi ngành / phòng. It runs in the canvas workspace of the sector you picked: /system/ecommerce. Sign in with your Pro account — every department reads your own knowledge, scoped to its sector / department.

  1. Nhắn việcSend the work — ở node Thư ký hoặc thanh lệnh dưới canvas: "Lên kế hoạch ra mắt dòng sản phẩm mới tháng sau". — in the Secretary node or the command bar under the canvas: "Plan next month's new product line launch".
  2. Duyệt bối cảnhApprove the framing — Thư ký dựng bối cảnh, dừng chờ bạn xem. — the Secretary frames the job and pauses for you.
  3. Duyệt phân côngApprove the routing — bảng phân công: thêm / bớt phòng, đổi phòng chủ trì, rồi duyệt. — the routing board: add or drop departments, change the lead, then approve.
  4. Các phòng làm việcThe departments work — đường nối trên canvas sáng lên khi Thư ký giao việc và khi phòng bàn giao về. Mỗi task là 1 thẻ: xem, duyệt từng bước, chạy lại. — links on the canvas light up as the Secretary hands work out and each handoff comes back. Every task is one card: view, approve step by step, re-run.
  5. Tích hợp ra quyết địnhIntegration decides — rà chéo bàn giao theo 14 tiêu chí: duyệt / duyệt có điều kiện / tạm hoãn / từ chối. — cross-checks the handoffs on 14 dimensions: approve / approve with conditions / hold / reject.
  • Tự động: bật ở đầu khung Thư ký — tự duyệt từng bước, tự tạo ảnh, tự chuyển phòng kế tiếp.Auto: switch it on atop the Secretary panel — approves each step, makes the images, hands on by itself.
  • Việc lẻ của 1 phòng: mở thẳng node của phòng đó, không qua Thư ký.A one-off job for one department: open that department's node directly, no Secretary needed.
  • Bàn giao dựa trên bản cũ của phòng trước được đánh dấu "cần xác minh lại" — chạy lại hoặc giữ nguyên.A handoff built on an older upstream version is flagged "needs re-checking" — re-run it or keep it.
  • Ngành đang mở: AI-Ecommerce, AI-Education, AI-F&B. Đang được chuyên gia rà soát: AI-Healthcare, AI-Real Estate (Y tế cần bác sĩ, Bất động sản cần luật sư ký duyệt trước khi chốt). Open sectors: AI-Ecommerce, AI-Education, AI-F&B. Under expert review: AI-Healthcare, AI-Real Estate (Healthcare needs a clinician, Real Estate a lawyer to sign off before the call).

Token & bảo mậtTokens & security

  • Giữ MCP_TOKEN như mật khẩu: ai có nó đều nạp / xoá được kiến thức của bạn. Hệ thống chỉ lưu SHA-256 và 4 ký tự cuối.Treat MCP_TOKEN like a password: whoever has it can load / delete your knowledge. Only its SHA-256 and last 4 characters are stored.
  • Lộ hoặc mất token: ⚙ → Nạp từ API & MCP → Cấp lại token (hoặc nút "Cấp token mới" ở phần MCP trên). Token cũ hết hiệu lực ngay — cài lại cho các AI client.Leaked or lost: ⚙ → Load from API & MCP → Reissue token (or "Issue a new token" in the MCP section above). The old one stops at once — set up your AI clients again.
  • owner trong đoạn nhúng KHÔNG phải bí mật — nó chỉ cho phép đọc kho để trả lời khách. Ghi / xoá luôn cần token hoặc đăng nhập.The owner in the embed code is NOT a secret — it only lets the assistant read your base to answer visitors. Writes / deletes always need the token or a sign-in.
  • Khai báo site của bạn: ⚙ → Nạp từ API & MCP → Site được nhúng (mỗi dòng 1 tên miền). Khi đã khai, ai copy đoạn nhúng sang site khác thì trợ lý không chạy ở đó. Chưa khai = chạy ở mọi site.Declare your sites: ⚙ → Load from API & MCP → Embed sites (one domain per line). Once set, a copy of your embed code on another site does not run there. None set = it runs on every site.
  • Hết kỳ thanh toán còn 3 ngày ân hạn; sau đó trợ lý nhúng tự ẩn và MCP ngừng phục vụ kho của bạn. Gia hạn là tự bật lại, không cần thao tác gì.There are 3 grace days past the billing period; after that the embedded assistant hides itself and MCP stops serving your knowledge. Renewing switches both back on by itself.

Khắc phục sự cốTroubleshooting

Trợ lý trả lời chung chung, không theo kiến thức của tôiAnswers are generic, not from my knowledge
Kiểm tra owner trong thẻ svc-aide đúng hub id; các dòng ở trạng thái active; hỏi AI "gọi hub_info" xem pendingIndex — còn chờ thì chạy reindex_knowledge.Check the owner on the svc-aide tag is your hub id; rows are active; ask your AI to "call hub_info" and look at pendingIndex — if rows are waiting, run reindex_knowledge.
AI client báo 401The AI client says 401
Token sai hoặc đã được cấp lại. Dán token mới nhất rồi cài lại (nút "Kiểm tra kết nối" ở phần MCP xác nhận ngay).Wrong token, or it was reissued. Paste the latest one and reinstall ("Test connection" in the MCP section confirms it).
Báo 402It says 402
Gói đã hết hạn — gia hạn rồi mở ⚙ một lần để làm mới. Ở Thư ký / phòng ban, 402 nghĩa là tài khoản đang ở Starter — cần Pro.The plan has lapsed — renew it, then open ⚙ once to refresh. On the Secretary / departments, 402 means the account is on Starter — Pro is needed.
Không thấy nút trợ lý trên siteNo assistant button on my site
Thẻ script phải có type="module"; nền tảng phải cho phép chèn script (một số trình tạo web chặn ở gói miễn phí). Mở Console của trình duyệt: "hidden on this site — hub_domain" = site chưa có trong Site được nhúng; "hub_expired" = gói đã hết hạn; "hub_disabled" = đã tắt nhúng.The script tag needs type="module"; your platform must allow custom scripts (some site builders block them on free tiers). Open the browser console: "hidden on this site — hub_domain" = the site is not in Embed sites; "hub_expired" = the plan has lapsed; "hub_disabled" = embedding is off.
Không có email tokenNo token email
Đăng nhập ở /system/ecommerce → Tư vấn → ⚙ → Nạp từ API & MCP → Kích hoạt MCP (token hiện 1 lần), hoặc dùng nút "Cấp token mới" ở phần MCP. Sign in at /system/ecommerce → Consult → ⚙ → Load from API & MCP → Activate MCP (the token shows once), or use "Issue a new token" in the MCP section.