AI 聊天機器人的 WhatsApp 整合
關於此整合
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 Business 帳號、已驗證的電話號碼,以及 Meta 核准的 API 存取權。缺少其中任何一項,都無法正式上線 WhatsApp 聊天機器人。
將聊天機器人整合到 WhatsApp 需要多少費用?
在像 Botpress 這樣的平台上,將聊天機器人整合到 WhatsApp 是免費的。但部署機器人後,您需支付 LLM API 及 WhatsApp(Meta)的小額費用。每則訊息約需 $0.008 至 $0.063 美元,通常每月約 $50-$150 美元,視用戶量而定。
使用 WhatsApp 聊天機器人需要經過驗證的商業帳號嗎?
需要。必須經過驗證才能存取 Business API,並確保訊息符合 WhatsApp 規範。
WhatsApp 聊天機器人可以傳送圖片、檔案或語音訊息嗎?
可以。WhatsApp 聊天機器人可處理文字、圖片、PDF、文件、影片和語音訊息。對於主動發送的訊息,通常需使用事先核准的訊息範本;而用戶主動發起的對話則可自由回應多媒體內容。
WhatsApp 聊天機器人是否安全且符合資料隱私規範?
只要是基於官方 WhatsApp Business API 建置,就是安全的。所有通訊皆為端對端加密,Meta 也強制遵守 GDPR 及其他地區性隱私標準。安全性同時取決於您的聊天機器人平台如何儲存客戶資料,因此開發者應實施適當的存取控管,並遵循產業合規要求。
在設置 WhatsApp 聊天機器人之前,我需要準備什麼?
您需要 WhatsApp Business 帳號、已驗證的電話號碼,以及 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'
}
})
```