تركيب الودجت
سطر واحد يربط موقعك بمساعدك. إن كنت تستطيع لصق سطر، تستطيع تركيب خبير.
أين أجد كود التضمين؟
افتح الإعدادات → التثبيت. تجد هناك «كود التضمين» الخاص بحسابك. اضغط انسخ الكود — يتحول الزر إلى «تم النسخ» للتأكيد.
الصق هذا السطر
ضع السطر قبل وسم </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>
مظهر الودجت
المظهر الافتراضي فاتح. إذا كان موقعك داكناً أضف data-theme بقيمة dark، أو استخدم auto ليتبع الودجت إعداد جهاز الزائر:
<script src="https://khabir.live/widget.js"
data-key="pk_live_xxxxxxxxxxxxxxxxxx"
data-theme="dark" 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>
Widget appearance
The default look is light. If your site is dark, add data-theme with the value dark, or use auto so the widget follows the visitor's device setting:
<script src="https://khabir.live/widget.js"
data-key="pk_live_xxxxxxxxxxxxxxxxxx"
data-theme="dark" async></script>
Name, color, welcome message and dialect are set in the dashboard, not on the embed line — see Customize.
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 to get a ready link like khabir.live/c/your-slug to share in your Instagram bio or on WhatsApp — the same assistant, with your logo, headline and colour, and no installation at all. Details on the Chat page.