All integrations

Resend

ChannelProvider official

Send and receive threaded email through Resend via the Chat SDK.

Read the full channel docs

Install

Add this Chat SDK channel from eve's registry. This writes agent/channels/resend.ts and installs Chat SDK and its adapter dependencies:

bash
eve add channel/chat-sdk-resend

Quick start

Create agent/channels/resend.ts:

ts
// agent/channels/resend.tsimport { createResendAdapter } from "@resend/chat-sdk-adapter";import { createMemoryState } from "@chat-adapter/state-memory";import type { Message, Thread } from "chat";import { chatSdkChannel, messageContentOf } from "eve/channels/chat-sdk";
export const { bot, channel, send } = chatSdkChannel({  userName: "My Agent",  adapters: {    resend: createResendAdapter({      fromAddress: process.env.RESEND_FROM_ADDRESS!,      fromName: "My Agent",    }),  },  state: createMemoryState(),  // Hand every message to eve, even mid-reply, so eve can steer the running turn.  concurrency: "concurrent",  // Email can't be edited after it's sent, so send each reply whole.  streaming: false,});
bot.onNewMention(async (thread: Thread, message: Message) => {  await thread.subscribe();  await send(messageContentOf(message), { thread });});
bot.onSubscribedMessage(async (thread: Thread, message: Message) => {  await send(messageContentOf(message), { thread });});
export default channel;

See the Email (Resend) adapter documentation for all supported events and credentials.

Configure

Verify a sending domain in Resend, set RESEND_API_KEY, RESEND_WEBHOOK_SECRET, and RESEND_FROM_ADDRESS, then point the Resend inbound webhook at /eve/v1/resend. This is a vendor-official Chat SDK adapter. See the Chat SDK channel docs for eve session dispatch, state, streaming, and human-in-the-loop behavior.