Tích hợp WhatsApp cho Chatbot AI
Về tích hợp này
WhatsApp là tích hợp phổ biến nhất trên Botpress. Nó cho phép người dùng kết nối chatbot và tác nhân AI của mình với nền tảng nhắn tin WhatsApp.
Thông thường, người dùng của chúng tôi sử dụng tích hợp WhatsApp để triển khai chatbot trên WhatsApp – như các kênh chăm sóc khách hàng, nuôi dưỡng khách hàng tiềm năng, hoặc bất kỳ hình thức trao đổi thông tin nào diễn ra qua WhatsApp.
Tích hợp này được xây dựng dựa trên API chính thức của WhatsApp Business, đảm bảo mọi tương tác đều an toàn, đáng tin cậy và tuân thủ chính sách của WhatsApp.
Tích hợp dựng sẵn của chúng tôi giúp bạn xây dựng chatbot WhatsApp dễ dàng, dù bạn có biết lập trình hay khô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 thông báo theo thời gian thực
- Hỗ trợ tin nhắn đa phương tiện (hình ảnh, video, ghi âm)
- Cá nhân hóa phản hồi dựa trên dữ liệu chatbot
- Cho phép nhắn tin hai chiều với người dùng
- Kích hoạt quy trình làm việc từ tương tác WhatsApp
- Mở rộng hỗ trợ trên nhiều khu vực và ngôn ngữ
- Đảm bảo tuân thủ API WhatsApp Business
Câu hỏi thường gặp
Những nền tảng chatbot nào tích hợp với WhatsApp?
Bạn kết nối bằng cách đăng ký quyền truy cập API WhatsApp Business rồi liên kết nền tảng chatbot với tài khoản đã được phê duyệt. Hầu hết các nền tảng, bao gồm Botpress, đều cung cấp trình kết nối để bạn thêm thông tin đăng nhập WhatsApp Business, số điện thoại và mẫu tin nhắn. Sau khi kết nối, chatbot có thể gửi và nhận tin nhắn qua WhatsApp.
Làm thế nào để kết nối chatbot với API WhatsApp Business?
Bạn cần có Tài khoản WhatsApp Business, số điện thoại đã xác minh và được Meta phê duyệt quyền truy cập API. Nếu thiếu một trong ba yếu tố này, bạn không thể triển khai chatbot WhatsApp thực tế.
Tích hợp chatbot với WhatsApp tốn bao nhiêu chi phí?
Việc tích hợp chatbot với WhatsApp trên các nền tảng như Botpress là miễn phí. Tuy nhiên, khi triển khai bot, bạn sẽ phải trả một khoản nhỏ cho API của LLM và WhatsApp (Meta). Thông thường, chi phí khoảng $0.008 đến $0.063 USD cho mỗi tin nhắn, tức khoảng $50-$150 mỗi tháng tùy vào số lượng người dùng.
Tôi có cần tài khoản doanh nghiệp đã xác minh để sử dụng chatbot WhatsApp không?
Có. Bạn phải xác minh để truy cập API Business và đảm bảo tin nhắn tuân thủ quy định của WhatsApp.
Chatbot WhatsApp có gửi được hình ảnh, tệp hoặc ghi âm không?
Có. Chatbot WhatsApp có thể xử lý văn bản, hình ảnh, PDF, tài liệu, video và ghi âm. Với tin nhắn chủ động gửi ra ngoài, thường phải gửi trong các mẫu tin nhắn đã được phê duyệt trước, còn hội thoại do người dùng khởi tạo thì có thể phản hồi đa phương tiện tự do.
Chatbot WhatsApp có an toàn và tuân thủ quy định bảo mật dữ liệu không?
Có, nếu xây dựng trên API WhatsApp Business chính thức. Mọi liên lạc đều được mã hóa đầu-cuối, và Meta đảm bảo tuân thủ GDPR cùng các tiêu chuẩn bảo mật khu vực khác. Bảo mật cũng phụ thuộc vào cách nền tảng chatbot lưu trữ dữ liệu khách hàng, vì vậy người xây dựng nên áp dụng kiểm soát truy cập phù hợp và tuân thủ quy định ngành.
Tôi cần chuẩn bị gì trước khi thiết lập chatbot WhatsApp?
Bạn cần có Tài khoản WhatsApp Business, số điện thoại đã xác minh và được Meta phê duyệt quyền truy cập API. Nếu thiếu một trong ba yếu tố này, bạn không thể triển khai chatbot WhatsApp thực tế.
Mất bao lâu để được phê duyệt quyền truy cập API WhatsApp?
Thông thường, quá trình phê duyệt mất vài ngày nhưng có thể kéo dài đến vài tuần tùy theo việc Meta xem xét. Quá trình này kiểm tra thông tin doanh nghiệp, quyền sở hữu số điện thoại và việc tuân thủ chính sách WhatsApp.
<iframe src="https://www.youtube.com/embed/Fs6dIxgEKoY" ></iframe>
The WhatsApp integration allows your AI-powered chatbot to seamlessly connect with WhatsApp, one of the most popular messaging platforms worldwide. Integrate your chatbot with WhatsApp to engage with your audience, automate conversations, and provide instant support. With this integration, you can send messages, handle inquiries, deliver notifications, and perform actions directly within WhatsApp. Leverage WhatsApp's powerful features such as text messages, media sharing, document sharing, and more to create personalized and interactive chatbot experiences. Connect with users on a platform they already use and enhance customer engagement with the WhatsApp Integration for Botpress.
## Migrating from 3.x to 4.x
### Automatic downloading of media files
Previously, accessing the content of media messages (such as images, videos, audio and documents) required authenticating with the WhatsApp API using a valid token. In version 4.0 of WhatsApp, the _Download Media_ parameter enables automatic downloading of media files. These downloaded files do not require authentication for access. However, they do count against your workspace's file storage. To continue using the WhatsApp API URLs, set the _Download Media_ parameter to disabled. The _Downloaded Media Expiry_ parameter allows you to set an expiry time for downloaded files.
### Interactive messages values
In version 4.0 of WhatsApp, all incoming button and list reply messages will include both the text displayed to the user (_text_) and the payload (_value_). Use `event.payload.text` to retrieve the label of a button or choice, and use `event.payload.value` to access the underlying value.
### _postback_ and _say_ messages prefix
In version 4.0 of WhatsApp, _postback_ and _say_ messages no longer use the prefixes `p:` or `s:`. 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.
### Start conversation
Version 4.0 of WhatsApp introduces small changes in the call signature of the `startConversation` action:
- The `senderPhoneNumberId` parameter has been renamed to `botPhoneNumberId`
- The input object now includes a single property called `conversation`, which contains the actual arguments
If your bot used the `startConversation` action, make sure all parameters are set. Also, if you called `startConversation` from code, make sure the action is called with the correct arguments:
```ts
actions.whatsapp.startConversation({
conversation: {
userPhone: '+1 123 456 7890',
templateName: 'test_message',
templateLanguage: 'en',
templateVariablesJson: JSON.stringify(['First value', 'Second value'])
botPhoneNumberId: '1234567890'
}
})
```