@resend/chat-sdk-adapter
Vercel Chat SDK adapter for Resend email. Bidirectional: receive emails via Resend webhooks, send emails via Resend API.
Install
Quick Start
Forward Resend webhooks to your server's /webhook endpoint. See examples/basic for a full working server.
Configuration
Environment Variables
ResendAdapterConfig
Features
Email Threading
Threads are resolved using standard Message-ID, In-Reply-To, and References email headers. Reply chains are automatically grouped into Chat SDK threads.
Send Emails Proactively
Use openDM to start a new email thread to any address:
Card Emails
Send rich HTML emails using Chat SDK Card elements, rendered via @react-email/components:
Attachments
Inbound email attachments are available in message.raw.attachments with filename, content_type, and url fields.
Unsupported Operations
Email is inherently one-shot. The following operations throw NotImplementedError:
editMessage/deleteMessageaddReaction/removeReactionstartTyping
Examples
Documentation
Official docs available at resend.com/docs/chat-sdk.
License
MIT