ອອນລາຍ · Live on UAT

ນ້ອງສະບາຍແທັກ Sabai Tax

ຜູ້ຊ່ວຍ AI ຝັງໄດ້ ສຳລັບຄຳຖາມກ່ຽວກັບພາສີ — ຕອບໂຕ້ທັນທີ ສອງພາສາ (ລາວ ແລະ ອັງກິດ), ຂັບເຄື່ອນໂດຍ Google Gemini. An embeddable, bilingual tax assistant.

🌐

ສອງພາສາ · Bilingual

ສະຫຼັບ ລາວ / ອັງກິດ ອັດຕະໂນມັດ

ເບົາ · Lightweight

~15KB gzipped, ໜຶ່ງໄຟລ໌

🎨

ໜ້າຕາທັນສະໄໝ

Responsive, ປັບສີໄດ້

🔒

ປອດໄພ · Secure

API key ຢູ່ backend


ຄູ່ມືການຝັງ · Installation

ຝັງໃນ 2 ຂັ້ນຕອນ

ວາງໂຄ້ດນີ້ກ່ອນ </body> ຂອງໜ້າເວັບທ່ານ. ລຳດັບສຳຄັນ — ຕັ້ງຄ່າກ່ອນ, ໂຫຼດ widget ຫຼັງ.

01

ຕັ້ງຄ່າ widget · Configure

ກຳນົດ window.TaxRISWidgetConfigຕ້ອງມາກ່ອນ tag ໂຫຼດ widget.

html · step 1 of 2
<script>
  window.TaxRISWidgetConfig = {
    apiUrl:       'https://taxris-chatbot.svengit.com/api',
    wsUrl:        'https://taxris-chatbot.svengit.com/chat',
    language:     'la',            // 'la' | 'en'
    position:     'bottom-right',  // 'bottom-right' | 'bottom-left'
    primaryColor: '#0ea5e9',
  };
</script>
02

ໂຫຼດ widget · Load the script

ໃຊ້ classic <script> (ບໍ່ແມ່ນ type="module") — ໜຶ່ງແຖວ.

html · step 2 of 2
<script src="https://taxris-chatbot.svengit.com/taxris-widget.js"></script>
💡

ຝັງແບບ type="module" ຫຼື inject ດ້ວຍ JS? ໃຫ້ຕັ້ງ assetBaseUrl: 'https://taxris-chatbot.svengit.com/dist/' ໃນ config — ເພາະ auto-detect ອາໄສ document.currentScript. Classic tag ບໍ່ຕ້ອງຕັ້ງ.


ຕົວເລືອກ · Configuration

ຄ່າຕັ້ງທັງໝົດ

ທຸກ field ເປັນ optional ນອກຈາກ apiUrl. ຄ່າ default ໃນວົງເລັບ.

Keyຄ່າ · Valuesໜ້າທີ່
apiUrlURLທີ່ຢູ່ backend API (ຈຳເປັນ)
wsUrlURLWebSocket endpoint ສຳລັບ real-time
language'la' · 'en'ພາສາເລີ່ມຕົ້ນ (default 'la')
position'bottom-right' · 'bottom-left'ມຸມສະແດງ (default 'bottom-right')
primaryColorhexສີຫຼັກ (default '#0ea5e9')
assetBaseUrlURLບ່ອນເກັບ logo/robot — ຕັ້ງເມື່ອ embed ແບບ module
🔑

ຝັ່ງ server: host ທີ່ຝັງ widget ຕ້ອງຢູ່ໃນ ALLOWED_ORIGINS ຂອງ backend (CORS), ບໍ່ດັ່ງນັ້ນ browser ຈະ block. ຈັດການໃຫ້ອັດຕະໂນມັດແລ້ວໃນ deploy-uat.sh.