Add email capabilities to your TypeScript AI agents with MultiMail's API. Send, read, and reply to email with configurable human oversight.
The Vercel AI SDK is a TypeScript-first toolkit for building AI applications. Its tool system lets you define typed functions that LLMs can call, making it straightforward to add email capabilities through MultiMail's REST API.
MultiMail gives your Vercel AI SDK agents a complete email backend: sending, receiving, replying, thread tracking, and contact management. The default gated_send oversight mode means your agent composes emails but delivery waits for human approval, which fits naturally into the AI SDK's streaming UI patterns.
Whether you are building a Next.js chatbot that handles customer email or a standalone agent that manages an inbox, the combination of Vercel AI SDK's type-safe tools and MultiMail's email API provides a production-ready foundation.
Both the Vercel AI SDK and MultiMail's API are TypeScript-friendly. Define email tools with Zod schemas for full type safety, and get structured responses you can render directly in your UI.
The Vercel AI SDK supports streaming tool calls. Your agent can stream its reasoning while making MultiMail API calls, showing users the email being composed in real time before it enters the approval queue.
MultiMail's gated_send mode pairs well with the AI SDK's UI components. Show users a preview of the composed email and let them approve it through your app's interface or the MultiMail dashboard.
The Vercel AI SDK runs on edge runtimes. MultiMail's REST API is edge-compatible with no Node.js-specific dependencies, so your email-capable agent works in serverless and edge environments.
MultiMail returns structured JSON from every endpoint. The AI SDK can parse these into typed objects, letting your agent reason about inbox contents, thread history, and contact data with full type information.
No code, no dashboard. Paste this to your AI agent — it connects MultiMail, creates an inbox, and builds the flow for you.
Sign up at multimail.dev, create a mailbox, and generate an API key. Your key starts with mm_live_.
Install the Vercel AI SDK and your preferred model provider.
Create tool definitions using the AI SDK's tool function with Zod schemas for parameters. Implement the execute function to call MultiMail's REST API.
Use generateText or streamText with your email tools and a system prompt that explains the mailbox context and oversight mode.
In gated_send mode, inform users when emails are pending approval. Optionally build approval UI in your app or direct users to the MultiMail dashboard.
Email infrastructure built for AI agents. Verifiable identity, graduated oversight, and a hosted MCP server. Formally verified in Lean 4.