2.5 KiB
2.5 KiB
Resend Integration
Overview
@botpresshub/resend is an integration that allows a Botpress chatbot to send emails via the Resend API.
Configuration
Authenticating your domain (https://resend.com/domains)
- Login to the Resend dashboard (https://resend.com/)
- In the navigation bar on the left, click on "Domains"
- Near the top-right, click "Add Domain"
- In the "Name" field, enter your domain (e.g. "Botpress.com")
- (Optional) Select the server region closest to your user base
- (Optional) Customize the return path (Only recommended if you know what this does)
- Click "Add Domain" (Below "Advanced options")
- Add the DNS records in the portal of your domain provider (e.g. SquareSpace, GoDaddy, etc.)
- While the DMARC record is optional, it's recommended to protect against spoofing/unauthorized use of the domain
- Click "I've added the records" and wait for each status to be marked as "Verified"
- Now you're ready to send emails with your domain. Happy Emailing!
Acquiring an API key (https://resend.com/api-keys)
- Login to the Resend dashboard (https://resend.com/)
- In the navigation bar on the left, click on "API Keys"
- Near the top-right, click "Create API Key"
- Give the key a name & grant the key "Sending Access"
- Optionally, choose which domains you want the key to send emails through
- Click "Add" to generate the API Key
- Copy the resulting API key into a secure location as it will only be shown once
Setting up Webhooks (https://resend.com/webhooks)
- Login to the Resend dashboard (https://resend.com/)
- In the navigation bar on the left, click on "Webhooks"
- Near the top-right, click "Add Webhook"
- Copy the webhook URL from the Botpress integration config & paste it into Resend's "Endpoint URL" input field
- Select which webhook events you want to listen for
- Click "Add" (Below the "Select events to listen" section)
- (Optional, but recommended) Copy the "Signing Secret" from Resend and paste it into the "Webhook Signing Secret" of the Botpress integration config
- Now your bot is ready to listen for events from Resend
Side Notes
The current implementation is limited to only sending markdown rich-text emails, though this will be expanded upon in the future.