Prerequisites
To get started, you’ll need to:- Create an API key
- Verify your domain
- Set up webhooks for
email.receivedevents - Enable receiving on your domain
Guide
1
Install
Create a new project with eve and then install the Chat SDK, the Resend adapter, and the development state adapter.
2
Configure the adapter
Create the Resend adapter with the adapter configuration options. Then create a Chat SDK channel with the adapter, a username for the bot, and an adapter state.
streaming should be set to false as emails can only deliver one message per turn.Export the channel object and the framework will integrate it automatically.Set
RESEND_API_KEY and RESEND_WEBHOOK_SECRET as environment variables. You can also pass apiKey and webhookSecret directly in the config passed to createResendAdapter — explicit values take precedence over env vars.3
Handle new messages
Register handlers for incoming messages. Threading is handled by the Chat SDK adapter.
onNewMention event fires when a new thread starts and onSubscribedMessage fires for follow-up emails in threads you are already subscribed to.4
Configure webhooks
Eve registers adapter endpoints at
/eve/v1/resend. Edit your webhook for email.received events to point to this endpoint.