SendGrid連携
この連携について
SendGridは、最も人気のある連携のひとつです。AIチャットボットをSendGridに接続することで、Botpressユーザーはチャットボットのフローから直接、取引メールやマーケティングメッセージ、自動通知を送信できます。
チャットボットにSendGridを連携させることで、確認メールやフォローアップ、個別メッセージをリアルタイムで簡単に届けられます。
チャットボット向けのSendGrid連携を使えば、業務の効率化や手作業の削減、顧客体験の向上が実現できます。メッセージは一貫性を保ちつつ自動化されます。
SendGrid連携の主な機能
- メールを自動送信
- メール内容のパーソナライズ
- メールテンプレートの利用
- フォローアップメッセージのトリガー
- イベント通知の配信
- メールのパフォーマンスを追跡
よくある質問
どのチャットボットプラットフォームがSendGridと連携できますか?
Botpress、Landbot、UChat、VoiceflowはすべてSendGridと連携できます。ネイティブ連携やZapierなどの自動化ツールを使う方法もあり、どの方法でもチャットボットの会話から直接メールを送信できます。
チャットボットで自動的にメールを送るにはどうすればいいですか?
ボットをSendGridに接続し、ワークフロー内でトリガーを設定します。たとえばフォーム送信など、設定した条件が満たされると、ボットが連携を通じてメールを送信します。
SendGridをAIチャットボットのカスタマーサポートに利用できますか?
はい、SendGridは確認メール、チケットの更新、フォローアップメッセージの送信に対応しています。これにより手動でのメール対応が減り、サポートのやり取りを一貫して行えます。
BotpressでSendGrid連携を設定するにはどうすればいいですか?
Botpressの連携設定でSendGridのAPIキーを入力してください。その後、フロー内にSendGridアクションを追加し、チャットボットのデータをメールの各項目に割り当てます。
チャットボットとSendGridを連携するメリットは何ですか?
チャットボットとSendGridを連携すると、リード獲得やリード育成、メールキャンペーンを自動化・大規模運用できます。メールの自動化により、受信者の待ち時間が短縮され、パーソナライズされたメールを大量に送信でき、高品質なメールキャンペーンが実現します。
チャットボットを使ってSendGridで一斉メール送信はできますか?
SendGridはチャットボット経由での一斉メール送信には直接対応していません。カスタマイズしたメールキャンペーンを自動化するには、Botpressのようなサードパーティプラットフォームが必要です。
チャットボットのデータを使ってSendGridのメールを個別にカスタマイズできますか?
はい、チャットボットの変数をSendGridのテンプレートに渡すことで、SendGridのメールを個別にパーソナライズできます。これにより、ユーザーごとの名前や好み、最近の行動を反映したメールを送信できます。
チャットボットとのSendGrid連携はどのくらい安全ですか?
SendGrid連携は、正しく実装すれば安全です。SendGridは暗号化やGDPR、SOC 2などのコンプライアンス基準に対応していますが、APIキーの安全な保管やアクセス制限が必要です。業界や地域の安全基準を守るサードパーティプラットフォームの利用も重要です。
チャットボットとSendGridを連携するのにプログラミングの知識は必要ですか?
SendGridチャットボットの構築に必ずしもコーディングスキルは必要ありません。BotpressのようなプラットフォームではノーコードでSendGrid連携が可能ですが、開発者はAPIを使って高度なカスタマイズも行えます。
どの業界でSendGridチャットボットが最も利用されていますか?
SendGridチャットボットは、主にEC、営業、SaaS、カスタマーサービスで利用されています。ほかにも、医療、金融、教育分野での緊急通知にも使われています。つまり、自動メールが役立つ場面なら幅広く活用されています。
チャットボットでSendGridを使う場合と他のメールプロバイダーを使う場合の違いは何ですか?
SendGridはトランザクションメールや大量配信に特化しています。一般的なプロバイダーと比べて、配信到達率やテンプレート管理、分析機能が強化されています。そのため、大規模なメール配信に最適です。
チャットボット経由で送信したメールのパフォーマンスを追跡できますか?
はい、すべてのSendGridメールにはパフォーマンス追跡が含まれています。チャットボットから送信された場合でも、開封数、クリック数、バウンス数などの指標を確認できます。多くのチャットボットプラットフォームでも分析機能が提供されており、受信者の反応を把握できます。
# SendGrid Integration
## Overview
`@botpresshub/sendgrid` is an integration that allows a Botpress chatbot to send emails via the SendGrid API.
## Configuration
### Authenticating your domain (https://app.sendgrid.com/settings/sender_auth)
1. Login to the SendGrid dashboard (https://app.sendgrid.com/)
2. In the navigation bar on the left, open "Settings" submenu, click on "Sender Authentication"
3. In the center-right part of the screen, click the "Get Started" button (First domain authentication only)
- (2nd+ domain auth) Near the lower left in the "Domain Authentication" section, click "Authenticate Your Domain"
4. Select the provider for your domain, if the provider is not listed, pick "I'm Not Sure" (It's easier than "Other host" option)
- Also tested with SquareSpace Domains
5. In the "From Domain" field, enter your domain (e.g. "Botpress.com")
6. Add the DNS records in the portal of your domain provider (e.g. Cloudflare, GoDaddy, SquareSpace, etc.)
7. Check "I've added these records" & click "Verify" and wait for SendGrid to confirm it's been verified.
- If an error is still shown in spite of correctly adding the 'CNAME' DNS records to your domain provider, try removing the domain suffix from the host key. (e.g. "em1234.botpress.com" > "em1234")
8. Now you're ready to send emails with your domain. Happy Emailing!
### Acquiring an API key (https://app.sendgrid.com/settings/api_keys)
1. Login to the SendGrid dashboard (https://app.sendgrid.com/)
2. In the navigation bar on the left, open "Settings" submenu, click on "API Keys"
3. Near the top-right, click "Create API Key"
4. Give the key a name
5. Grant the key permissions with either "Full Access" or if using "Restricted Access" select the following:
- "Mail Send" (Full Access)
6. Click "Create & View"
### Setting up Webhooks (https://app.sendgrid.com/settings/mail_settings/webhook_settings)
1. Login to the SendGrid dashboard (https://app.sendgrid.com/)
2. In the navigation bar on the left, open "Settings" submenu, click on "Mail Settings"
3. In Mail Settings, click on "Event Webhooks"
4. In the center-right part of the screen, click "Create new webhook"
5. (Optional) Give the webhook a "Friendly Name" (e.g. "Botpress Bot")
6. Copy the webhook URL from the Botpress integration config & paste it into Sendgrid's "Post URL" field
7. Select the "Actions to be posted", these will be the events that the Botpress integration will receive.
1. Note: This integration doesn't support all the events yet
8. (Optional, but recommended) Enable "Signature Verification"
1. If you've enabled this, once the webhook is saved, click the cog on the webhook and click "edit"
2. Copy the "Verification key" from Sendgrid and paste it into the "Webhook Verification Key" field of the Botpress integration config
9. Click "Save" and you're ready to use the events in your Botpress bot
## Side Notes
The current implementation is limited to only sending [markdown](https://spec.commonmark.org/0.31.2/) rich text emails, though this will be expanded upon in the future.
## Resources
- https://www.twilio.com/docs/sendgrid/for-developers
- https://www.twilio.com/docs/sendgrid/api-reference
- https://www.twilio.com/docs/sendgrid/ui/account-and-settings/api-keys
- https://www.twilio.com/docs/sendgrid/ui/account-and-settings/how-to-set-up-domain-authentication