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