---
title: Inkbox
description: Receive and reply to email, SMS/MMS, iMessage, Slack, and post-call follow-ups through Inkbox.
url: "https://eve.dev/integrations/chat-sdk-inkbox"
docs_index: /llms.txt
type: channel
keywords:
  - chat sdk
  - inkbox
  - email
  - sms
  - mms
  - imessage
  - slack
  - voice
  - a2a
  - multichannel
---

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

Channel integration for eve. Receive and reply to email, SMS/MMS, iMessage, Slack, and post-call follow-ups through Inkbox.

## Install

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

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

## Quick start

Create `agent/channels/inkbox.ts`:

```ts
// agent/channels/inkbox.ts
import { createInkboxAdapter } from "@inkbox/chat-sdk-adapter";
import { createMemoryState } from "@chat-adapter/state-memory";
import type { Message, Thread } from "chat";
import { chatSdkChannel, messageContentOf } from "eve/channels/chat-sdk";

export const inkbox = createInkboxAdapter({
  apiKey: process.env.INKBOX_API_KEY!,
  agentHandle: process.env.INKBOX_AGENT_HANDLE!,
  signingSecret: process.env.INKBOX_SIGNING_SECRET!,
  // Ignore Slack bot messages to avoid reply loops, and ignore A2A by default
  // because A2A replies require explicit task-bound inkbox.send() handlers.
  onMessage: (message) =>
    message.route.channel !== "a2a" &&
    !(message.route.channel === "slack" && message.isBot === true),
});

export const { bot, channel, send } = chatSdkChannel({
  userName: "My Agent",
  adapters: { inkbox },
  state: createMemoryState(),
  // Hand every message to eve, even mid-reply, so eve can steer the running turn.
  concurrency: "concurrent",
  // Email and phone messages can't be edited after they're sent, so send each reply whole.
  streaming: false,
});

async function handleMessage(thread: Thread, message: Message) {
  await thread.subscribe();
  // Unresolved call observations have no messaging destination; record them without replying.
  if (inkbox.decodeThreadId(thread.id).channel === "voice") {
    await thread.setState({ lastCall: { id: message.id, text: message.text } });
    return;
  }
  await send(messageContentOf(message), { thread });
}

bot.onNewMention(handleMessage);
bot.onSubscribedMessage(handleMessage);

export default channel;
```

See the [Inkbox Chat SDK adapter README](https://github.com/inkbox-ai/inkbox/tree/main/adapters/chat-sdk) and [Inkbox eve example](https://github.com/inkbox-ai/inkbox/tree/main/examples/eve-agent) for supported events, voice-note transcription recovery, and A2A task handling.

## Configure

Create an identity-scoped API key in the [Inkbox Console](https://inkbox.ai/console) matching `INKBOX_AGENT_HANDLE`, create an identity webhook subscription pointing to `POST /eve/v1/inkbox`, and set `INKBOX_API_KEY`, `INKBOX_AGENT_HANDLE`, and `INKBOX_SIGNING_SECRET`. Organization-wide API keys are rejected by the adapter. Incoming webhooks are verified against `INKBOX_SIGNING_SECRET` using HMAC-SHA256 signatures (`x-inkbox-signature`, `x-inkbox-timestamp` within a 5-minute window, and `x-inkbox-request-id`).

**Conversation state:** The starter uses `@chat-adapter/state-memory` for local development. In production or multi-worker deployments, replace it with `@chat-adapter/state-redis` and `REDIS_URL` so Chat SDK subscriptions, voice-note transcription state, and persistent email retry keys survive restarts; eve owns durable agent execution and session history.

**Voice follow-up:** Completed-call transcripts (`call.ended`) route into the caller's existing direct SMS or iMessage conversation on the call's originating channel so replies go out as text — this channel does not stream audio during a call. Calls without an unambiguous existing conversation remain `voice` observations stored in `lastCall` without triggering a reply.

**A2A:** A2A threads are scoped to `contextId` and require explicit task-bound replies via `inkbox.send(thread.id, text, { a2aTaskId, a2aIntent })` because `thread.post()` carries no task ID. The starter ignores `a2a` in `onMessage` so generic replies do not fail; see Inkbox's [eve example](https://github.com/inkbox-ai/inkbox/tree/main/examples/eve-agent) for custom `events` handlers that bind tasks per turn. 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)