Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

feat(docs): add Sendblue integration (#1080)

Colton Paddenf4adfa9072aa
diff --git a/apps/docs/lib/integrations/data.ts b/apps/docs/lib/integrations/data.ts
index a7c7378dd..bc0def2da 100644
--- a/apps/docs/lib/integrations/data.ts
+++ b/apps/docs/lib/integrations/data.ts
@@ -602,6 +602,49 @@ export default channel;
See the [Velt adapter documentation](https://chat-sdk.dev/adapters/vendor-official/velt) for supported events, capabilities, and credentials.`,
configure: `Create a Velt bot user and webhook, set \`VELT_API_KEY\` and \`VELT_WEBHOOK_SECRET\`, then send comment events to \`/eve/v1/velt\`. The adapter maps documents to channels, annotations to threads, and comments to messages. See the [Chat SDK channel docs](/docs/channels/chat-sdk) for eve session dispatch, state, streaming, and human-in-the-loop behavior.`,
},
+ "chat-sdk-sendblue": {
+ logo: "sendblue",
+ docsHref: "/docs/channels/chat-sdk",
+ badge: "Provider official",
+ keywords: ["chat sdk", "sendblue", "imessage", "sms", "rcs", "tapbacks", "phone"],
+ install: `Install eve, Chat SDK, the Sendblue adapter, and a state adapter:
+
+\`\`\`bash
+npm install eve@latest chat chat-adapter-sendblue @chat-adapter/state-memory
+\`\`\`
+
+The in-memory state store is for local development. Use Redis or PostgreSQL in production. This adapter is built and maintained by Sendblue.`,
+ quickStart: `Create \`agent/channels/sendblue.ts\`:
+
+\`\`\`ts
+// agent/channels/sendblue.ts
+import { createSendblueAdapter } from "chat-adapter-sendblue";
+import { createMemoryState } from "@chat-adapter/state-memory";
+import { chatSdkChannel } from "eve/channels/chat-sdk";
+
+export const { bot, channel, send } = chatSdkChannel({
+ userName: "My Agent",
+ adapters: {
+ sendblue: createSendblueAdapter(),
+ },
+ 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 [Sendblue adapter documentation](https://chat-sdk.dev/adapters/vendor-official/sendblue) for supported events, capabilities, and credentials.`,
+ configure: `Set \`SENDBLUE_API_KEY\`, \`SENDBLUE_API_SECRET\`, and \`SENDBLUE_FROM_NUMBER\`, then point Sendblue webhooks at \`/eve/v1/sendblue\`. The adapter also supports tapbacks, typing indicators, delivery callbacks, and number lookup. 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> = {
diff --git a/apps/docs/lib/integrations/logos.tsx b/apps/docs/lib/integrations/logos.tsx
index 899cd8daf..a15594a79 100644
--- a/apps/docs/lib/integrations/logos.tsx
+++ b/apps/docs/lib/integrations/logos.tsx
@@ -335,6 +335,19 @@ export const veltLogo = (props: LogoProps) => (
</svg>
);
+export const sendblueLogo = (props: LogoProps) => (
+ <svg fill="none" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg" {...props}>
+ <path
+ fill="#008aff"
+ d="M146.316 3.32c9.952 6.23 17.052 14.351 20.2 25.72.705 4.314.586 8.572.51 12.926-.196 13.573 3.268 26.05 12.708 36.214 6.74 5.415 15.941 9.894 24.606 9.996 17.65.348 30.568 1.23 43.348 14.449 7.932 9.679 9.644 20.13 8.59 32.277-1.428 10.777-8.034 19.044-16.286 25.723-4.914 3.342-10.269 4.932-15.992 6.375 0 2.999 1.542 5.123 2.93 7.734 4.394 9.302 4.72 20.508 1.445 30.266-4.577 10.69-12.548 18.827-23.297 23.273-9.662 3.379-20.311 2.716-29.71-1.105-2.55-1.257-4.955-2.67-7.368-4.168l-1.187 3.375c-5.114 13.4-10.962 21.286-24.176 27.496-8.927 3.822-21.054 3.638-30.137.191-9.7-4.762-17.833-12.505-21.46-22.785A149 149 0 0 1 89 224c-3.507 0-6.436 2.207-9.492 3.809-8.26 3.924-19.945 3.46-28.508.566-10.69-4.577-18.827-12.548-23.273-23.297-3.379-9.662-2.716-20.311 1.105-29.71 1.257-2.55 2.67-4.955 4.168-7.368l-3.375-1.187c-13.4-5.114-21.286-10.962-27.496-24.176-3.822-8.927-3.638-21.054-.191-30.137 4.762-9.7 12.505-17.833 22.785-21.46C27.137 90.298 29.55 89.616 32 89c0-2.999-1.542-5.123-2.93-7.734-4.394-9.302-4.72-20.508-1.445-30.266 4.577-10.69 12.548-18.827 23.297-23.273 9.662-3.379 20.311-2.716 29.71 1.105 2.55 1.257 4.955 2.67 7.368 4.168l1.188-3.375c5.113-13.4 10.96-21.286 24.175-27.496 9.986-4.276 23.256-3.57 32.953 1.191"
+ />
+ <path
+ fill="#008aff"
+ d="M226.297 23.508C232.582 28.588 236.752 34.965 238 43c.941 9.044-1.035 17.616-6.687 24.875-5.998 6.3-14.253 9.97-22.907 10.191-9.521-.44-17.482-4.064-23.937-11.129-5.524-7.286-7.28-15.758-6.098-24.765 1.924-8.556 6.295-15.225 13.629-20.11 11.225-6.236 23.574-5.594 34.297 1.446"
+ />
+ </svg>
+);
+
export const googlechatLogo = (props: LogoProps) => <SiGooglechat color="default" {...props} />;
export const whatsappLogo = (props: LogoProps) => <SiWhatsapp color="default" {...props} />;
@@ -473,6 +486,7 @@ export const logos = {
zernio: zernioLogo,
velt: veltLogo,
+ sendblue: sendblueLogo,
googlechat: googlechatLogo,
whatsapp: whatsappLogo,
messenger: messengerLogo,
diff --git a/packages/eve-catalog/src/index.ts b/packages/eve-catalog/src/index.ts
index 2138e85fe..31c94e5e3 100644
--- a/packages/eve-catalog/src/index.ts
+++ b/packages/eve-catalog/src/index.ts
@@ -185,6 +185,13 @@ export const INTEGRATIONS: readonly IntegrationEntry[] = [
tagline: "Add agents to anchored comments across documents, canvases, PDFs, and video.",
surfaces: { scaffoldable: false, gallery: true },
},
+ {
+ slug: "chat-sdk-sendblue",
+ name: "Sendblue",
+ kind: "channel",
+ tagline: "Send and receive iMessage, SMS, and RCS through Sendblue.",
+ surfaces: { scaffoldable: false, gallery: true },
+ },
{
slug: "agent-browser",
name: "agent-browser",