The Open Framework for Building Agents
feat(docs): add Dial integration (#1075)
Colton Paddenb811926fc683
diff --git a/apps/docs/lib/integrations/data.ts b/apps/docs/lib/integrations/data.tsindex a4e09dc31..ac6d9f37e 100644--- a/apps/docs/lib/integrations/data.ts+++ b/apps/docs/lib/integrations/data.ts@@ -905,6 +905,53 @@ export default channel;See the [Photon adapter documentation](https://chat-sdk.dev/adapters/vendor-official/photon) for all supported events and credentials.`,configure: `Set \`IMESSAGE_PROJECT_ID\` and \`IMESSAGE_PROJECT_SECRET\`, then point Photon’s signed webhook at \`/eve/v1/imessage\`. Photon supports cloud, self-hosted, and local macOS deployments. See the [Chat SDK channel docs](/docs/channels/chat-sdk) for eve session dispatch, state, streaming, and human-in-the-loop behavior.`,},+ "chat-sdk-dial": {+ logo: "dial",+ docsHref: "/docs/channels/chat-sdk",+ badge: "Provider official",+ keywords: ["chat sdk", "dial", "sms", "mms", "imessage", "voice", "phone", "calls"],+ install: `Install eve, Chat SDK, the Dial adapter, and a state adapter:++\`\`\`bash+npm install eve@latest chat @getdial/chat-sdk-adapter @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 Dial.`,+ quickStart: `Create \`agent/channels/dial.ts\`:++\`\`\`ts+// agent/channels/dial.ts+import { createDialAdapter } from "@getdial/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: {+ dial: createDialAdapter({+ apiKey: process.env.DIAL_API_KEY!,+ fromNumberId: process.env.DIAL_FROM_NUMBER_ID!,+ webhookSecret: process.env.DIAL_WEBHOOK_SECRET!,+ }),+ },+ 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 [Dial adapter documentation](https://chat-sdk.dev/adapters/vendor-official/dial) for supported events, capabilities, and credentials.`,+ configure: `Create a Dial number, set \`DIAL_API_KEY\`, \`DIAL_FROM_NUMBER_ID\`, and \`DIAL_WEBHOOK_SECRET\`, then point its webhook at \`/eve/v1/dial\`. Dial maps each phone-number pair to a thread and delivers SMS, MMS, iMessage, and voice transcripts. 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.tsxindex cfb6c0570..14cd5c060 100644--- a/apps/docs/lib/integrations/logos.tsx+++ b/apps/docs/lib/integrations/logos.tsx@@ -399,6 +399,19 @@ export const photonLogo = (props: LogoProps) => (</svg>);+export const dialLogo = (props: LogoProps) => (+ <svg fill="none" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" {...props}>+ <rect fill="#2C2C2A" height="512" rx="102" width="512" />+ <circle cx="256" cy="256" fill="#F1EFE8" r="56" />+ <path+ d="M256 101c85.6 0 155 69.4 155 155M256 411c-85.6 0-155-69.4-155-155"+ stroke="#F1EFE8"+ strokeLinecap="round"+ strokeWidth="14"+ />+ </svg>+);+export const googlechatLogo = (props: LogoProps) => <SiGooglechat color="default" {...props} />;export const whatsappLogo = (props: LogoProps) => <SiWhatsapp color="default" {...props} />;@@ -543,6 +556,7 @@ export const logos = {linq: linqLogo,kapso: kapsoLogo,photon: photonLogo,+ dial: dialLogo,googlechat: googlechatLogo,whatsapp: whatsappLogo,messenger: messengerLogo,diff --git a/packages/eve-catalog/src/index.ts b/packages/eve-catalog/src/index.tsindex 0a6bd440a..fc36a55dd 100644--- a/packages/eve-catalog/src/index.ts+++ b/packages/eve-catalog/src/index.ts@@ -227,6 +227,13 @@ export const INTEGRATIONS: readonly IntegrationEntry[] = [tagline: "Cloud, self-hosted, and local iMessage messaging through Photon.",surfaces: { scaffoldable: false, gallery: true },},+ {+ slug: "chat-sdk-dial",+ name: "Dial",+ kind: "channel",+ tagline: "Give your agent a phone number for SMS, MMS, iMessage, and voice transcripts.",+ surfaces: { scaffoldable: false, gallery: true },+ },{slug: "agent-browser",name: "agent-browser",