Live Chat
Integrate Live Chat Widget in minutes — REST API, WordPress plugin, and embed widgets.
Overview
Live Chat widget သည် သင့်ဆိုက်တွင် chat bubble တစ်ခုကို ထည့်ပေးသည်။ ဧည့်သည်များ၏ မက်ဆေ့ချ်များကို real time တွင် ဘာသာပြန်ပေးသောကြောင့် သင့်အေးဂျင့်များသည် ၎င်းတို့၏ ကိုယ်ပိုင်ဘာသာစကားဖြင့် ဖြေကြားနိုင်သည်။ Offline chats များသည် support tickets များအဖြစ် အလိုအလျောက် ပြောင်းလဲသွားသည်။
Quick start
သင့်ဆိုက် token ဖြင့် script tag ကို ထည့်သွင်းပါ။ Widget သည် အောက်ခြေညာဘက်ထောင့်တွင် ပေါ်လာပြီး နှိပ်လိုက်သည့်အခါ socket connection ကို ဖွင့်ပေးသည်။
<script
src="https://livechat.api.jetweb.app/widget.js"
data-site-token="YOUR_SITE_TOKEN"
async
></script>
Authentication
API endpoint တိုင်းတွင် Bearer token လိုအပ်ပါသည်။ သက်ဆိုင်ရာ ထုတ်ကုန်အတွက် Dashboard ရှိ "API Keys" အောက်တွင် token တစ်ခုကို ထုတ်လုပ်ပါ။ Token များကို server-side တွင် သိမ်းဆည်းပါ — public repositories များသို့ commit လုပ်ခြင်း သို့မဟုတ် frontend bundles များတွင် ထည့်သွင်းခြင်းကို ရှောင်ကြဉ်ပါ။
Authorization: Bearer YOUR_API_KEY
Endpoints
Base URL: https://livechat.api.jetweb.app
/api/conversations
/api/conversations/:id/messages
/api/agents
/api/tickets
Integrations
Widget ကို script tag တစ်ခုတည်းဖြင့် မည်သည့်ဆိုက်တွင်မဆို ထည့်သွင်းနိုင်သည်။ WordPress အတွက်၊ site token ကို auto-configure လုပ်ရန် plugin ကို install လုပ်ပါ။ Agent dashboard ကို agents.jetweb.app တွင် ကြည့်ရှုနိုင်သည်။