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.
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.
Production-ready AI agent that handles customer support with full conversation context.
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 });
},
});
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.
Your AI agent initiates a conversation with a company
The reply comes from a different person at the same company
Your agent receives the complete conversation thread, not just isolated emails
Enable draft mode to review and approve all AI-generated emails before they're sent
See which AI responded where, track conversation threads, review drafts, and manually reply when needed
While other providers make you jump through hoops, we made it work the way you'd expect.
Add your domain to AI Inbx and that's it. Just copy a few DNS entries and you're good to go.
Every email to any address on your domain instantly lands in AI Inbx. No forwarding, no missing emails, no setup required.
Our AI automatically sorts emails into conversation threads, even when replies come from different addresses at the same company.
A powerful dashboard that makes email management feel effortless. Everything you need to manage conversations at scale.
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.
Early-stage AI agents can hallucinate. Draft mode ensures every email gets human approval before hitting send.
Save AI-generated emails as drafts for human review before sending
Never send without approvalForce draft mode on entire API keys for complete oversight
Organization-wide safetyReview, edit, and approve drafts directly in your dashboard
Seamless workflowGet full access to AI Inbx completely free while we're in beta. Help us build the future of email infrastructure for AI agents.
Completely free during beta
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.