تكامل Facebook Messenger مع روبوتات الدردشة
حول هذا التكامل
يُعد Facebook Messenger من أكثر عمليات التكامل شيوعًا لدينا. فهو يتيح للمطورين ربط روبوتات الدردشة الخاصة بهم مباشرة بـ Messenger حتى تتمكن الشركات من أتمتة المحادثات داخل أحد أكثر تطبيقات المراسلة الاجتماعية استخدامًا.
يعمل التكامل من خلال واجهة برمجة التطبيقات الرسمية لـ Messenger، مما يضمن أن الرسائل موثوقة وسريعة ومدعومة بالكامل من منصة Meta. يحتاج المطورون فقط إلى صفحة Facebook وإمكانية الوصول إلى واجهة برمجة التطبيقات لبدء ربط روبوت الدردشة الخاص بهم.
بمجرد الإعداد، يمكن لروبوت Messenger الرد على الأسئلة، وإرسال التحديثات، والتعامل مع الوسائط، ودعم خدمة العملاء على نطاق واسع. وهذا يجعل Messenger قناة عملية للشركات التي ترغب في توفير تواصل فوري حيث يتواجد عملاؤها بالفعل.
الميزات الرئيسية
- أتمتة المحادثات مع العملاء
- إرسال ردود فورية
- دعم الصور ومقاطع الفيديو والملفات
- تخصيص الرسائل باستخدام بيانات روبوت الدردشة
- إدارة المحادثات ثنائية الاتجاه على نطاق واسع
- التكامل مع صندوق وارد صفحة Facebook
- تشغيل سير العمل من أحداث Messenger
- تقديم دعم عملاء في الوقت الفعلي
الأسئلة الشائعة
كيف يمكنني ربط روبوت دردشة بـ Facebook Messenger؟
لربط روبوت دردشة بـ Facebook Messenger، عليك ربط صفحة Facebook بمنصة روبوت الدردشة الخاصة بك عبر واجهة برمجة تطبيقات Messenger. يتطلب ذلك مصادقة حسابك على Facebook واختيار الصفحة التي سيخدمها الروبوت.
ما الذي أحتاجه قبل إعداد روبوت Messenger؟
قبل إعداد روبوت Messenger، تحتاج إلى صفحة Facebook منشورة، وحساب مطور لدى Meta، ومنصة روبوت دردشة تدعم تكامل Messenger.
هل أحتاج إلى مراجعة أو موافقة تطبيق Facebook لنشر روبوت Messenger؟
تحتاج إلى مراجعة تطبيق Facebook إذا كان روبوت Messenger الخاص بك سيستخدم ميزات متقدمة مثل البث أو القوائم الدائمة. إذا كان الروبوت يرد فقط على رسائل المستخدمين خلال نافذة 24 ساعة، فلا حاجة لمراجعة التطبيق.
هل يمكن لروبوتات Messenger التعامل مع الصور ومقاطع الفيديو والملفات؟
يمكن لروبوتات Messenger إرسال واستقبال النصوص والصور وملفات GIF ومقاطع الفيديو والرسائل الصوتية وملفات المرفقات.
كيف أختبر روبوت الدردشة الخاص بي على Messenger قبل إطلاقه؟
لاختبار روبوت Messenger قبل إطلاقه، يمكنك استخدام مسؤولي أو محرري صفحة Facebook لإجراء محادثات خاصة مع الروبوت.
هل هناك تكاليف لإرسال الرسائل عبر Facebook Messenger؟
لا توجد تكاليف لإرسال الرسائل عبر Facebook Messenger. يمكن للشركات مراسلة المستخدمين مجانًا خلال 24 ساعة من آخر تفاعل للمستخدم، ولكن خارج هذه الفترة يُسمح فقط بأنواع الرسائل المعتمدة مثل الإشعارات لمرة واحدة أو الرسائل الممولة.
<iframe src="https://www.youtube.com/embed/pOIrLMpZZqc"></iframe>
The Facebook and Messenger integration empowers your chatbot to seamlessly interact across Facebook's messaging ecosystem, combining both Messenger and Facebook Page capabilities into one powerful solution. Connect your AI-powered chatbot to engage with your audience through multiple touchpoints: respond to direct messages, reply to comments on Facebook Page posts, and even initiate private conversations directly from post comments.
## Configuration (Updates)
### Manual configuration
#### Webhook Subscriptions
Using the Messenger App in your Meta app, subscribe to the following fields:
- **messages**: Required to receive incoming direct messages
- **messaging_postbacks**: Required to handle button clicks and quick replies
- **(NEW) feed**: Required to receive and respond to comments on Facebook page posts. This field is essential for the comment interaction features and proactive conversation from comments.
## Proactive Conversations
The integration now supports proactive conversation creation, letting you seamlessly move from public interactions to private DMs. When someone comments on a post from your Facebook Page, you can use that comment’s ID to automatically initiate a private conversation with the user.
## Migrating from 4.x to 5.x
### Reauthorization for comment replies
If your bot was previously connected to your Facebook page using OAuth, you will need to complete the authorization flow again in order to receive messages on the `commentReplies` channel.
### Changes to the 'Get Or Create Conversation' card
The following changes have been implemented:
- Renaming of the `id` parameter to `userId`. The ID still corresponds to the Messenger ID of the user that is or will be taking part in the conversation.
- It is now the responsibility of the Bot developer to ensure the validity of the provided user ID. No additional checks are made in the action.
### Removal of `recipientId` and `senderId` conversation tags
The `recipientId` and `senderId` conversation tags were removed because of their redundancy. The recipient ID, which corresponded to the Bot's Messenger ID, can still be found in the `recipientId` message tag of incoming messages or in the `senderId` message tag of outgoing messages. The sender ID, which corresponded to the user's Messenger ID, can still be found in the `id` conversation tag.
### Markdown message type
The Markdown message type has been deprecated, so its support has been removed in the `channel` channel. You can use the text message type to send Markdown instead.
## Migrating from 3.x to 4.x
### _postback_ and _say_ messages prefix
In version 4.0 of Messenger, _postback_ and _say_ messages no longer use the prefixes `postback:` or `say:`. If your bot relied on these prefixes for logic or transitions, you can update it to depend solely on the value set for the postback.