The Open Framework for Building Agents
feat(docs): add AgentPhone integration (#1074)
Colton Padden96b097d5cb67
diff --git a/apps/docs/lib/integrations/data.ts b/apps/docs/lib/integrations/data.tsindex ac6d9f37e..861a42b41 100644--- a/apps/docs/lib/integrations/data.ts+++ b/apps/docs/lib/integrations/data.ts@@ -952,6 +952,53 @@ 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.`,},+ "chat-sdk-agentphone": {+ logo: "agentphone",+ docsHref: "/docs/channels/chat-sdk",+ badge: "Provider official",+ keywords: ["chat sdk", "agentphone", "sms", "mms", "imessage", "voice", "phone", "calls"],+ install: `Install eve, Chat SDK, the AgentPhone adapter, and a state adapter:++\`\`\`bash+npm install eve@latest chat @agentphone/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 AgentPhone.`,+ quickStart: `Create \`agent/channels/agentphone.ts\`:++\`\`\`ts+// agent/channels/agentphone.ts+import { createAgentPhoneAdapter } from "@agentphone/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: {+ agentphone: createAgentPhoneAdapter({+ apiKey: process.env.AGENTPHONE_API_KEY!,+ agentId: process.env.AGENTPHONE_AGENT_ID!,+ webhookSecret: process.env.AGENTPHONE_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 [AgentPhone adapter documentation](https://chat-sdk.dev/adapters/vendor-official/agentphone) for supported events, capabilities, and credentials.`,+ configure: `Create an AgentPhone agent, set \`AGENTPHONE_API_KEY\`, \`AGENTPHONE_AGENT_ID\`, and \`AGENTPHONE_WEBHOOK_SECRET\`, then point its webhook at \`/eve/v1/agentphone\`. The adapter handles SMS, MMS, iMessage, and completed voice-call 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 14cd5c060..a39b102ae 100644--- a/apps/docs/lib/integrations/logos.tsx+++ b/apps/docs/lib/integrations/logos.tsx@@ -412,6 +412,23 @@ export const dialLogo = (props: LogoProps) => (</svg>);+export const agentphoneLogo = (props: LogoProps) => (+ <svg fill="none" viewBox="0 0 236 240" xmlns="http://www.w3.org/2000/svg" {...props}>+ <path+ fill="currentColor"+ fillRule="evenodd"+ d="M113.144 79.352c13.705 0 25.521.945 30.484 5.907 5.671 5.672 8.034 18.196 8.034 35.446 0 9.216-1.181 15.833-4.726 21.032-6.616 9.453-27.175 12.997-51.28 13.706-18.841 0-25.09-1.832-28.887-6.397l-.179-.219c-4.726-5.199-7.089-18.905-7.798-34.738 0-5.908.237-13.942 2.6-18.905 3.205-6.867 7.518-9.078 16.164-11.573l.85-.243c11.127-3.338 26.046-4.016 34.738-4.016m-9.276-55.529c1.816.1 3.368 1.709 3.368 3.54l-.005.153c-.086 1.826-1.7 3.391-3.54 3.392l-.155-.005c-1.615-.085-3.389-1.48-3.389-3.54q0-.1.006-.2c.118-1.906 1.837-3.39 3.715-3.34M92.382 114.38c-.622-5.162-2.424-13.038-8.541-12.811-5.435.473-8.507 6.38-7.798 14.887.472 6.144 3.072 12.761 8.27 12.761 7.321.488 8.626-7.891 8.215-13.473-.028-.38-.082-.83-.146-1.364m26.905-2.213c-.534-5.394.802-14.26 7.562-14.849 6.617.237 8.98 9.452 9.216 14.887.237 4.018-.472 8.744-2.835 11.107-1.655 1.89-5.908 2.363-8.271.709-3.458-1.844-5.117-7.289-5.634-11.503zm-13.209 22.971a66 66 0 0 1-4.041-.009c-.453 0-.968-.044-1.503-.089-2.254-.191-4.877-.412-4.877 2.452 0 4.017 5.198 7.089 11.578 7.562 8.271.236 13.706-5.671 13.47-8.743 0-1.654-.945-3.309-3.072-2.836-.587.117-1.152.235-1.706.35-3.091.642-6.001 1.195-9.849 1.313"+ clipRule="evenodd"+ />+ <path+ fill="currentColor"+ fillRule="evenodd"+ d="M151.95 36.39c-6.659-2.25-13.699-3.644-20.716-4.4C133.604 15.546 120.526 0 103.691 0 88.005 0 77.058 12.28 75.718 25.016c-.314 2.985-.052 6.058.657 8.968-4.236.595-8.462 1.276-12.644 2.177l-.03.006-.028.006C41.53 41.016 21.09 49.67 12.543 73.363c-6.19 15.152-5.707 33.384-5.924 49.464l.522 14.033C3.175 144.406 0 153.458 0 163.95c0 13.251 4.615 26.646 13.31 36.728 17.693 20.571 56.175 36.566 84.513 26.696 9.242 7.322 21.726 12.579 35.956 12.618 18.537.289 33.148-7.604 44.19-16.872 6.222-5.149 12.52-11.533 17.642-17.678C209.558 207 220.449 197.5 226 187.82c6.491-11.32 9-22.82 2.722-40.49 3.939-11.172 7.006-23.818 6.78-36.279-.1-29.782-22.331-54.726-49.772-55.51-2.527.046-5.002.326-7.451.99A52.13 52.13 0 0 0 151.95 36.39m33.269 37.054c-10.871.709-20.087 18.195-23.159 31.429-.945 4.962 1.182 9.216 4.254 12.524 1.037.864 2.129 1.63 3.189 2.373 3.289 2.304 6.263 4.387 6.263 8.498-.123 13.549-12.462 28.316-21.268 37.573-5.435 5.908-8.744 8.743-15.597 4.726-7.089-4.726-13.942-6.38-21.74.709-3.308 3.072-7.562 8.035-10.397 11.816 1.417 3.072 2.599 6.38 2.599 11.815-.237 4.49-2.127 9.689-4.963 14.179 20.132 22.369 51.063 11.82 69.49-6.45 4.291-4.255 8.297-8.834 11.329-12.927.348-.471.357-.655 0-.946-3.781-3.072-7.09-8.98-7.09-17.25 0-11.343 8.265-23.529 18.905-25.049 3.468-.496 6.617-.71 12.524.945 4.727-11.816 8.271-24.576 8.035-36.156 0-21.504-15.833-37.336-32.374-37.81m16.541 77.747c-7.089-.236-12.997 3.782-16.069 10.871-2.836 7.089-2.127 15.123 4.254 21.031 2.363 2.363 5.435 5.199 11.815 4.727 4.579-.916 8.938-3.385 11.784-7.838 4.243-6.759 5.792-16.483.032-22.883-.709-.945-2.364-2.599-4.254-3.545-2.6-1.654-5.199-2.363-7.562-2.363M17.913 164.383c.095 9.07 3.19 17.671 8.978 24.617 10.161 11.815 29.066 21.504 52.696 22.922 3.545.236 7.563-.237 10.635-.946 8.27-2.126 13.233-8.271 13.233-15.833 0-6.144-4.49-15.832-17.487-17.486-15.195-1.216-30.481-3.6-40.646-16.306 6.38 4.018 17.251 8.507 35.92 9.216 9.208 0 14.133 1.817 22.199 5.046l.2-.224c7.47-8.382 13.352-14.983 24.39-14.983 6.002-.15 10.098 2.081 13.015 3.67 1.677.914 2.965 1.615 4 1.529 3.309-.238 19.614-20.56 23.631-32.611.62-2.068.698-3.774.707-4.485.009-1.561-2.175-2.962-3.606-3.88l-.016-.01a26 26 0 0 1-.631-.412c-.726-.495-1.401-.956-1.889-1.375-4.49-3.308-8.271-8.743-8.271-14.415 0-8.98 5.908-21.504 12.997-33.083-2.977-7.785-8.838-17.124-20.594-21.566l-.565-.207c-12.861-4.49-28.58-5.107-42.172-3.748l1.89-12.998c3.072-.945 7.089-3.78 7.089-8.98.233-4.652-3.656-9.762-9.638-9.92l-.287-.005c-5.671 0-9.688 4.49-10.161 8.98-.236 4.49 2.6 8.035 5.908 9.689l-2.127 13.234c-9.452.709-18.432 1.654-28.357 3.544-7.096 1.528-14.412 3.126-20.968 6.345-8.548 4.238-15.243 10.12-18.733 20.122-3.544 8.27-4.49 25.758-4.726 43.245l.71 18.196c-4.258 6.94-7.326 14.365-7.326 22.685z"+ clipRule="evenodd"+ />+ </svg>+);+export const googlechatLogo = (props: LogoProps) => <SiGooglechat color="default" {...props} />;export const whatsappLogo = (props: LogoProps) => <SiWhatsapp color="default" {...props} />;@@ -557,6 +574,7 @@ export const logos = {kapso: kapsoLogo,photon: photonLogo,dial: dialLogo,+ agentphone: agentphoneLogo,googlechat: googlechatLogo,whatsapp: whatsappLogo,messenger: messengerLogo,diff --git a/packages/eve-catalog/src/index.ts b/packages/eve-catalog/src/index.tsindex fc36a55dd..c58af541e 100644--- a/packages/eve-catalog/src/index.ts+++ b/packages/eve-catalog/src/index.ts@@ -234,6 +234,13 @@ export const INTEGRATIONS: readonly IntegrationEntry[] = [tagline: "Give your agent a phone number for SMS, MMS, iMessage, and voice transcripts.",surfaces: { scaffoldable: false, gallery: true },},+ {+ slug: "chat-sdk-agentphone",+ name: "AgentPhone",+ kind: "channel",+ tagline: "SMS, MMS, iMessage, and voice conversations through AgentPhone.",+ surfaces: { scaffoldable: false, gallery: true },+ },{slug: "agent-browser",name: "agent-browser",