---
title: AgentPhone
description: SMS, MMS, iMessage, and voice conversations through AgentPhone.
type: channel
keywords:
  - chat sdk
  - agentphone
  - sms
  - mms
  - imessage
  - voice
  - phone
  - calls
---

# AgentPhone

Channel integration for eve. SMS, MMS, iMessage, and voice conversations through AgentPhone.

## Install

Add this Chat SDK channel from eve's registry. This writes `agent/channels/agentphone.ts` and installs Chat SDK and its adapter dependencies:

```bash
eve add channel/chat-sdk-agentphone
```

## Quick start

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 type { Message, Thread } from "chat";
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: Thread, message: Message) => {
  await thread.subscribe();
  await send(message.text, { thread });
});

bot.onSubscribedMessage(async (thread: Thread, message: 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.

[Read the full channel documentation](/docs/channels/chat-sdk)

---

For a semantic overview of all documentation, see [/sitemap.md](/sitemap.md)

For an index of all available documentation, see [/llms.txt](/llms.txt)

For agent-facing discovery, including API and MCP surfaces, see [/agents.md](/agents.md)