Email Infrastructure
For AI Agents
Equip your autonomous agents and LLMs with a reliable email mailbox. Enable your AI workforce to safely read, write, parse, and act on email workflows in real time.
Interactive Sandbox
Select a preset agent, inspect the setup code, and simulate how Reloop parses incoming email into structured data to drive agent logic.
import Reloop from 'reloop-email';Â const reloop = new Reloop('rl_live_agent_key');Â // Configure AI-Agent Mailbox with structured JSON schemaconst mailbox = await reloop.mailboxes.create({ address: 'support-agent@yourdomain.com', description: 'Automated Customer Support Handler', schema: { type: 'object', properties: { orderId: { type: 'string', description: 'Extracted order ID starting with #' }, requestType: { type: 'string', enum: ['refund', 'tracking_status', 'general'] }, customerSentiment: { type: 'string', enum: ['happy', 'neutral', 'angry'] } }, required: ['orderId', 'requestType', 'customerSentiment'] }});Â // Register Agent webhook target to handle parsed emailsawait reloop.webhooks.register({ mailboxId: mailbox.id, url: 'https://api.yourdomain.com/agents/support'});AI-Native Email Architecture
Stop parsing messy, unstructured MIME content. Supply standard JSON schemas, and let Reloop handle validation and delivery.
Structured Schema Validation
Map inbound messages to structured JSON objects instantly. Define required properties, types, and constraints to filter and clean data for LLM function calls.
Thread Context Sync
Maintain autonomous agent memory. Automatically associate replies with parent threads so your LLMs always have the full conversation context.
AI-Native Guardrails
Screen inbound bodies for prompt-injection patterns before they reach your model, and route outbound drafts to a human for approval before they send.
Asynchronous Agent Webhooks
Automatically route parsed inbox messages straight to your agent's API endpoint. Perfect for LangChain, AutoGen, and custom LLM servers.
What an agent gets from Reloop
An address it can receive at, a webhook it can act on, an API it can send from, and tools it can call. Hosted or self-hosted.
Give Claude Code the Reloop MCP server
claude mcp add reloop -e RELOOP_API_KEY=rl_xxxxxxxxx -- npx -y reloop-mcpMCP server guideWhat the email.received webhook delivers
{
"email_id": "in_…",
"mailbox_id": "mb_…",
"from": "customer@example.com",
"subject": "Order #4821 never arrived",
"thread_id": "thr_…",
"has_attachments": false,
"is_spam": false,
"status": "received"
}FAQ
Email for AI agents, answered.
A mailbox on a domain you have verified with Reloop, such as agent@agent.example.com. Reloop receives mail for it, parses the body, headers and attachments, runs your classification prompt and JSON schema over it, and hands the result to your agent as an email.received webhook or through the inbox API. The agent replies through the same API. Plans include 1 on Free, 5 on Pro, 10 on Growth agent inboxes.
Subscribe a webhook to the email.received event and Reloop posts a JSON payload with the sender, subject, thread id and message id the moment a message lands. For local development or scripts, the CLI command reloop emails receiving listen --json streams inbound mail to stdout.
The reloop-mcp server exposes sending, inbound mail, contacts, broadcasts, domains, webhooks and templates as MCP tools for Claude Code, Codex, Cursor and Claude Desktop. The reloop-skills package installs agent skills, the CLI has a non-interactive mode, and every docs and marketing page has a markdown twin plus llms.txt and skill.md for retrieval.
Yes. Sending uses the same REST API, SMTP relay and SDKs as any other Reloop send, with scheduling, attachments and tags. Drafts can be routed to a human in the dashboard for approval before they go out.
Yes. The agent inbox, MCP server and inbound processing are part of the Apache 2.0 codebase (with Reloop Labs use restrictions), so a self-hosted install has the same agent features as Reloop Cloud with no license fee.
Setup in 3 Steps
No complex integration pipelines. Connect your agent frameworks in minutes.
Configure Mailbox
Create a dedicated agent inbox address (e.g. agent@yourdomain.com) and supply the validation JSON schemas.
Import SDK Code
Install the official Reloop Client SDK package for your language:npm install reloop-email
Bind Callbacks
Receive clean parsed JSON callbacks on incoming emails, let your agents process requests, and reply back programmatically.
Give your AI Agents an inbox.
Get Started .
Connect your LLMs, LangChain, or Autogen framework to Reloop today and empower your autonomous workforce with real-time email operations.