WhatsApp 整合 AI 聊天機器人
關於此整合
WhatsApp 是Botpress 上最受歡迎的整合。它可讓建置者將聊天機器人和 AI 代理與訊息平台WhatsApp 連線。
通常,我們的使用者會使用WhatsApp 整合功能在WhatsApp 上部署聊天機器人 - 作為客戶服務專線、潛在客戶培育或任何其他透過WhatsApp 進行的資訊溝通。
此整合建立在官方WhatsApp Business API 之上,這意味著每次互動都是安全、可靠且符合WhatsApp政策的。
無論您的編碼程度如何,我們預先建立的整合功能都能讓您輕鬆建立WhatsApp 聊天機器人。
主要特點
- 自動化客戶對話
- 傳送即時通知
- 支援多媒體訊息 (影像、視訊、語音記事)
- 利用聊天機器人資料個人化回應
- 啟用與使用者的雙向訊息傳送
- 從WhatsApp 互動觸發工作流程
- 跨區域和語言的規模支援
- 維護WhatsApp Business API 的合規性
常見問題
哪些聊天機平台與WhatsApp 整合?
您可以申請WhatsApp Business API 使用權,然後將您的聊天機平台連結到核准的帳號。包括Botpress 在內的大多數平台都提供連接器,您可以在其中加入WhatsApp Business 認證、電話號碼和範本。連接後,聊天機器人就可以透過WhatsApp 傳送和接收訊息。
如何將聊天機器人連接到WhatsApp Business API?
您需要一個WhatsApp 商業帳戶、一個經過驗證的電話號碼,以及 Meta 批准的 API 存取權。沒有這三項條件,您就無法啟動WhatsApp 聊天機。
將一個聊天機器人整合到WhatsApp 需要多少費用?
在Botpress 等平台上整合聊天機器人與WhatsApp 是免費的。但是一旦您部署了您的機器人,您就必須向LLM的 API 和WhatsApp (Meta)支付小額費用。預期每則訊息大概要支付 0.008 到 0.063USD ,視使用者數量而定,一般是每月 50 到 150 美元。
使用WhatsApp 聊天機器人是否需要經過認證的商業帳戶?
是的。存取商業 API 需要驗證,以確保訊息符合WhatsApp的規則。
WhatsApp 聊天程式可以傳送圖片、檔案或語音記事嗎?
是的。WhatsApp 聊天機器人可以處理文字、圖片、PDF、文件、視訊和語音備註。對於對外、主動的訊息,這些訊息通常必須在預先核准的訊息範本內傳送,而對內(使用者主動)對話則允許自由形式的多媒體回應。
WhatsApp 聊天機器人是否安全且符合資料隱私權規定?
是的,當建立在官方WhatsApp Business API 上時。所有通訊都經過端對端加密,而且 Meta 強制遵守 GDPR 和其他地區的隱私權標準。安全性也取決於您的聊天機平台如何儲存客戶資料,因此建置者應實施適當的存取控制,並遵循其產業的合規要求。
在建立WhatsApp 聊天機之前,我需要什麼?
您需要一個WhatsApp 商業帳戶、一個經過驗證的電話號碼,以及 Meta 批准的 API 存取權。沒有這三項條件,您就無法啟動WhatsApp 聊天機。
WhatsApp API 的存取權需要多久才能獲得核准?
審核通常需要幾天,但也有可能延長到幾個星期,這取決於 Meta 的審核。此過程會檢查您的企業資訊、電話號碼所有權,以及是否符合WhatsApp 政策。
<iframe src="https://www.youtube.com/embed/Kt4Ay_q-WKI" ></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'
}
})
```