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 聊天機器人常見於電商、銷售、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