Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

feat(docs): add Resend integration (#1058)

Colton Padden3dfc5e5c80bf
diff --git a/apps/docs/lib/integrations/data.ts b/apps/docs/lib/integrations/data.ts
index 52f5c01e6..8a2afb639 100644
--- a/apps/docs/lib/integrations/data.ts
+++ b/apps/docs/lib/integrations/data.ts
@@ -1089,8 +1089,60 @@ export default channel;
See the [Beeper Matrix adapter documentation](https://chat-sdk.dev/adapters/vendor-official/matrix) for all supported events and credentials.`,
configure: `Set the Matrix homeserver, access token, and bot identity environment variables documented by Beeper. This adapter consumes Matrix sync rather than webhooks, so call \`bot.initialize()\` and run eve in a long-lived Node.js process. It requires Node.js 22 or newer and a durable state adapter in production. See the [Chat SDK channel docs](/docs/channels/chat-sdk) for eve session dispatch, state, streaming, and human-in-the-loop behavior.`,
},
-};
+ "chat-sdk-resend": {
+ logo: "resend",
+ docsHref: "/docs/channels/chat-sdk",
+ badge: "Provider official",
+ keywords: [
+ "chat sdk",
+ "email",
+ "resend",
+ "inbound email",
+ "transactional email",
+ "attachments",
+ ],
+ install: `Install eve, Chat SDK, the Email (Resend) adapter, and a state adapter:
+
+\`\`\`bash
+npm install eve@latest chat @resend/chat-sdk-adapter @chat-adapter/state-memory
+\`\`\`
+
+The in-memory state store is for local development. Use Redis or PostgreSQL in production. The adapter is vendor-official.`,
+ quickStart: `Create \`agent/channels/resend.ts\`:
+
+\`\`\`ts
+// agent/channels/resend.ts
+import { createResendAdapter } from "@resend/chat-sdk-adapter";
+import { createMemoryState } from "@chat-adapter/state-memory";
+import { chatSdkChannel } 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(),
+});
+
+bot.onNewMention(async (thread, message) => {
+ await thread.subscribe();
+ await send(message.text, { thread });
+});
+bot.onSubscribedMessage(async (thread, message) => {
+ await send(message.text, { thread });
+});
+
+export default channel;
+\`\`\`
+
+See the [Email (Resend) adapter documentation](https://chat-sdk.dev/adapters/vendor-official/resend) 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](/docs/channels/chat-sdk) for eve session dispatch, state, streaming, and human-in-the-loop behavior.`,
+ },
+};
const extensionPresentations: Record<string, ExtensionPresentation> = {
browserbase: {
logo: "browserbase",
diff --git a/apps/docs/lib/integrations/logos.tsx b/apps/docs/lib/integrations/logos.tsx
index 489111e22..1d5e1a314 100644
--- a/apps/docs/lib/integrations/logos.tsx
+++ b/apps/docs/lib/integrations/logos.tsx
@@ -8,6 +8,7 @@ import {
SiDatadog,
SiEgnyte,
SiGooglechat,
+ SiResend,
SiHuggingface,
SiMake,
SiMessenger,
@@ -457,6 +458,8 @@ export const beeperLogo = (props: LogoProps) => (
</svg>
);
+export const resendLogo = (props: LogoProps) => <SiResend {...props} />;
+
export const googlechatLogo = (props: LogoProps) => <SiGooglechat color="default" {...props} />;
export const whatsappLogo = (props: LogoProps) => <SiWhatsapp color="default" {...props} />;
@@ -605,6 +608,7 @@ export const logos = {
agentphone: agentphoneLogo,
lark: larkLogo,
beeper: beeperLogo,
+ resend: resendLogo,
googlechat: googlechatLogo,
whatsapp: whatsappLogo,
messenger: messengerLogo,
diff --git a/packages/eve-catalog/src/index.ts b/packages/eve-catalog/src/index.ts
index 94de76a9b..583e6ec6e 100644
--- a/packages/eve-catalog/src/index.ts
+++ b/packages/eve-catalog/src/index.ts
@@ -255,6 +255,13 @@ export const INTEGRATIONS: readonly IntegrationEntry[] = [
tagline: "Matrix rooms and bridged messaging networks through Beeper.",
surfaces: { scaffoldable: false, gallery: true },
},
+ {
+ slug: "chat-sdk-resend",
+ name: "Resend",
+ kind: "channel",
+ tagline: "Send and receive threaded email through Resend via the Chat SDK.",
+ surfaces: { scaffoldable: false, gallery: true },
+ },
{
slug: "agent-browser",
name: "agent-browser",