Free during beta

The Email Inbox for your AI Agents

Email infrastructure with Contextual Threading—dead-simple send & receive, smart cross-identity threading (beyond reply IDs), draft mode for human approval, and a dashboard for complete oversight.

Context-aware email support AI in 40 lines of code

Production-ready AI agent that handles customer support with full conversation context.

Next.js
/app/api/ai-inbx-webhook/route.ts
import { openai } from '@ai-sdk/openai'
import { generateObject } from 'ai'
import AIInbx from 'aiinbx'
import {
  createNextRouteHandler,
  emailToLLMString,
  threadToLLMString,
} from 'aiinbx/helpers'
import z from 'zod'

const infoAboutOurCompany = "...";

const aiInbx = new AIInbx();

export const POST = createNextRouteHandler({
  onInboundEmail: async ({ payload }) => {
    const { email } = payload.data;

    // Get the full conversation thread with all emails in the thread
    const thread = await aiInbx.threads.retrieve(email.threadId);

    const { object } = await generateObject({
      model: openai('gpt-5-mini'),
      schema: z.object({
        responseHtml: z.string(),
      }),
      system: `You are a helpful assistant that answers emails from customers. Here is everything you need to know about us: ${infoAboutOurCompany}`,
      prompt: `Here is the full conversation: ${threadToLLMString(thread)}

Please answer the latest inbound email as a human would.`,
    });

    await aiInbx.emails.reply(email.id, {
      from: 'support@your-domain.com',
      html: object.responseHtml,
    });

    return Response.json({ sent: true });
  },
});

Give your AI agent the full conversation

While others dump raw emails in webhooks, we use AI to thread conversations by context. Your agent sees the complete timeline, not just individual messages.

How AI Inbx processes emails for your AI agents

  1. SendStep 1

    Your AI agent sends an email to info@acme.org

    Your AI agent initiates a conversation with a company

  2. ReceiveStep 2

    joe@acme.org responds from a different email

    The reply comes from a different person at the same company

  3. Contextual threadingStep 3

    AI Inbx detects contextual relationships and automatically threads them

    Your agent receives the complete conversation thread, not just isolated emails

  4. Draft ModeStep 4

    Human approval before sending (optional)

    Enable draft mode to review and approve all AI-generated emails before they're sent

  5. DashboardStep 5

    Monitor all AI conversations in your dashboard

    See which AI responded where, track conversation threads, review drafts, and manually reply when needed

It's embarrassingly simple

While other providers make you jump through hoops, we made it work the way you'd expect.

01

Connect Your Domain

Add your domain to AI Inbx and that's it. Just copy a few DNS entries and you're good to go.

02

Emails Start Flowing

Every email to any address on your domain instantly lands in AI Inbx. No forwarding, no missing emails, no setup required.

03

Contextual Threading

Our AI automatically sorts emails into conversation threads, even when replies come from different addresses at the same company.

See AI Inbx in Action

A powerful dashboard that makes email management feel effortless. Everything you need to manage conversations at scale.

Contextual Threading screenshot

Contextual Threading

Our Contextual Threading Engine automatically groups related emails into threads, even when they come from different addresses at the same company. Perfect for AI agents managing complex conversations.

Keep humans in the loop

Early-stage AI agents can hallucinate. Draft mode ensures every email gets human approval before hitting send.

Draft Mode

Save AI-generated emails as drafts for human review before sending

Never send without approval

API Key Controls

Force draft mode on entire API keys for complete oversight

Organization-wide safety

Dashboard Review

Review, edit, and approve drafts directly in your dashboard

Seamless workflow

Free during beta, fair pricing after

Get full access to AI Inbx completely free while we're in beta. Help us build the future of email infrastructure for AI agents.

Beta Access
$0/month

Completely free during beta

Contextual threading
Full dashboard access
Email API access
Webhook support
Community support

A quick note on future pricing

Once we exit beta, we won't offer a free plan but will have an affordable entry-level option. We're committed to keeping AI Inbx accessible while ensuring we can provide the best possible service. Current beta users will receive advance notice.

Stop fighting with email providers

Join developers who were tired of broken docs, complex setups, and email providers that don't work with modern serverless architecture.