Skip to content
Dashboard

Use any Chat SDK adapter with eve

agent/channels/resend.ts
import { createMemoryState } from "@chat-adapter/state-memory";
import { createResendAdapter } from "@resend/chat-sdk-adapter";
import type { Message, Thread } from "chat";
import { chatSdkChannel } from "eve/channels/chat-sdk";
export const { bot, channel, send } = chatSdkChannel({
userName: "Resend Agent",
adapters: {
resend: createResendAdapter({
fromAddress: "hello@example.com",
fromName: "Resend Agent",
}),
},
state: createMemoryState(),
streaming: false,
});
bot.onNewMention(async (thread: Thread, message: Message) => {
await thread.subscribe();
await send(message.text, { thread });
});
export default channel;

Reply to emails with a eve Resend agent

Ready to deploy?