SG

SimpleGo Booking Widget

Standalone iframe app · 2 chế độ · Đặt vé xe khách + Trợ lý AI

Nhúng vào site của bạn

Copy đoạn HTML sau vào bất kỳ trang nào:

<iframe
  src="https://booking.simplego.ai/widget?pk=pk_your_key&from=HN&to=SPA"
  width="100%"
  height="640"
  frameborder="0"
  allow="payment">
</iframe>

<script>
  window.addEventListener('message', (e) => {
    if (e.data?.type === 'simplego:resize') {
      document.querySelector('iframe').style.height = e.data.height + 'px';
    }
  });
</script>

Query params hỗ trợ

ParamÝ nghĩaDefault
modebooking | chatbooking
pkPublic API key (pk_...)demo
from, to, datePre-fill form tìm chuyến
langvi | en | ja | ko | zh | th | fr | de | ruvi
themelight | darklight
brandMàu chính (hex, vd 10B981)0D9488
accentMàu phụ (hex)F59E0B
logoURL logo nhà xe
nameTên nhà xe (hiển thị header)SimpleGo
fontGoogle Font name (vd Inter, Roboto)Inter
radiussm | md | lg | xllg
refAttribution: creator/affiliate ID
trip_idDeep link chuyến cụ thể (từ video/landing)
toggle0 = ẩn nút chuyển đổi mode1