ນ້ອງສະບາຍແທັກ Sabai Tax
ຜູ້ຊ່ວຍ AI ຝັງໄດ້ ສຳລັບຄຳຖາມກ່ຽວກັບພາສີ — ຕອບໂຕ້ທັນທີ ສອງພາສາ (ລາວ ແລະ ອັງກິດ), ຂັບເຄື່ອນໂດຍ Google Gemini. An embeddable, bilingual tax assistant.
ສອງພາສາ · Bilingual
ສະຫຼັບ ລາວ / ອັງກິດ ອັດຕະໂນມັດ
ເບົາ · Lightweight
~15KB gzipped, ໜຶ່ງໄຟລ໌
ໜ້າຕາທັນສະໄໝ
Responsive, ປັບສີໄດ້
ປອດໄພ · Secure
API key ຢູ່ backend
ຄູ່ມືການຝັງ · Installation
ຝັງໃນ 2 ຂັ້ນຕອນ
ວາງໂຄ້ດນີ້ກ່ອນ </body> ຂອງໜ້າເວັບທ່ານ. ລຳດັບສຳຄັນ — ຕັ້ງຄ່າກ່ອນ, ໂຫຼດ widget ຫຼັງ.
ຕັ້ງຄ່າ widget · Configure
ກຳນົດ window.TaxRISWidgetConfig — ຕ້ອງມາກ່ອນ tag ໂຫຼດ widget.
<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>
ໂຫຼດ widget · Load the script
ໃຊ້ classic <script> (ບໍ່ແມ່ນ type="module") — ໜຶ່ງແຖວ.
<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 | ໜ້າທີ່ |
|---|---|---|
apiUrl | URL | ທີ່ຢູ່ backend API (ຈຳເປັນ) |
wsUrl | URL | WebSocket endpoint ສຳລັບ real-time |
language | 'la' · 'en' | ພາສາເລີ່ມຕົ້ນ (default 'la') |
position | 'bottom-right' · 'bottom-left' | ມຸມສະແດງ (default 'bottom-right') |
primaryColor | hex | ສີຫຼັກ (default '#0ea5e9') |
assetBaseUrl | URL | ບ່ອນເກັບ logo/robot — ຕັ້ງເມື່ອ embed ແບບ module |
ຝັ່ງ server: host ທີ່ຝັງ widget ຕ້ອງຢູ່ໃນ ALLOWED_ORIGINS ຂອງ backend (CORS),
ບໍ່ດັ່ງນັ້ນ browser ຈະ block. ຈັດການໃຫ້ອັດຕະໂນມັດແລ້ວໃນ deploy-uat.sh.