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アカウント、認証済みの電話番号、API利用のためのMetaの承認が必要です。これらが揃っていないと、本番環境でWhatsAppチャットボットを公開できません。
チャットボットをWhatsAppと連携する費用はいくらですか?
Botpressのようなプラットフォームでは、チャットボットのWhatsApp連携自体は無料です。ただし、ボットを運用する際にはLLMのAPIやWhatsApp(Meta)への少額の料金が発生します。1メッセージあたり約$0.008〜$0.063 USD、月額でユーザー数により$50〜$150程度が目安です。
WhatsAppチャットボットを利用するには認証済みビジネスアカウントが必要ですか?
はい。Business APIの利用やWhatsAppのルールに準拠したメッセージ送信には認証が必要です。
WhatsAppチャットボットは画像やファイル、ボイスメモを送信できますか?
はい。WhatsAppチャットボットはテキスト、画像、PDF、ドキュメント、動画、ボイスメモに対応しています。送信側(発信メッセージ)では事前承認済みのメッセージテンプレート内で送る必要がある場合が多く、受信側(ユーザー発信)では自由なマルチメディア応答が可能です。
WhatsAppチャットボットはセキュリティやデータプライバシー規則に準拠していますか?
はい。公式のWhatsApp Business APIを利用していれば、すべての通信はエンドツーエンドで暗号化され、MetaがGDPRや各地域のプライバシー基準への準拠を徹底しています。また、チャットボットプラットフォームでの顧客データの管理方法にも依存するため、適切なアクセス制御や業界のコンプライアンス要件を守る必要があります。
WhatsAppチャットボットを設定する前に必要なものは何ですか?
WhatsApp Businessアカウント、認証済みの電話番号、API利用のためのMetaの承認が必要です。これらが揃っていないと、本番環境でWhatsAppチャットボットを公開できません。
WhatsApp API利用の承認にはどれくらい時間がかかりますか?
通常は数日ですが、Metaの審査状況によっては数週間かかる場合もあります。審査ではビジネス情報や電話番号の所有確認、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'
}
})
```