تركيب الودجت
سطر واحد يربط موقعك بمساعدك. إن كنت تستطيع لصق سطر، تستطيع تركيب خبير.
أين أجد كود التضمين؟
افتح الإعدادات → التثبيت. تجد هناك «كود التضمين» الخاص بحسابك. اضغط انسخ الكود — يتحول الزر إلى «تم النسخ» للتأكيد.
الصق هذا السطر
ضع السطر قبل وسم </body> في كل صفحة تريد ظهور المساعد فيها (أو في القالب المشترك لموقعك):
<script src="https://khabir.live/widget.js"
data-key="pk_live_xxxxxxxxxxxxxxxxxx" async></script>
القيمة في data-key هي مفتاح التضمين الخاص بك — لا تشاركه علناً مع أحد. انسخ السطر كما يظهر في لوحتك؛ لا تكتبه يدوياً.
موضع الفقاعة
تظهر الفقاعة افتراضياً في الجهة المناسبة للعربية. للتحكم بالجهة أضف data-position بقيمة right أو left:
<script src="https://khabir.live/widget.js"
data-key="pk_live_xxxxxxxxxxxxxxxxxx"
data-position="right" async></script>
النطاقات المسموح بها
في تبويب «التثبيت» يمكنك تحديد النطاقات المسموح بها (مفصولة بفواصل) التي يُسمح للودجت بالعمل عليها. اترك الحقل فارغاً للسماح بكل النطاقات. استخدم هذا الحقل لمنع تشغيل مفتاحك على مواقع لا تملكها.
صفحة محادثة قابلة للمشاركة
لا تملك موقعاً بعد؟ فعّل صفحة المحادثة العامة من نفس التبويب لتحصل على رابط جاهز بالشكل khabir.live/c/your-slug تشاركه في بايو إنستغرام أو واتساب — نفس المساعد، بدون أي تركيب.
Install the widget
One line connects your site to your assistant. If you can paste a line, you can install Khabir.
Where do I find the embed code?
Open Settings → Install. There you'll find your account's "embed code". Press Copy code — the button switches to "Copied" to confirm.
Paste this line
Place the line before the </body> tag on every page where you want the assistant to appear (or in your site's shared template):
<script src="https://khabir.live/widget.js"
data-key="pk_live_xxxxxxxxxxxxxxxxxx" async></script>
The value in data-key is your embed key — don't share it publicly. Copy the line exactly as shown in your dashboard; don't type it by hand.
Bubble position
The bubble appears by default on the side that suits Arabic. To control the side, add data-position with a value of right or left:
<script src="https://khabir.live/widget.js"
data-key="pk_live_xxxxxxxxxxxxxxxxxx"
data-position="right" async></script>
Allowed domains
In the "Install" tab you can set the allowed domains (comma-separated) where the widget is permitted to run. Leave it empty to allow all domains. Use this to stop your key from running on sites you don't own.
Shareable chat page
Don't have a website yet? Enable the public chat page from the same tab to get a ready link like khabir.live/c/your-slug to share in your Instagram bio or on WhatsApp — the same assistant, with no installation at all.