Tích hợp Facebook Messenger cho chatbot
Về tích hợp này
Facebook Messenger là một trong những tích hợp phổ biến nhất của chúng tôi. Nó cho phép bạn kết nối chatbot trực tiếp với Messenger để doanh nghiệp có thể tự động hóa hội thoại trên một trong những ứng dụng nhắn tin xã hội được sử dụng rộng rãi nhất.
Tích hợp này sử dụng API Messenger chính thức, đảm bảo tin nhắn được gửi nhanh chóng, đáng tin cậy và được Meta hỗ trợ đầy đủ. Bạn chỉ cần một Trang Facebook và quyền truy cập API để bắt đầu kết nối chatbot của mình.
Sau khi thiết lập, chatbot trên Messenger có thể trả lời câu hỏi, gửi thông báo, xử lý đa phương tiện và hỗ trợ khách hàng ở quy mô lớn. Điều này giúp Messenger trở thành kênh thiết thực cho doanh nghiệp muốn cung cấp giao tiếp tức thì tại nơi khách hàng của họ đã và đang sử dụng.
Tính năng nổi bật
- Tự động hóa hội thoại với khách hàng
- Gửi phản hồi tức thì
- Hỗ trợ hình ảnh, video và tệp tin
- Cá nhân hóa tin nhắn với dữ liệu từ chatbot
- Xử lý nhắn tin hai chiều ở quy mô lớn
- Tích hợp với hộp thư Trang Facebook
- Kích hoạt quy trình làm việc từ sự kiện Messenger
- Cung cấp hỗ trợ khách hàng theo thời gian thực
Câu hỏi thường gặp
Làm thế nào để kết nối chatbot với Facebook Messenger?
Để kết nối chatbot với Facebook Messenger, bạn liên kết một Trang Facebook với nền tảng chatbot thông qua API Messenger. Việc này yêu cầu xác thực tài khoản Facebook và chọn Trang mà bot sẽ phục vụ.
Cần chuẩn bị gì trước khi thiết lập chatbot Messenger?
Trước khi thiết lập chatbot Messenger, bạn cần có một Trang Facebook đã xuất bản, tài khoản nhà phát triển Meta và nền tảng chatbot hỗ trợ tích hợp Messenger.
Tôi có cần Facebook xét duyệt ứng dụng để triển khai bot Messenger không?
Bạn cần Facebook xét duyệt ứng dụng nếu bot Messenger sử dụng các tính năng nâng cao như gửi tin nhắn hàng loạt hoặc menu cố định. Nếu bot chỉ trả lời tin nhắn người dùng trong vòng 24 giờ, không cần xét duyệt ứng dụng.
Chatbot Messenger có xử lý được hình ảnh, video và tệp tin không?
Chatbot Messenger có thể gửi và nhận văn bản, hình ảnh, GIF, video, tin nhắn âm thanh và tệp đính kèm.
Làm sao để kiểm tra chatbot trên Messenger trước khi chính thức hoạt động?
Để kiểm tra chatbot Messenger trước khi hoạt động, bạn có thể dùng tài khoản quản trị viên hoặc biên tập viên Trang Facebook để trò chuyện riêng với bot.
Có mất phí khi gửi tin nhắn trên Facebook Messenger không?
Việc gửi tin nhắn trên Facebook Messenger là miễn phí. Doanh nghiệp có thể nhắn tin cho người dùng miễn phí trong vòng 24 giờ kể từ lần tương tác cuối cùng của người dùng, ngoài khoảng thời gian đó chỉ các loại tin nhắn được phê duyệt như thông báo một lần hoặc tin nhắn tài trợ mới được phép gửi.
<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.